-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review and decide on the Netlify CMS backend & auth options #204
Comments
Wow, I just tried using the GitHub backend, and it was astonishingly easy... even easier than the documentation says. I'm wondering if I've missed something, as it seems too good to be true. All I did was set this in the backend:
name: github
repo: timwis-test/jkan-demo
branch: gh-pages I then ran my JKAN instance locally (with If I've understood this correctly, it removes the "setting up an oauth application on github" step completely (and instead uses Netlify.com's shared one). I just want to verify that we have the option of not using Netlify.com at all, and running it ourselves, if we want to. |
Ah, okay, so this is slightly more complicated than I thought—Netlify must have had something cached when I did it before, but on a fresh fork of JKAN (
Just want to think through these a bit more to make sure we stick to our guiding principle of 'easy setup process'. |
Apologies for the lack of progress on this PR—I've been a bit stuck on this topic, and haven't had a lot of time to think it through. It seems like this could amount to a significant change to the 'default' for JKAN. I'd imagine the setup instructions would have 3 options for users: A. Deploy on GitHub pages (via forking), but with no editing UI (edit the yaml files manually) B. Deploy on Netlify (via a one-click deploy button), with this new editing UI C. Self-host anywhere, and optionally run gotrue to enable the editing UI I think option B would end up being the one we highlight as 'recommended', which is what feels like a significant change. I just wish there were an easy way to host it on GitHub pages and still get the editing UI running. I'm currently trying to get gotrue running on render.com, to see how complex it will be. So far, it's a bit more complex than I expected (e.g. it requires a database). @BryanQuigley let me know if you have any ideas on this. |
I don't know if we need to invest in C. I'd revise A as "Deploy on GitHub pages (via forking) or Gitlab Pages, but with either no editing UI (or built-in) but any user who runs docker can get access to the netlify-cms editing UI locally. " (Or follow these instructions to get netlify-cms running locally - I'm happy to work on getting the docker bit working for netlify editing) It does seem like B would be the nice default though. I think that's OK to stop there - all the pieces if someone wants to pick it up and self-host anywhere are open source. |
Good point. I think I just want to validate that it's possible, but I agree we don't need to go down a rabbit hole of optimising for it. Okay, so we'll make Netlify the recommended hosting option for JKAN, and also make it easy to disable the Editor UI if you just want to host it on Git(hub|lab) Pages and edit the YAML files manually. And perhaps we'll have a blurb at some point on how to self-host the Editor UI, but I agree it's not critical. I'll translate these tasks into issues for the v2 milestone. |
Sorry to open this back up, but as I've been knee deep in #220, I've learnt a bit more about the authentication providers that come with Netlify CMS. I just want to document what I've learnt, and the decision making process around it. It turns out there are two relevant approaches:
Trying it out
Git Gateway
GitHub OAuth
Pros & ConsGit Gateway
GitHub OAuth
ProposalUltimately I think the portability, technical simplicity, and similarity (of the way JKAN works currently) makes GitHub OAuth the winner. We can document how to use the Git Gateway option for those who are happy to go 'all in' on Netlify or don't want to require editors have GitHub accounts. I'm going to proceed with that in #220, but I'll leave this open for a bit in case anyone would like to share their views (I'd certainly welcome them!). |
Netlify CMS offers several backends. The ones that are relevant to us are:
We'll want to aim for:
Once we decide on this, we'll likely need to create a ticket for updating the installation docs.
The text was updated successfully, but these errors were encountered: