Replies: 2 comments 1 reply
-
I'm starting to learn Next.js, too. The majority of my environment is Windows. Found this link using NextAuth.js LDAP Authentication. Might want to give a shot. |
Beta Was this translation helpful? Give feedback.
-
@tpanw , @jamesperrin This might be a bit of a necro, but I've managed to implement NTLM auth from browser to a NextJS server (LAN) by making use of this repo next.js-api-middleware which allows you to create and use route middlewares similar to express webservers, and then I've made minor changes to express-ntlm to make it work with NextJS. I now have an /api/auth endpoint which issues the NTLM challenge and confirms identity against ActiveDirectory with an LDAP request and returns the users identity as a JSON response. |
Beta Was this translation helpful? Give feedback.
-
Hi Guys, I am new to Next Js and trying to add windows authentication to my application. I haven't found much material online for this.
So far I have tried to use Node SSPI (but couldn't move forward due to some binary issue), Next Auth, LdapJS. I am able to authenticate my credentials using ldapjs but how to get those credentials from windows/browser is the bigger question now.
if anyone has any idea, please comment here. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions