fix small mistakes
This commit is contained in:
parent
fc97735703
commit
bc3ec3cc54
|
@ -373,6 +373,7 @@ if (process.env.NEXT_PUBLIC_AZURE_AD_ENABLED === "true") {
|
||||||
const { "not-before-policy": _, refresh_expires_in, ...data } = account;
|
const { "not-before-policy": _, refresh_expires_in, ...data } = account;
|
||||||
return _linkAccount ? _linkAccount(data) : undefined;
|
return _linkAccount ? _linkAccount(data) : undefined;
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
// Azure AD
|
// Azure AD
|
||||||
if (process.env.NEXT_PUBLIC_AZURE_AD_ENABLED === "true") {
|
if (process.env.NEXT_PUBLIC_AZURE_AD_ENABLED === "true") {
|
||||||
|
|
|
@ -59,13 +59,14 @@ export function getLogins() {
|
||||||
if (process.env.NEXT_PUBLIC_AZURE_AD_B2C_ENABLED === "true") {
|
if (process.env.NEXT_PUBLIC_AZURE_AD_B2C_ENABLED === "true") {
|
||||||
buttonAuths.push({
|
buttonAuths.push({
|
||||||
method: "azure-ad-b2c",
|
method: "azure-ad-b2c",
|
||||||
name: process.env.AUTHENTIK_CUSTOM_NAME ?? "Azure AD B2C",
|
name: process.env.AZURE_AD_B2C_CUSTOM_NAME ?? "Azure AD B2C",
|
||||||
});
|
});
|
||||||
|
}
|
||||||
// Azure AD
|
// Azure AD
|
||||||
if (process.env.NEXT_PUBLIC_AZURE_AD_ENABLED === "true") {
|
if (process.env.NEXT_PUBLIC_AZURE_AD_ENABLED === "true") {
|
||||||
buttonAuths.push({
|
buttonAuths.push({
|
||||||
method: "azure-ad",
|
method: "azure-ad",
|
||||||
name: process.env.AUTHENTIK_CUSTOM_NAME ?? "Azure AD",
|
name: process.env.AZURE_AD_CUSTOM_NAME ?? "Azure AD",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Battle.net
|
// Battle.net
|
||||||
|
|
|
@ -95,6 +95,7 @@ declare global {
|
||||||
|
|
||||||
// Azure AD B2C
|
// Azure AD B2C
|
||||||
NEXT_PUBLIC_AZURE_AD_B2C_ENABLED?: string;
|
NEXT_PUBLIC_AZURE_AD_B2C_ENABLED?: string;
|
||||||
|
AZURE_AD_B2C_CUSTOM_NAME?: string;
|
||||||
AZURE_AD_B2C_TENANT_NAME?: string;
|
AZURE_AD_B2C_TENANT_NAME?: string;
|
||||||
AZURE_AD_B2C_CLIENT_ID?: string;
|
AZURE_AD_B2C_CLIENT_ID?: string;
|
||||||
AZURE_AD_B2C_CLIENT_SECRET?: string;
|
AZURE_AD_B2C_CLIENT_SECRET?: string;
|
||||||
|
@ -102,6 +103,7 @@ declare global {
|
||||||
|
|
||||||
// Azure AD
|
// Azure AD
|
||||||
NEXT_PUBLIC_AZURE_AD_ENABLED?: string;
|
NEXT_PUBLIC_AZURE_AD_ENABLED?: string;
|
||||||
|
AZURE_AD_CUSTOM_NAME?: string;
|
||||||
AZURE_AD_CLIENT_ID?: string;
|
AZURE_AD_CLIENT_ID?: string;
|
||||||
AZURE_AD_CLIENT_SECRET?: string;
|
AZURE_AD_CLIENT_SECRET?: string;
|
||||||
AZURE_AD_TENANT_ID?: string;
|
AZURE_AD_TENANT_ID?: string;
|
||||||
|
|
Ŝarĝante…
Reference in New Issue