Skip to content

Added Generic OAuth #857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added generic oauth steps
  • Loading branch information
raheeliftikhar5 committed May 8, 2024
commit 32d2bb6f6506486c6c0c069c975fef86b852f9a9
8 changes: 6 additions & 2 deletions client/packages/lowcoder/src/constants/authConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ export const AuthRoutes: Array<{ path: string; component: React.ComponentType<an
{ path: ORG_AUTH_REGISTER_URL, component: UserRegister },
];

export type ServerAuthType = "GOOGLE" | "GITHUB" | "FORM" | "KEYCLOAK" | "ORY";
export type ServerAuthType = "GOOGLE" | "GITHUB" | "FORM" | "KEYCLOAK" | "ORY" | "GENERIC";

export type ServerAuthTypeInfoValueType = { logo: string; isOAuth2?: boolean };
export type ServerAuthTypeInfoValueType = { logo?: string; isOAuth2?: boolean };
export const ServerAuthTypeInfo: { [key in ServerAuthType]?: ServerAuthTypeInfoValueType } = {
GOOGLE: {
logo: GoogleLoginIcon,
Expand All @@ -110,6 +110,10 @@ export const ServerAuthTypeInfo: { [key in ServerAuthType]?: ServerAuthTypeInfoV
logo: OryLoginIcon,
isOAuth2: true
},
GENERIC: {
logo: undefined,
isOAuth2: true
},
FORM: { logo: EmailLoginIcon },
};

Expand Down
Loading