diff --git a/README.md b/README.md index 9f97396..647574f 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,8 @@ The application requires the following environment variables: - `DATABASE_URL`: PostgreSQL connection string - `NEXTAUTH_SECRET`: Secret for NextAuth.js - `NEXT_PUBLIC_BASE_URL`: Public URL of the application +- `MICROSOFT_CLIENT_ID`: Azure AD Application (client) ID for Microsoft Login +- `MICROSOFT_CLIENT_SECRET`: Azure AD Application secret for Microsoft Login ### Database Configuration diff --git a/package-lock.json b/package-lock.json index 2701f39..5426118 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "dependencies": { "@auth/prisma-adapter": "^2.11.1", + "@next-auth/prisma-adapter": "^1.0.7", "@prisma/client": "^5.22.0", "@types/bcryptjs": "^2.4.6", "@types/nodemailer": "^7.0.11", @@ -1955,6 +1956,16 @@ "@tybys/wasm-util": "^0.10.0" } }, + "node_modules/@next-auth/prisma-adapter": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@next-auth/prisma-adapter/-/prisma-adapter-1.0.7.tgz", + "integrity": "sha512-Cdko4KfcmKjsyHFrWwZ//lfLUbcLqlyFqjd/nYE2m3aZ7tjMNUjpks47iw7NTCnXf+5UWz5Ypyt1dSs1EP5QJw==", + "license": "ISC", + "peerDependencies": { + "@prisma/client": ">=2.26.0 || >=3", + "next-auth": "^4" + } + }, "node_modules/@next/env": { "version": "14.2.35", "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.35.tgz", diff --git a/package.json b/package.json index c97e729..157fc51 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "license": "MIT", "dependencies": { "@auth/prisma-adapter": "^2.11.1", + "@next-auth/prisma-adapter": "^1.0.7", "@prisma/client": "^5.22.0", "@types/bcryptjs": "^2.4.6", "@types/nodemailer": "^7.0.11", diff --git a/src/app/auth/login/page.tsx b/src/app/auth/login/page.tsx index 239ac34..6a1195d 100644 --- a/src/app/auth/login/page.tsx +++ b/src/app/auth/login/page.tsx @@ -50,6 +50,10 @@ function LoginContent() { )} +
+ Recommended: Log in with email +
+ {/* Login Form */}