Skip to content
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

Add support for Microsoft 365 authentication using NextAuth.js #14

Merged
merged 11 commits into from
Jan 16, 2024

Conversation

MocicaRazvan
Copy link
Collaborator

@MocicaRazvan MocicaRazvan commented Jan 15, 2024

Added next-auth, configured the authentication options and the Entra ID / Azure Active Directory provider. I also integrated the next-intl middleware with the auth one. At the end is a small sign-in page proof-of-concept to catch the callback error when access is denied, i.e. the user made a request to the admin and now the request it's pending in the ADD.

Copy link
Member

@GabrielMajeri GabrielMajeri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, just some minor feedback left around.

src/app/[locale]/auth/signin/page.tsx Outdated Show resolved Hide resolved
src/app/[locale]/auth/signin/page.tsx Outdated Show resolved Hide resolved
src/app/[locale]/auth/signin/page.tsx Outdated Show resolved Hide resolved
src/app/api/auth/[...nextauth]/route.ts Outdated Show resolved Hide resolved
src/app/api/auth/[...nextauth]/route.ts Outdated Show resolved Hide resolved
src/app/api/auth/[...nextauth]/route.ts Outdated Show resolved Hide resolved
@GabrielMajeri GabrielMajeri changed the title Next auth Add support for Microsoft 365 authentication using NextAuth.js Jan 16, 2024
@GabrielMajeri GabrielMajeri merged commit f265a72 into main Jan 16, 2024
1 check passed
@GabrielMajeri GabrielMajeri deleted the next-auth branch January 16, 2024 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants