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

Verify if the client has scopes #195

Open
nesanmano opened this issue Jul 18, 2023 · 0 comments
Open

Verify if the client has scopes #195

nesanmano opened this issue Jul 18, 2023 · 0 comments
Assignees

Comments

@nesanmano
Copy link

I am looking for a way to verify if a client a has a scope.


            if (_client.Scope == null) return false;
            if (scopes == null || scopes.Length == 0) return true;

            return scopes.Select(scope =>
                scope.ToString().ToLower()).All(s => _client.Scope.Contains(s));

The problem is I can't find a property called scope within the client.

@mfilippov mfilippov self-assigned this Aug 1, 2023
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

No branches or pull requests

2 participants