vencax / netlify-cms-github-oauth-provider

netlify oauth github client sending token in form as netlify service itself
204 stars 127 forks source link

I have a question about setup #20

Open KManiKumarReddy opened 4 years ago

KManiKumarReddy commented 4 years ago

I am trying to use this code, I have successfully set up an app at Github and deployed this provider, I see login with GitHub, I have signed in using Github, but I could not log in to Netlify CMS, every time I click on login with Github it's just opening a blank page for me.

romannurik commented 3 years ago

The HTML served by the repo is just a test. To actually use it with Netlify CMS you need to actually serve the HTML hosting the Netlify code, e.g. in app.js add:

app.use(express.static('public'))

And put the Netlify CMS index.html and config.yml in a public folder.

Also make sure you set base_url in config.yml ... which tells Netlify CMS to use this repo's auth endpoint instead of Netlify Identity.

vencax commented 1 year ago

Can you pleas point me to section of [README.md] that is unclear?