Skip to content
Snippets Groups Projects
Verified Commit 6f967720 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: OAuth authn

parent 96577e59
No related branches found
No related tags found
No related merge requests found
Pipeline #48687 passed
......@@ -9,17 +9,17 @@ async function refreshAccessToken (token: any) {
try {
const url = issuer + '/protocol/openid-connect/token'
const params = new URLSearchParams({
client_id: clientId,
client_secret: clientSecret,
grant_type: 'refresh_token',
refresh_token: token.refreshToken
}).toString()
client_id: clientId,
client_secret: clientSecret,
grant_type: 'refresh_token',
refresh_token: token.refreshToken
}).toString()
const response = await fetch(url, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
method: 'POST'
method: 'POST',
body: params
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment