Yes i can confirm my issue is the same as yours. A user Cannot sign into the CMS using the netlify github auth gateway if the repo is private and belongs to an org (of which the user is the owner, with full permissions). Furthermore i can confirm that the Netlify github App permissions within the github organization are correct read/write.

I have used your workaround - by deploying from a private personal repo. In this case the CMS works fine, indicating that this is not a user error.

thanks for that suggestion @bernhard ! That will probably help some folks get configured.

Two other possibilities:

you should redeploy your site after any config change for identity or git_gateway, particularly if relinking a repo or regenerating a token. We have some internal config that gets updated when you set things, that gets ACTIVATED at next deploy (remember your site is static and it’s a snapshot in time so config like that may not be applied dynamically).

if the person who configured the connection to GitHub has left the Netlify team or Github org , that link will need to be regenerated.

thank you 2 for your answers! @bernhard In github, the organization repository is connected, which I guess is indicated by the red X. If the X means something different than “click it and the the access to this repos will be removed” please let me know. This is not 100% clear to me.

@fool I was trying that. I push to github each time I change something. This deploys the site again. I even deployed a new netlify site of the same repository(organization).

Hi @leond, since you are using git-gateway, have you generated a token for git-gateway? Git-gateway requires that your account have owner access to the repository that you want to use with the netlify-cms.

Hi, thank you all for your answers,
it finally works!!
The problem was, that in the company’s profile settings, the acces of the Netlify Auth app was denied. We changed it based on the description in the link below, but instead of setting up the restriction, we gave access for the Netlify Auth app.