tarachandverma / nginx-openidc

Nginx module for openid-connect relying party, SSO and JWT authentication
MIT License
76 stars 10 forks source link

Is there a way to read the access token received from the IdP? #9

Open kompinops opened 6 years ago

kompinops commented 6 years ago

First of all well done for this great module!

I have a use case whereby we would like to have visibility of the access token or even the full response token from the IdP, in order to perform further queries against the identity provider using the access token.

Is it possible to read the token from php for example? If so, how?

TIA

tarachandverma commented 6 years ago

@kompinops : added a feature which will enable IdP provided access_token as persistent cookie using following syntax.

https://github.com/tarachandverma/nginx-openidc/blob/master/test-conf/oidc-config.xml#L26