Skip to content
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

Confusion around setting up Git Gateway + Identity for use in Decap CMS #9

Open
jeremyzilar opened this issue May 7, 2020 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@jeremyzilar
Copy link

related decaporg/decap-cms#3711


I am in the process of installing NetlifyCMS + Netlify Large Media and wanted to log a bit of confusion I am encountering in the docs around the git-gateway setup.

My path

  1. I started on the NetlifyCMS page for setting up Netlify Large Media
  2. On the second requirement, I navigated to Configure Netlify CMS to use the Git Gateway backend with Netlify Identity
  3. From the Git Gateway page, I then went to the Netlify Identity Docs
  4. Then I noticed that it mentioned using the netlify-identity-widget to integrate the into your site, but was not sure if it was already included in the NetlifyCMS JS and set up, since this was not mentioned in any of the previous docs for setting up NetlifyCMS + Large Media + Git Gateway.
  5. Also, in looking at the code samples on the Netlify Identity Widget README, it looked like this was the code we'd use to should need to put a login button on the public facing side of our site. The readme didn't mention NetlifyCMS or indicate if this would go in the /admin/index.html page for NetlifyCMS. So I skipped this step, knowing that I could come back to it later.
  6. Next, I changed the backend setting in our config to use name: git-gateway and enabled "Identity" in the Netlify admin. Then I
    • I went to our page at https://brooklynrail.netlify.app/workflow
    • "Signed up" for an account
    • received an email with a link to authenticate
    • clicked the link to authenticate
    • verified that my account was created in the Netlify Identity Admin ✅
    • tried to log in using the new account I set up https://brooklynrail.netlify.app/workflow and got "Email not confirmed" 🛑

Wrong turn, going back

So now I am going back to installing the Netlify Identity Widget in our CMS admin page, and have a few questions about the code on the readme:

  1. Of the code that is here, what is the minimum that I need to install on my page for NetlifyCMS?
  2. The example of the global object, is that needed in my site, or is that just an example?
  3. Do I need to configure "roles" to get this working?

Recommendations for adding Clarity in the docs

I am taking some notes locally and am happy to submit a PR when this is all done. Here are some initial thoughts on improvements

  1. Include all of the steps for configuring up Netlify Large Media on the main docs page,
  2. include the steps to set up Git Gateway and Identity and Identity Widget
  3. include each of the command line installs that are needed as part of the steps (e.g. netlify-cli)
  4. Include screenshots at each step to make it clear you're in the right place
  5. Include a link to an example repo with the configuration already set up

❤️🌈

@suetorres
Copy link

Have you tried this: https://answers.netlify.com/t/common-issue-netlify-cms-git-gateway-email-not-confirmed/10690 works for me. And try switching your branch in config.yml from master to main.

@aentwist
Copy link

aentwist commented Sep 24, 2023

That answer bridged the gap in the documentation for me - the last piece of the Netlify Identity widget authentication flow. It led me to the actual documentation, which does document a particular case although without explanation, that being: 1. Netlify free plan => cannot change email templates to change URLs to /admin => additionally add the Identity widget to the site root. I do not like where this is placed in the documentation. It is buried under Add to Your Site > Authentication instead of just Git Gateway. Furthermore, it does not provide explanation, or document 2. Netlify paid plan => change email templates.

@martinjagodic martinjagodic transferred this issue from decaporg/decap-cms Feb 2, 2024
@martinjagodic martinjagodic changed the title Confusion around setting up Git Gateway + Identity for use in NetlifyCMS Confusion around setting up Git Gateway + Identity for use in Decap CMS Feb 13, 2024
@privatemaker privatemaker added the documentation Improvements or additions to documentation label Feb 15, 2024
@sterlingwes
Copy link
Contributor

For those using a simple GitHub backend and wanting lightweight auth I've added a docs section that might help with the same confusion I had: #64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

5 participants