Skip to content

Commit

Permalink
Merge pull request #4666 from jmcrawford45/oauth2_scope_config
Browse files Browse the repository at this point in the history
Oauth2 scope config
  • Loading branch information
jmcrawford45 authored Oct 19, 2023
2 parents 889938a + 183d750 commit 7378095
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/administration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,13 @@ For more information about how to use social logins, see: `Satellizer <https://g

OAUTH2_VERIFY_CERT = True

.. data:: OAUTH2_SCOPE
:noindex:

::

OAUTH2_SCOPE = ["openid", "email", "profile", "groups"]

.. data:: OAUTH_STATE_TOKEN_SECRET
:noindex:

Expand Down
2 changes: 1 addition & 1 deletion lemur/auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ def get(self):
"redirectUri": current_app.config.get("OAUTH2_REDIRECT_URI"),
"clientId": current_app.config.get("OAUTH2_CLIENT_ID"),
"responseType": "code",
"scope": ["openid", "email", "profile", "groups"],
"scope": current_app.config.get("OAUTH2_SCOPE", ["openid", "email", "profile", "groups"]),
"scopeDelimiter": " ",
"authorizationEndpoint": current_app.config.get(
"OAUTH2_AUTH_ENDPOINT"
Expand Down

0 comments on commit 7378095

Please sign in to comment.