Skip to content

Commit

Permalink
Remove redefenition of username_claim in Generic
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Jan 18, 2024
1 parent 4417ec8 commit 77a43d1
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions oauthenticator/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,6 @@ def _login_service_default(self):
""",
)

username_claim = Union(
[Unicode(os.environ.get('OAUTH2_USERNAME_KEY', 'username')), Callable()],
config=True,
help="""
When `userdata_url` returns a json response, the username will be taken
from this key.
Can be a string key name or a callable that accepts the returned
userdata json (as a dict) and returns the username. The callable is
useful e.g. for extracting the username from a nested object in the
response.
""",
)

@default("http_client")
def _default_http_client(self):
return AsyncHTTPClient(
Expand Down

0 comments on commit 77a43d1

Please sign in to comment.