mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
feat: 🎸 support custon oidc server
This commit is contained in:
parent
c8b3cdf01b
commit
fa44a5343b
@ -55,3 +55,15 @@ oauthClientId=
|
|||||||
# Set the client secret for OAuth/OpenID authentication
|
# Set the client secret for OAuth/OpenID authentication
|
||||||
# This is the secret of the client that will be used to verify the user's identity
|
# This is the secret of the client that will be used to verify the user's identity
|
||||||
oauthClientSecret=
|
oauthClientSecret=
|
||||||
|
|
||||||
|
# Set the issuer base URL for OAuth/OpenID authentication
|
||||||
|
# This is the base URL of the service that will be used to verify the user's identity
|
||||||
|
oauthIssuerBaseUrl=
|
||||||
|
|
||||||
|
# Set the issuer name for OAuth/OpenID authentication
|
||||||
|
# This is the name of the service that will be used to verify the user's identity
|
||||||
|
oauthIssuerName=
|
||||||
|
|
||||||
|
# Set the issuer icon for OAuth/OpenID authentication
|
||||||
|
# This is the icon of the service that will be used to verify the user's identity
|
||||||
|
oauthIssuerIcon=
|
||||||
|
@ -46,6 +46,9 @@ export interface TriliumConfig {
|
|||||||
oauthBaseUrl: string;
|
oauthBaseUrl: string;
|
||||||
oauthClientId: string;
|
oauthClientId: string;
|
||||||
oauthClientSecret: string;
|
oauthClientSecret: string;
|
||||||
|
oauthIssuerBaseUrl: string;
|
||||||
|
oauthIssuerName: string;
|
||||||
|
oauthIssuerIcon: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,7 +126,16 @@ const config: TriliumConfig = {
|
|||||||
process.env.TRILIUM_OAUTH_CLIENT_ID || iniConfig?.MultiFactorAuthentication?.oauthClientId || "",
|
process.env.TRILIUM_OAUTH_CLIENT_ID || iniConfig?.MultiFactorAuthentication?.oauthClientId || "",
|
||||||
|
|
||||||
oauthClientSecret:
|
oauthClientSecret:
|
||||||
process.env.TRILIUM_OAUTH_CLIENT_SECRET || iniConfig?.MultiFactorAuthentication?.oauthClientSecret || ""
|
process.env.TRILIUM_OAUTH_CLIENT_SECRET || iniConfig?.MultiFactorAuthentication?.oauthClientSecret || "",
|
||||||
|
|
||||||
|
oauthIssuerBaseUrl:
|
||||||
|
process.env.TRILIUM_OAUTH_ISSUER_BASE_URL || iniConfig?.MultiFactorAuthentication?.oauthIssuerBaseUrl || "https://accounts.google.com",
|
||||||
|
|
||||||
|
oauthIssuerName:
|
||||||
|
process.env.TRILIUM_OAUTH_ISSUER_NAME || iniConfig?.MultiFactorAuthentication?.oauthIssuerName || "Google",
|
||||||
|
|
||||||
|
oauthIssuerIcon:
|
||||||
|
process.env.TRILIUM_OAUTH_ISSUER_ICON || iniConfig?.MultiFactorAuthentication?.oauthIssuerIcon || ""
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user