Allow custom nonce for openid request
@@ -188,6 +188,8 @@ class BaseApp(object):
scope = kwargs.get('scope', client.scope)
if scope and scope.startswith('openid'):
# this is an OpenID Connect service
+ nonce = kwargs.get('nonce')
+ if not nonce:
nonce = generate_token(20)
kwargs['nonce'] = nonce
rv['nonce'] = nonce
