Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 21, 2023
1 parent d2d57cf commit bef53ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion oauth2_provider/oauth2_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,11 @@ def _get_token_from_authentication_server(
if "active" in content and content["active"] is True:
if oauth2_settings.RESOURCE_SERVER_INTROSPECTION_RESPONSE_FIELD in content:
user, _created = UserModel.objects.get_or_create(
**{UserModel.USERNAME_FIELD: content[oauth2_settings.RESOURCE_SERVER_INTROSPECTION_RESPONSE_FIELD]}
**{
UserModel.USERNAME_FIELD: content[
oauth2_settings.RESOURCE_SERVER_INTROSPECTION_RESPONSE_FIELD
]
}
)
else:
user = None
Expand Down

0 comments on commit bef53ce

Please sign in to comment.