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:
Cullen Walsh
2022-02-23 09:29:39 -08:00
parent 4f0204a9c2
commit fde83cc9ac

View File

@@ -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;
}