Skip to content

Commit 32d2bb6

Browse files
added generic oauth steps
1 parent abaf81f commit 32d2bb6

File tree

9 files changed

+524
-572
lines changed

9 files changed

+524
-572
lines changed

client/packages/lowcoder/src/constants/authConstants.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ export const AuthRoutes: Array<{ path: string; component: React.ComponentType<an
9090
{ path: ORG_AUTH_REGISTER_URL, component: UserRegister },
9191
];
9292

93-
export type ServerAuthType = "GOOGLE" | "GITHUB" | "FORM" | "KEYCLOAK" | "ORY";
93+
export type ServerAuthType = "GOOGLE" | "GITHUB" | "FORM" | "KEYCLOAK" | "ORY" | "GENERIC";
9494

95-
export type ServerAuthTypeInfoValueType = { logo: string; isOAuth2?: boolean };
95+
export type ServerAuthTypeInfoValueType = { logo?: string; isOAuth2?: boolean };
9696
export const ServerAuthTypeInfo: { [key in ServerAuthType]?: ServerAuthTypeInfoValueType } = {
9797
GOOGLE: {
9898
logo: GoogleLoginIcon,
@@ -110,6 +110,10 @@ export const ServerAuthTypeInfo: { [key in ServerAuthType]?: ServerAuthTypeInfoV
110110
logo: OryLoginIcon,
111111
isOAuth2: true
112112
},
113+
GENERIC: {
114+
logo: undefined,
115+
isOAuth2: true
116+
},
113117
FORM: { logo: EmailLoginIcon },
114118
};
115119

0 commit comments

Comments
 (0)