jhuapl-boss / boss-oidc

Django Auth plugin specific to the Boss SSO Server
Apache License 2.0
13 stars 22 forks source link

validate token aud before accepting autentication #27

Closed ricardogsilva closed 6 years ago

ricardogsilva commented 6 years ago

This PR modifies the authentication backend in order to only allow logging in if the access token's aud claim contains one of the trusted audiences.

Trusted audiences can be defined in the already existing setting settings.OIDC_AUTH["OIDC_AUDIENCES]

Other implementation notes

derek-pryor commented 6 years ago

PR #26 was actually merged as I pulled it in for testing before this PR was created.