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

UserSecurityActor does not expose the claims principal #74

Open
KristofferBerge opened this issue Feb 24, 2020 · 3 comments
Open

UserSecurityActor does not expose the claims principal #74

KristofferBerge opened this issue Feb 24, 2020 · 3 comments

Comments

@KristofferBerge
Copy link

KristofferBerge commented Feb 24, 2020

It's not easy to extend the UserSecurityActor to check more than Roles and Claims because it does not expose the ClaimsPrincipal.

If it exposes that we can extend it to check for whatever we need.

┆Issue is synchronized with this Asana task

@KristofferBerge
Copy link
Author

Our use case is to find a value in the scope claim. The scope claim contains a list of scopes. If there was a claim contains rule, we would not have to implement this ourselves.

@ghost
Copy link

ghost commented Feb 25, 2020

➤ Einar Ingebrigtsen commented:

Are you looking for a value within the claim value, or is it the whole value. If it's the latter, you could use the method called HasClaimTypeWithValue(). (https://github.com/dolittle-fundamentals/DotNET.Fundamentals/blob/master/Source/Security/IUserSecurityActor.cs)

@KristofferBerge
Copy link
Author

The scope claim contains a list of values. I would like to check if a given value is in that list

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

1 participant