moneyapi / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

OAuth2WebServerFlow does not provide raw id_token #276

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use OAuth2WebServerFlow with scope='openid profile' (i.e. openid connect)
2. perform an authentication.
3. try to verify the returned id_token with oauth2client.client.verify_id_token

What is the expected output? What do you see instead?
expected: a parsed, verified id token or an AppIdentityError exception

got:     segments = jwt.split('.')
AttributeError: 'dict' object has no attribute 'split'

because credentials.id_token is already the parsed inner json of the jwt, but 
without verification.

What version of the product are you using? On what operating system?
1.0c3, ubuntu 12.10

Please provide any additional information below.
1.1 does not fix this; the id_token in the 'token_response' is overwritten with 
the stripped copy.

Original issue reported on code.google.com by cgrund...@gmail.com on 10 Jun 2013 at 9:23