Skip to content

Commit

Permalink
close dex_client_secret earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
skrobul committed Mar 21, 2024
1 parent f62dd56 commit 9be98e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,8 @@ data:
SOCIAL_AUTH_OIDC_OIDC_ENDPOINT = "http://dexidp.local"
SOCIAL_AUTH_OIDC_USERNAME_KEY = 'name'
SOCIAL_AUTH_OIDC_KEY = 'nautobot'
SOCIAL_AUTH_OIDC_SECRET = open("/opt/nautobot/dex_client_secret").read()
with open("/opt/nautobot/dex_client_secret") as oidc_secret:
SOCIAL_AUTH_OIDC_SECRET = oidc_secret.read()
# The “openid”, “profile” and “email” are requested by default,
# below *adds* scope.
SOCIAL_AUTH_OIDC_SCOPE = ['groups']
Expand Down

0 comments on commit 9be98e1

Please sign in to comment.