First Commit
This commit is contained in:
parent
759cb0cb03
commit
53304d6196
|
@ -63,9 +63,9 @@ class IAMExample:
|
||||||
jwt1 = resp1.json()
|
jwt1 = resp1.json()
|
||||||
print("Resp1: ",jwt1)
|
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"}
|
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
|
#get UMA token for context
|
||||||
umaheaders["Authorization"] = "Bearer " + jwt1["access_token"]
|
umaheaders["Authorization"] = "Bearer " + jwt1["access_token"]
|
||||||
resp2 = requests.post(self.iamURL, data=umadata, headers=umaheaders)
|
resp2 = requests.post(self.iamURL, data=umadata, headers=umaheaders)
|
||||||
|
|
Loading…
Reference in New Issue