mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
misc: added handling of inactive and undefined oidc config
This commit is contained in:
@@ -510,6 +510,12 @@ export const oidcConfigServiceFactory = ({
|
|||||||
orgSlug
|
orgSlug
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!oidcCfg || !oidcCfg.isActive) {
|
||||||
|
throw new BadRequestError({
|
||||||
|
message: "Failed to authenticate with OIDC SSO"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const openIdIssuer = new OpenIdIssuer({
|
const openIdIssuer = new OpenIdIssuer({
|
||||||
issuer: oidcCfg.issuer,
|
issuer: oidcCfg.issuer,
|
||||||
authorization_endpoint: oidcCfg.authorizationEndpoint,
|
authorization_endpoint: oidcCfg.authorizationEndpoint,
|
||||||
|
|||||||
Reference in New Issue
Block a user