-
Notifications
You must be signed in to change notification settings - Fork 35
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
Adds support for custom identity resources and claims #12
Adds support for custom identity resources and claims #12
Conversation
Hello @AleF83, |
src/utils/ClaimJsonConverter.cs
Outdated
|
||
namespace OpenIdConnectServer.Utils | ||
{ | ||
public class ClaimJsonConverter : JsonConverter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class ClaimJsonConverter : JsonConverter | |
public class ClaimJsonConverter : JsonConverter<Claim> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you, missed that, it is fixed now
Hey, Vitaly. |
Uses generic version for JsonConverter
@vitalyal I've pushed new image to DockerHub. |
@AleF83 thank you for publishing and for the project itself! :) |
Hi,
Here is a PR with support for custom identity resources and claims. Config could look like:
USERS_CONFIGURATION_INLINE: | [ { "SubjectId":"1", "Username":"User1", "Password":"pwd", "Claims":[{ "Type": "tenantId", "Value": "sp", },{ "Type": "group", "Value": "group1", },{ "Type": "group", "Value": "group2", }] } ] IDENTITY_RESOURCES_INLINE: | [ { "Name": "tenant", "ClaimTypes": ["tenantId"] }, { "Name": "roles", "ClaimTypes": ["role"] }, { "Name": "groups", "ClaimTypes": ["group"] }, ]
I'm not sure if such customization should be added to readme example