nextauthjs / next-auth

Authentication for the Web.
https://authjs.dev
ISC License
22.49k stars 2.98k forks source link

docs: add example authenticating against 3rd-party APIs #10761

Closed falcowinkler closed 2 weeks ago

falcowinkler commented 2 weeks ago

โ˜•๏ธ Reasoning

A much requested example is how to use nextjs to integrate with an external backend. This PR adds an example utilizing our test keycloak instance, of how to integrate with the example backends (should be made public before merge). It will only show to the user if keycloak is actually used.

๐Ÿงข Checklist

๐ŸŽซ Affected issues

๐Ÿ“Œ Resources

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
auth-docs โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback May 2, 2024 8:06pm
1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **next-auth-docs** | โฌœ๏ธ Ignored ([Inspect](https://vercel.com/authjs/next-auth-docs/4BfZhwrRwhQKhz17UzK7AJN77sqW)) | [Visit Preview](https://next-auth-docs-git-fork-falcowinkler-main-authjs.vercel.app) | | May 2, 2024 8:06pm |
vercel[bot] commented 2 weeks ago

@falcowinkler is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

ndom91 commented 2 weeks ago

Awesome, thanks! Would be nice to have soemthing in that doc guide as well as a part of this PR :pray:

EDIT: Hope yuo don't mind, I added a README to the third-party-backends repo you mentioned also linking to this PR and the (soon to come) guide