Skip to content

Suggest to re-authenticate to fix "SAML enforcement" error#4241

Merged
mislav merged 1 commit intotrunkfrom
saml-error
Sep 3, 2021
Merged

Suggest to re-authenticate to fix "SAML enforcement" error#4241
mislav merged 1 commit intotrunkfrom
saml-error

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Aug 30, 2021

As far as I can put together, this error appears when someone has authenticated GitHub CLI with a PAT that isn't authorized to access a certain org. It can also happen if someone has authorized GitHub CLI using the legacy "GitHub CLI (dev)" OAuth app instead of our production OAuth app.

Doing gh auth refresh will re-authenticate the user using our production "GitHub CLI" OAuth app which will not have problems accessing resources in different GitHub organizations.

Fixes #2661

As far as I can put together, this error appears when someone has
authenticated GitHub CLI with a PAT that isn't authorized to access a
certain org. It can also happen if someone has authorized GitHub CLI
using the legacy "GitHub CLI (dev)" OAuth app instead of our production
OAuth app.

Doing `gh auth refresh` will re-authenticate the user using our
production "GitHub CLI" OAuth app which will not have problems accessing
resources in different GitHub organizations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document how to fix "Resource protected by organization SAML enforcement"

2 participants