Skip to content

Instantly share code, notes, and snippets.

@salrashid123
Created March 30, 2018 05:05
Show Gist options
  • Save salrashid123/90a4e2e200f340f38d13ba480513700d to your computer and use it in GitHub Desktop.
Save salrashid123/90a4e2e200f340f38d13ba480513700d to your computer and use it in GitHub Desktop.
svc3.py
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