Skip to content

Commit

Permalink
Merge pull request #320 from City-of-Helsinki/develop
Browse files Browse the repository at this point in the history
Allows API-tokens to be up to one hour old (OIDC_LEEWAY)
  • Loading branch information
vikoivun authored Aug 31, 2021
2 parents d262f69 + f4f1965 commit 6524c5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helerm/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ def get_git_revision_hash() -> str:
'ISSUER': env('OIDC_API_TOKEN_AUTH_ISSUER'),
}

# by default drf-oidc-auth allows tokens to be at most 10 minutes old
# extend that to one hour. Likely the behaviour of the underlying
# drf-oidc-auth library will change at some point:
# https://github.com/ByteInternet/drf-oidc-auth/issues/49
OIDC_AUTH = {"OIDC_LEEWAY": 60 * 60}

# Elasticsearch configuration
ELASTICSEARCH_DSL = {
Expand Down

0 comments on commit 6524c5a

Please sign in to comment.