Netlify-cms: Auth0 backend

Created on 28 Feb 2019  Â·  3Comments  Â·  Source: netlify/netlify-cms

Is your feature request related to a problem? Please describe.
Auth0 is a popular service that centralizes authentication needs. As a developer, I like to use tools that I already know.

Describe the solution you'd like
git-gateway supports third-party services that handle JWT tokens. Integrating Auth0 as an official backend in Netlify CMS could raise its adoption.

Describe alternatives you've considered
I considered using GitLab – where my repositories live – and Netlify Identity but both are not as flexible as Auth0 in case of authentication.

Additional context
Auth0 offers a great API which could be easily integrated. I would do it, but don't know where to start.

Most helpful comment

@talves Thanks, but these backends setup custom authentication servers, to my knowledge.

In case of Auth0, there is no self-hosted service needed since it provides that via the API. A client-side integration is needed, that will be added to the project besides Netlify CMS.

Additionally, I think it would be great to have Auth0 as an official backend like Netlify Identity.

All 3 comments

@cardiv you could start here: https://www.netlifycms.org/docs/authentication-backends#external-oauth-clients

@talves Thanks, but these backends setup custom authentication servers, to my knowledge.

In case of Auth0, there is no self-hosted service needed since it provides that via the API. A client-side integration is needed, that will be added to the project besides Netlify CMS.

Additionally, I think it would be great to have Auth0 as an official backend like Netlify Identity.

An Auth0 backend would work similarly to the Git Gateway backend by wrapping other backends (GitHub, GitLab, Bitbucket) and overriding authentication methods. Here's the main file that drives the Git Gateway backend: https://github.com/netlify/netlify-cms/blob/master/packages/netlify-cms-backend-git-gateway/src/implementation.js

Note there is a ton of stuff in that backend that you don't need to worry about, related to Netlify Large Media, and specific concerns that Git Gateway handles like overriding certain non-auth methods.

Was this page helpful?
0 / 5 - 0 ratings