mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(core): Add OIDC support for SSO (#15988)
Co-authored-by: Andreas Fitzek <andreas.fitzek@n8n.io>
This commit is contained in:
@@ -72,3 +72,5 @@ export { InsightsDateFilterDto } from './insights/date-filter.dto';
|
||||
|
||||
export { PaginationDto } from './pagination/pagination.dto';
|
||||
export { UsersListFilterDto } from './user/users-list-filter.dto';
|
||||
|
||||
export { OidcConfigDto } from './oidc/config.dto';
|
||||
|
||||
9
packages/@n8n/api-types/src/dto/oidc/config.dto.ts
Normal file
9
packages/@n8n/api-types/src/dto/oidc/config.dto.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { z } from 'zod';
|
||||
import { Z } from 'zod-class';
|
||||
|
||||
export class OidcConfigDto extends Z.class({
|
||||
clientId: z.string().min(1),
|
||||
clientSecret: z.string().min(1),
|
||||
discoveryEndpoint: z.string().url(),
|
||||
loginEnabled: z.boolean().optional().default(false),
|
||||
}) {}
|
||||
@@ -18,7 +18,7 @@ export interface ITelemetrySettings {
|
||||
config?: ITelemetryClientConfig;
|
||||
}
|
||||
|
||||
export type AuthenticationMethod = 'email' | 'ldap' | 'saml';
|
||||
export type AuthenticationMethod = 'email' | 'ldap' | 'saml' | 'oidc';
|
||||
|
||||
export interface IUserManagementSettings {
|
||||
quota: number;
|
||||
@@ -84,6 +84,11 @@ export interface FrontendSettings {
|
||||
loginLabel: string;
|
||||
loginEnabled: boolean;
|
||||
};
|
||||
oidc: {
|
||||
loginEnabled: boolean;
|
||||
loginUrl: string;
|
||||
callbackUrl: string;
|
||||
};
|
||||
ldap: {
|
||||
loginLabel: string;
|
||||
loginEnabled: boolean;
|
||||
@@ -129,6 +134,7 @@ export interface FrontendSettings {
|
||||
sharing: boolean;
|
||||
ldap: boolean;
|
||||
saml: boolean;
|
||||
oidc: boolean;
|
||||
logStreaming: boolean;
|
||||
advancedExecutionFilters: boolean;
|
||||
variables: boolean;
|
||||
|
||||
Reference in New Issue
Block a user