You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(`=== Requesting token at ${tokenEndpoint} with ticket body:\n`);
45
+
console.log(content);
46
+
console.log('');
47
+
53
48
constasRequestResponse=awaitfetch(tokenEndpoint,{
54
49
method: "POST",
55
50
headers: {
56
51
"content-type":"application/json"
57
52
},
58
-
body
53
+
body: JSON.stringify(content),
59
54
})
60
55
56
+
// For debugging:
61
57
// console.log("Authorization Server response:", await asRequestResponse.text());
62
58
// throw 'stop'
63
-
constasResponse=awaitasRequestResponse.json()
64
-
console.log("Authorization Server response:",asResponse);
65
59
66
-
console.log(`3.3.5 Authorization Server Response to Client on Authorization Success:`);
67
-
// https://docs.kantarainitiative.org/uma/wg/rec-oauth-uma-grant-2.0.html#rfc.section.3.3.5 or https://docs.kantarainitiative.org/uma/wg/rec-oauth-uma-grant-2.0.html#rfc.section.3.3.6
68
-
// 3.3.5 or 3.3.6 Authorization Server Response to Client on Authorization Success or Failure
69
-
// Note: it is required to have a debug uma server loaded
console.log(`=== Requesting token at ${tokenEndpoint} with ticket body:\n`);
45
+
console.log(content);
46
+
console.log('');
47
+
55
48
constasRequestResponse=awaitfetch(tokenEndpoint,{
56
49
method: "POST",
57
50
headers: {
58
51
"content-type":"application/json"
59
52
},
60
-
body
53
+
body: JSON.stringify(content),
61
54
})
62
55
56
+
// For debugging:
63
57
// console.log("Authorization Server response:", await asRequestResponse.text());
64
58
// throw 'stop'
65
-
constasResponse=awaitasRequestResponse.json()
66
-
console.log("Authorization Server response:",asResponse);
67
59
68
-
console.log(`3.3.5 Authorization Server Response to Client on Authorization Success:`);
69
-
// https://docs.kantarainitiative.org/uma/wg/rec-oauth-uma-grant-2.0.html#rfc.section.3.3.5 or https://docs.kantarainitiative.org/uma/wg/rec-oauth-uma-grant-2.0.html#rfc.section.3.3.6
70
-
// 3.3.5 or 3.3.6 Authorization Server Response to Client on Authorization Success or Failure
71
-
// Note: it is required to have a debug uma server loaded
0 commit comments