Uninett / drf-oidc-auth

OpenID Connect authentication for Django REST Framework
MIT License
0 stars 0 forks source link

Increase test flexibility #8

Closed stveit closed 1 year ago

stveit commented 1 year ago

Makes it possible to say that default claims should NOT be in the token at all by setting its value to None. Adds a few more tests. One tests checks the it fails if token does not have iat claim. this is the current beehaviour, so i added the test to document it but not sure we want ìat to be mandatory. made nbf claim by default non-optional, but can be made optional through the OIDC_CLAIMS_OPTIONS setting, this does not work for iat.