8000 fix: client default scope cleanup by sebadob · Pull Request #663 · sebadob/rauthy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: client default scope cleanup #663

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

Merged
merged 3 commits into from
Dec 20, 2024
Merged

Conversation

sebadob
Copy link
Owner
@sebadob sebadob commented Dec 20, 2024

Fixes a bug during the deletion of a custom scope.

When you had a custom scope assigned to a client, but only added it to the default_scopes without allowing it for scopes in general, this mapping would get lost during the cleanup of the client mapping, when the custom scope has been deleted without removing the mapping first.

If this happened, you had to remove the scope mapping from the client manually to fix it.

This was due to a check if the to-be-deleted scope exists at all for this client and exit early if not. However, it is possible that a scope exists in default scopes only, so that the client does not have a choice and it will always be added. This has been fixed and an extra test case for this special case has been added as well.

@sebadob sebadob merged commit 9d789c6 into main Dec 20, 2024
@sebadob sebadob deleted the fix-client-cust-scope-cleanup branch December 20, 2024 09:28
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.

1 participant
0