Created
March 30, 2018 05:05
-
-
Save salrashid123/90a4e2e200f340f38d13ba480513700d to your computer and use it in GitHub Desktop.
svc3.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from oauth2client.client import verify_id_token | |
from oauth2client.crypt import AppIdentityError | |
try: | |
jwt = verify_id_token(id_token, client_id) | |
self.log('\n ID_TOKEN Validation: \n ' + json.dumps(jwt,sort_keys = False, indent = 4) +' \n', logging.INFO) | |
except AppIdentityError, e: | |
self.log('Payload: ' + str(e.read), logging.ERROR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment