Skip to content

Commit

Permalink
Update OIDC auth accepted audience format to list
Browse files Browse the repository at this point in the history
  • Loading branch information
mhieta committed Nov 29, 2024
1 parent 31128aa commit 3b81294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ INSTALL_PRECOMMIT=True
WAIT_FOR_IT_ADDRESS=parking-permits-database:5432

# OIDC auth settings
TOKEN_AUTH_ACCEPTED_AUDIENCE=parking-permits-api-dev
TOKEN_AUTH_ACCEPTED_AUDIENCE=parking-permits-api-dev,parking-permits-api-test
TOKEN_AUTH_ACCEPTED_SCOPE_PREFIX=access,gdprquery,gdprdelete
TOKEN_AUTH_AUTHSERVER_URL=https://tunnistus.test.hel.ninja/auth/realms/helsinki-tunnistus
TOKEN_AUTH_REQUIRE_SCOPE_PREFIX=True
Expand Down
2 changes: 1 addition & 1 deletion project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
TALPA_DEFAULT_ACCOUNTING_MAIN_LEDGER_ACCOUNT=(str, ""),
KAMI_URL=(str, "https://kartta.hel.fi/ws/geoserver/avoindata/wfs"),
OPEN_CITY_PROFILE_GRAPHQL_API=(str, "https://profile-api.test.hel.ninja/graphql/"),
TOKEN_AUTH_ACCEPTED_AUDIENCE=(str, ""),
TOKEN_AUTH_ACCEPTED_AUDIENCE=(list, []),
TOKEN_AUTH_ACCEPTED_SCOPE_PREFIX=(list, []),
TOKEN_AUTH_AUTHSERVER_URL=(str, ""),
TOKEN_AUTH_REQUIRE_SCOPE_PREFIX=(str, ""),
Expand Down

0 comments on commit 3b81294

Please sign in to comment.