puiterwijk / flask-oidc

OpenID Connect support for Flask
BSD 2-Clause "Simplified" License
154 stars 217 forks source link

No OpenIDConnect method to obtain id_token ? #100

Closed jamesarems closed 4 years ago

jamesarems commented 4 years ago

Hi, Is there any option to obtain id_token using this tool? I can get access_token and refresh_token using

access_token = oidc.get_access_token()
refresh_token = oidc.get_refresh_token()

But i didn't find an option for id_token. Is there any way ?

jamesarems commented 4 years ago

Ok, I got a method,

from oauth2client.client import OAuth2Credentials
id_token_jwt = OAuth2Credentials.from_json(oidc.credentials_store[info.get('sub')]).id_token_jwt