Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenID - non require nonce parameter #1253

Merged
merged 3 commits into from
Sep 4, 2024
Merged

OpenID - non require nonce parameter #1253

merged 3 commits into from
Sep 4, 2024

Conversation

kutovoys
Copy link
Contributor

@kutovoys kutovoys commented Sep 3, 2024

Issue: #1252
Выставил
[OpenIDCode(require_nonce=False)]
и пара проверок на None

Но я не настоящий сварщик поэтому прошу ревью)

@kutovoys kutovoys requested a review from vas3k as a code owner September 3, 2024 21:29
@@ -13,7 +13,7 @@

class AuthorizationCodeGrant(grants.AuthorizationCodeGrant):
def save_authorization_code(self, code, request):
nonce = request.data.get("nonce")
nonce = request.data.get("nonce", None)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None тут не обязателен, .get() возвращает его по-умолчанию :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Убрал)

@vas3k vas3k merged commit d0d4f41 into vas3k:master Sep 4, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants