Skip to content

Commit

Permalink
fix: Add cacertfile to client args when provided (#4451)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmintey authored Oct 25, 2024
1 parent f7e595b commit ea0d2ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mealie/routes/auth/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@
oauth = OAuth()
groups_claim = settings.OIDC_GROUPS_CLAIM if settings.OIDC_REQUIRES_GROUP_CLAIM else ""
scope = f"openid email profile {groups_claim}"
client_args = {"scope": scope.rstrip()}
if settings.OIDC_TLS_CACERTFILE:
client_args["verify"] = settings.OIDC_TLS_CACERTFILE

oauth.register(
"oidc",
client_id=settings.OIDC_CLIENT_ID,
client_secret=settings.OIDC_CLIENT_SECRET,
server_metadata_url=settings.OIDC_CONFIGURATION_URL,
client_kwargs={"scope": scope.rstrip()},
client_kwargs=client_args,
code_challenge_method="S256",
)

Expand Down

0 comments on commit ea0d2ec

Please sign in to comment.