First Commit

This commit is contained in:
Giancarlo Panichi 2023-02-01 17:30:44 +01:00
parent 759cb0cb03
commit 53304d6196
1 changed files with 2 additions and 2 deletions

View File

@ -63,9 +63,9 @@ class IAMExample:
jwt1 = resp1.json()
print("Resp1: ",jwt1)
umadata = { 'grant_type' : 'urn:ietf:params:oauth:grant-type:uma-ticket', 'audience' : self.context}
umaheaders = { "Accept" : "application/json", "Content-Type" : "application/x-www-form-urlencoded"}
umadata = { 'grant_type' : 'urn:ietf:params:oauth:grant-type:uma-ticket', 'audience' : self.context}
#get UMA token for context
umaheaders["Authorization"] = "Bearer " + jwt1["access_token"]
resp2 = requests.post(self.iamURL, data=umadata, headers=umaheaders)