Did anyone has luck using OAUTH to authenticate to GB from Netlify CMS but NOT using the Netlify API? If so, what did you use? I want do the authentication with my domain but Im not sure which API or package Should I use for this. Im learning. Any help will be appreciated.
So for Netlify CMS to authenticate with GitHub it uses OAuth2 - and the particular version of authentication it uses demands a server-side element to complete the authentication.
The Gatsby starter initializes Git automatically for you, so you only need to do: Go to Netlify and select 'New Site from Git'. Select GitHub and the repository you just pushed to. Click Configure Netlify on GitHub and give access to your repository.
You can use Git Gateway without Netlify by setting up your own Git Gateway server and connecting it with your own instance of GoTrue (the open source microservice that powers Netlify Identity), or with any other identity service that can issue JSON Web Tokens (JWT).
(For Bitbucket repositories, use the Bitbucket backend instead.) The Netlify Identity service can handle the authentication and provides a simple interface for user management.
Yes, the external OAuth clients are listed under https://www.netlifycms.org/docs/authentication-backends/#github-backend. Currently, there are clients in Node.JS, Python, and Go:
Once you set up the server, you can simply add a base_url
setting point to your OAuth client under your backend
in your CMS config:
backend:
name: github
repo: user/repo
base_url: https://your.server.com # URL to OAuth client
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With