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 authentication #26

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

ricardogsilva commented 6 years ago

Seems like I made some git mistake while trying to apply this PR into my own fork... I'll try to undo things in order to have just the relevant changes be a part of this PR.

ricardogsilva commented 6 years ago

I'm closing this PR and submitting a new one with only the relevant modifications...

ricardogsilva commented 6 years ago

new PR

https://github.com/jhuapl-boss/boss-oidc/pull/27