Skip to content

Commit

Permalink
Allow openid scope anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
coopfeathy committed Apr 6, 2022
1 parent 6a8c957 commit 0eacd2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authlib/integrations/base_client/sync_app.py
Expand Up @@ -254,7 +254,7 @@ def _create_oauth2_authorization_url(client, authorization_endpoint, **kwargs):
log.debug('Using code_verifier: {!r}'.format(code_verifier))

scope = kwargs.get('scope', client.scope)
if scope and scope.startswith('openid'):
if scope and 'openid' in scope.split():
# this is an OpenID Connect service
nonce = kwargs.get('nonce')
if not nonce:
Expand Down

0 comments on commit 0eacd2a

Please sign in to comment.