🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
♻️ refactor: remove azure-ad auth provider (#9942)
Arvin Xu103c4d70fceb
diff --git a/src/libs/next-auth/sso-providers/azure-ad.ts b/src/libs/next-auth/sso-providers/azure-ad.tsdeleted file mode 100644index 370f8b53496..00000000000--- a/src/libs/next-auth/sso-providers/azure-ad.ts+++ /dev/null@@ -1,33 +0,0 @@-import AzureAD from 'next-auth/providers/azure-ad';--import { authEnv } from '@/envs/auth';--import { getMicrosoftEntraIdIssuer } from './microsoft-entra-id-helper';-import { CommonProviderConfig } from './sso.config';--const provider = {- id: 'azure-ad',- provider: AzureAD({- ...CommonProviderConfig,- // Specify auth scope, at least include 'openid email'- // all scopes in Azure AD ref: https://learn.microsoft.com/en-us/entra/identity-platform/scopes-oidc#openid-connect-scopes- authorization: { params: { scope: 'openid email profile' } },- // TODO(NextAuth ENVs Migration): Remove once nextauth envs migration time end- clientId: authEnv.AZURE_AD_CLIENT_ID ?? process.env.AUTH_AZURE_AD_ID,- clientSecret: authEnv.AZURE_AD_CLIENT_SECRET ?? process.env.AUTH_AZURE_AD_SECRET,- issuer: getMicrosoftEntraIdIssuer(),- // Remove end- // TODO(NextAuth): map unique user id to `providerAccountId` field- // profile(profile) {- // return {- // email: profile.email,- // image: profile.picture,- // name: profile.name,- // providerAccountId: profile.user_id,- // id: profile.user_id,- // };- // },- }),-};--export default provider;diff --git a/src/libs/next-auth/sso-providers/index.ts b/src/libs/next-auth/sso-providers/index.tsindex aba3e0094d1..694532b41a2 100644--- a/src/libs/next-auth/sso-providers/index.ts+++ b/src/libs/next-auth/sso-providers/index.ts@@ -1,7 +1,6 @@import Auth0 from './auth0';import Authelia from './authelia';import Authentik from './authentik';-import AzureAD from './azure-ad';import Casdoor from './casdoor';import CloudflareZeroTrust from './cloudflare-zero-trust';import Cognito from './cognito';@@ -19,7 +18,6 @@ import Zitadel from './zitadel';export const ssoProviders = [Auth0,Authentik,- AzureAD,GenericOIDC,Github,Zitadel,