mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-15 20:16:02 +00:00
💄 style: integrate Amazon Cognito for user authentication (#7472)
* feat: integrate Amazon Cognito for user authentication * fix --------- Co-authored-by: Liu, Yijun <liuyijun@amazon.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import Cognito from 'next-auth/providers/cognito';
|
||||
|
||||
const provider = {
|
||||
id: 'cognito',
|
||||
provider: Cognito({
|
||||
clientId: process.env.AUTH_COGNITO_ID,
|
||||
clientSecret: process.env.AUTH_COGNITO_SECRET,
|
||||
issuer: process.env.AUTH_COGNITO_ISSUER,
|
||||
}),
|
||||
};
|
||||
|
||||
export default provider;
|
||||
@@ -12,6 +12,7 @@ import Logto from './logto';
|
||||
import MicrosoftEntraID from './microsoft-entra-id';
|
||||
import WeChat from './wechat';
|
||||
import Zitadel from './zitadel';
|
||||
import Cognito from "./cognito";
|
||||
|
||||
export const ssoProviders = [
|
||||
Auth0,
|
||||
@@ -28,4 +29,5 @@ export const ssoProviders = [
|
||||
WeChat,
|
||||
Keycloak,
|
||||
Google,
|
||||
Cognito
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user