keystonejs / keystone

The superpowered headless CMS for Node.js — built with GraphQL and React
https://keystonejs.com
MIT License
9.21k stars 1.16k forks source link

Add Github SSO example #5713

Closed gwyneplaine closed 2 years ago

gwyneplaine commented 3 years ago

We want to have an example project which demonstrates Keystone integration with Github SSO This needs to demonstrate how to write a custom mutation which can take an OAuth token from GitHub and use their APIs to associate with a user in keystone and start a session for that user.

Refer to keystone-next-lite implementation.

VinayaSathyanarayana commented 3 years ago

Supporting next-auth will provide support for a lot of Auth Providers in one go

VinayaSathyanarayana commented 3 years ago

The example has to be Social Login (for front end) and also to secure APIs (on the backend)

stale[bot] commented 3 years ago

It looks like there hasn't been any activity here in over 6 months. Sorry about that! We've flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. :)

gwyneplaine commented 2 years ago

Closing issue as its no longer in line with our present plans around examples

krsnaa commented 1 year ago

@gwyneplaine - I really think KeystoneJS should prioritize next-auth integration - both in the adminUI as well as a pure backend NextJS embedded scenario. This feature goes way beyond mere examples; Oauth/Passwordless is a central AuthN tenet in modern apps, that you get served on a platter with next-auth.

tonxxd commented 1 year ago

+1

disco-infinex commented 2 weeks ago

In case anyone missed it, there is now a next-auth example using the GitHub provider. It should be fairly trivial to adapt that code for other ID providers.