Next-auth: Traditional username/password login

Created on 26 Jul 2020  路  2Comments  路  Source: nextauthjs/next-auth

Please refer to the documentation, the example project and existing issues before creating a new issue.

Your question
Is it possible to use this package as replacement for traditional username/password login

What are you trying to do
Try to submit username/password to be authenticate on Laravel server

Documentation feedback
Documentation refers to searching through online documentation, code comments and issue history. The example project refers to next-auth-example.

  • [ ] Found the documentation helpful
  • [ ] Found documentation but was incomplete
  • [x ] Could not find relevant documentation
  • [ ] Found the example project helpful
  • [ ] Did not find the example project helpful
question

Most helpful comment

Is it possible to use this package as replacement for traditional username/password login

Yes, provided it NextAuth satisfies the minimum or core authentication requirements for your project.

Try to submit username/password to be authenticate on Laravel server

Follow the documentation at https://next-auth.js.org/providers/credentials in order to learn more; it has examples that covers other scenarios such as YubiKey U2F and 2FA.

All 2 comments

Is it possible to use this package as replacement for traditional username/password login

Yes, provided it NextAuth satisfies the minimum or core authentication requirements for your project.

Try to submit username/password to be authenticate on Laravel server

Follow the documentation at https://next-auth.js.org/providers/credentials in order to learn more; it has examples that covers other scenarios such as YubiKey U2F and 2FA.

@muhaimincs we've also recently added an example using the custom credentials provider for ldap auth. Maybe you can use that as an example going forward.

The example is not merged yet, but you can check out the docs here

And if you're reading this a bit in the future, it'll probably be merged and available here also: https://next-auth.js.org/tutorials/ldap-auth

I'm going to close this issue for now as there doesn't seem to be any other open questions. If you have any other feedback or questions, feel free to reopen it!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bscaspar picture bscaspar  路  3Comments

jimmiejackson414 picture jimmiejackson414  路  3Comments

benoror picture benoror  路  3Comments

ghoshnirmalya picture ghoshnirmalya  路  3Comments

dmi3y picture dmi3y  路  3Comments