We’ve enabled Identity in the UI, added the ‘netlify identity widget’ to our site, and have oauth configured with github. Unfortunately we are getting the following error when attempting to access the admin page of our site:
Hmm, I’m not an expert I’ve just been playing around with this a lot myself recently.
I’ll tag @Dennis who is an identity expert!
In the meantime, does this same issue occur locally, is it the same error if so?
If it was me I would be looking at the api requests being made, see what fails, it might not be finding a directory or file in your admin page, so if it looks like that you could also download you latest deploy zipped, and then see if any files or folders are missing that youd expect to be there.
Have you followed any particular guides to set this up as I could try to follow the same and see if I can recreate the error? I messed around with my own config and couldn’t get the error.
Ill link a resource here just incase there was an oversight in linking github as a backend:
I am also a Community Pilot here on The Community but I’ve got an extensive understanding of Netlify Identity. Hopefully I can help you out. First things first, I want to clarify that when you activated Netlify Identity for your site in the Netlify Admin interface, Netlify spun up an instance of the Netlify Identity service for you. That service is called GoTrue and it’s an open source project. That’s all a bit tertiary to your issue, but the point I’m wanting to make is that authenticating via GitHub is just a different way to register a user into your GoTrue instance. If that’s working, your Netlify Identity instance is working.
That said, you’ve clearly got an issue! I’ve never seen a “Not Found” issue quite like that… but then, the login text-boxes typically look a little different too. Is this just a stock Netlify CMS? You didn’t make any changes to that, did you? The login panel from Netlify Identity typically looks like:
Either way, if you’re up for spending a bit of time working through it together, I’m sure we can get you there. You can also have traditional email/password auth enabled and GitHub auth enabled, so we could work on it even while your CMS users continue to authenticate via GitHub to do their work.
One other note I want to add is that if you do want to use GitHub OAuth, technically anybody with a GitHub account can log into your Netlify CMS unless you add very specific checks via special Netlify Functions. For the security of your site, please review those.
@chrisg, I think that post that @jonsully linked to would be useful in your case. From experience, ‘Not found’ typically points to a permissions issue. Can you try the steps mentioned in the post and see if that helps? Basically, the following:
disabling Git Gateway in the Netlify UI,
revoking Netlify Auth access in my personal Github account (not the one where the repo lies) and then
enabling Git Gateway in the Netlify UI again
has solved the problem