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

Salt api eauth fail gracefully #35546

Merged
merged 2 commits into from
Aug 18, 2016
Merged

Salt api eauth fail gracefully #35546

merged 2 commits into from
Aug 18, 2016

Conversation

whiteinge
Copy link
Contributor

What does this PR do?

There is no need for salt-api to check eauth permissions after-the-fact. Putting the user's perms in the response is a nice-to-have and should not block authenticating in the event the payload is not exactly in the expected shape.

The 'groups' value in the token payload can be missing, can be False,
can be None, or can be an array.
Salt enforces authorization not salt-api. Showing the user his/her
permissions is a nicety only. We should make a best effort to retrieve
them but if we cannot we should log the user in instead of blocking.
@cachedout cachedout merged commit 70fa2d0 into saltstack:2015.8 Aug 18, 2016
@whiteinge whiteinge deleted the salt-api-eauth-fail-gracefully branch July 31, 2017 21:11
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.

2 participants