mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-14 17:06:39 +00:00
fix redirect bug for some accounts when disable create org is enabled
This commit is contained in:
@@ -2,7 +2,7 @@ import path from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
// This is a placeholder value replaced by the build process
|
||||
export const APP_VERSION = "1.7.0";
|
||||
export const APP_VERSION = "1.7.2";
|
||||
|
||||
export const __FILENAME = fileURLToPath(import.meta.url);
|
||||
export const __DIRNAME = path.dirname(__FILENAME);
|
||||
|
||||
@@ -162,6 +162,12 @@ export async function validateOidcCallback(
|
||||
);
|
||||
}
|
||||
|
||||
logger.debug("State verified", {
|
||||
urL: ensureTrailingSlash(existingIdp.idpOidcConfig.tokenUrl),
|
||||
expectedState,
|
||||
state
|
||||
});
|
||||
|
||||
const tokens = await client.validateAuthorizationCode(
|
||||
ensureTrailingSlash(existingIdp.idpOidcConfig.tokenUrl),
|
||||
code,
|
||||
|
||||
Reference in New Issue
Block a user