Skip to content

Commit

Permalink
fix: docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
tymees committed Oct 8, 2024
1 parent 318ffa7 commit 6946ca9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions testidp/openid_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

PRIVATE_KEY = str(BASE_DIR) + '/certificates/private.key'

with open(PRIVATE_KEY) as f:
OIDC_RSA_PRIVATE_KEY = f.read()
try:
with open(PRIVATE_KEY) as f:
OIDC_RSA_PRIVATE_KEY = f.read()
except FileNotFoundError:
OIDC_RSA_PRIVATE_KEY = None


OAUTH2_PROVIDER = {
Expand Down

0 comments on commit 6946ca9

Please sign in to comment.