mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-02-14 17:49:55 +00:00
Use provider.callback() instead of provider.oauthCallback()
With the upgrade of openif-client to ^5.1.3, oauthCallback() now throws an exception directing users to callback(), when the response contains an id_token field. https://github.com/skooner-k8s/skooner/issues/305 Test Plan: Built skooner image locally, deployed to microk8s. No longer an exception in the logs Signed-off-by: Cullen Walsh <ckwalsh@cullenwalsh.com>
This commit is contained in:
@@ -135,7 +135,7 @@ async function getOidcEndpoint() {
|
||||
|
||||
async function oidcAuthenticate(code, redirectUri) {
|
||||
const provider = await getOidcProvider();
|
||||
const tokenSet = await provider.oauthCallback(redirectUri, {code}, {});
|
||||
const tokenSet = await provider.callback(redirectUri, {code}, {});
|
||||
return tokenSet.id_token;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user