Skip to content

Commit

Permalink
frontend: don't log anything if OIDC is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyX authored and praiskup committed Sep 20, 2023
1 parent 29b9923 commit e34d6e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/coprs_frontend/coprs/oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ def oidc_enabled(config):
"""
Check whether the config is valid
"""
if config.get("OIDC_LOGIN") is False:
# OIDC is an optional feature, don't log anything if it is disabled
return False

if not is_config_valid(config):
app.logger.error("OIDC_LOGIN or OIDC_PROVIDER_NAME is empty")
return False
Expand Down

0 comments on commit e34d6e1

Please sign in to comment.