summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-03-10 19:11:44 -0600
committermo khan <mo@mokhan.ca>2025-03-10 19:11:44 -0600
commitde1cf9c5f0af903a1b2e80f3ba35b21167d6f53c (patch)
treecb216844f36326dee14328d42c3b1f060f7329a3 /bin
parent2a9b689a0775a2ce831dc08c73fc0959fe3f9e83 (diff)
test: use golang oauth client to test IdP
Diffstat (limited to 'bin')
-rwxr-xr-xbin/idp1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/idp b/bin/idp
index 5dba984e..8d9529a0 100755
--- a/bin/idp
+++ b/bin/idp
@@ -170,6 +170,7 @@ class IdentityProvider
return [200, { 'Content-Type' => "application/json" }, [JSON.pretty_generate({
access_token: JWT.new(sub: SecureRandom.uuid, iat: Time.now.to_i).to_jwt,
token_type: "Bearer",
+ issued_token_type: "urn:ietf:params:oauth:token-type:access_token",
expires_in: 3600,
refresh_token: SecureRandom.hex(32)
})]]