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

Allow checking for wildcard scopes #35

Open
cavis opened this issue Apr 12, 2024 · 0 comments
Open

Allow checking for wildcard scopes #35

cavis opened this issue Apr 12, 2024 · 0 comments

Comments

@cavis
Copy link
Member

cavis commented Apr 12, 2024

Sometimes it's useful to know if a user has any scopes within a namespace. "Does this user have any scopes in feeder:*".

Or to find account ids that have any feeder:* permissions.

Would require either special-casing a wildcard in ScopeList.contains?. Or overriding ScopeList.include? to know about wildcards.

Or slightly higher up in ResourceMap.resources. But I kind of like this in the ScopeList - so it works both for listing resources, and checking a specific resource.

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

No branches or pull requests

1 participant