config scope (#1755)
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
This commit is contained in:
parent
b97cf0be9f
commit
538fbf261c
|
@ -242,3 +242,5 @@ config_from_env("SPIFFWORKFLOW_BACKEND_USE_WERKZEUG_MIDDLEWARE_PROXY_FIX", defau
|
|||
|
||||
# only for DEBUGGING - turn off threaded task execution.
|
||||
config_from_env("SPIFFWORKFLOW_BACKEND_USE_THREADS_FOR_TASK_EXECUTION", default=True)
|
||||
|
||||
config_from_env("SPIFFWORKFLOW_BACKEND_OPENID_SCOPE", default="openid profile email")
|
||||
|
|
|
@ -259,7 +259,7 @@ class AuthenticationService:
|
|||
+ f"?state={state}&"
|
||||
+ "response_type=code&"
|
||||
+ f"client_id={self.client_id(authentication_identifier)}&"
|
||||
+ "scope=openid profile email&"
|
||||
+ f"scope={current_app.config['SPIFFWORKFLOW_BACKEND_OPENID_SCOPE']}&"
|
||||
+ f"redirect_uri={redirect_url_to_use}"
|
||||
)
|
||||
return login_redirect_url
|
||||
|
|
Loading…
Reference in New Issue