Merge branch 'main' into refactor/ui
This commit is contained in:
@@ -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}`)
|
||||
|
||||
Reference in New Issue
Block a user