Skip to content

Instantly share code, notes, and snippets.

@salrashid123
Created March 30, 2018 05:04
Show Gist options
  • Save salrashid123/3fe334d2cbff54fd2b9f73085ab24291 to your computer and use it in GitHub Desktop.
Save salrashid123/3fe334d2cbff54fd2b9f73085ab24291 to your computer and use it in GitHub Desktop.
svc_ex2
client_id= 'serviceAccountB_ID'
slist = resource.serviceAccounts().signJwt(name='projects/mineral-minutia-820/serviceAccounts/' + client_id,
body={'payload': id_token_claim })
resp = slist.execute()
signed_jwt = resp['signedJwt']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment