Merge branch 'main' into refactor/ui
This commit is contained in:
commit
92abbc4ce6
1 changed files with 4 additions and 4 deletions
|
|
@ -154,10 +154,10 @@ const tokenRequest = async ({
|
|||
}) => {
|
||||
// Check oauth configuration
|
||||
if (oidcDiscoveryUrl !== "") {
|
||||
const { authorizationEndpoint, tokenEndpoint } =
|
||||
const { authorization_endpoint, token_endpoint } =
|
||||
await getTokenConfiguration(oidcDiscoveryUrl)
|
||||
authUrl = authorizationEndpoint
|
||||
accessTokenUrl = tokenEndpoint
|
||||
authUrl = authorization_endpoint
|
||||
accessTokenUrl = token_endpoint
|
||||
}
|
||||
|
||||
// Store oauth information
|
||||
|
|
@ -220,7 +220,7 @@ const oauthRedirect = () => {
|
|||
code: q.code,
|
||||
client_id: getLocalConfig("client_id"),
|
||||
redirect_uri: redirectUri,
|
||||
codeVerifier: getLocalConfig("pkce_codeVerifier"),
|
||||
code_verifier: getLocalConfig("pkce_codeVerifier"),
|
||||
})
|
||||
} catch (err) {
|
||||
console.log(`${error.error}\n\n${error.error_description}`)
|
||||
|
|
|
|||
Loading…
Reference in a new issue