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

Adds support for custom identity resources and claims #12

Merged
merged 2 commits into from
Aug 21, 2019
Merged

Adds support for custom identity resources and claims #12

merged 2 commits into from
Aug 21, 2019

Conversation

vitalyal
Copy link
Contributor

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

@vitalyal
Copy link
Contributor Author

Hello @AleF83,
Could you please provide feedback on this PR and maybe tell what needs to be additionally done to get it merged

@AleF83 AleF83 changed the base branch from master to dev August 21, 2019 07:45

namespace OpenIdConnectServer.Utils
{
public class ClaimJsonConverter : JsonConverter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public class ClaimJsonConverter : JsonConverter
public class ClaimJsonConverter : JsonConverter<Claim>

Copy link
Contributor Author

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

@AleF83
Copy link
Contributor

AleF83 commented Aug 21, 2019

Hey, Vitaly.
Thank you for your PR.
Sorry for late response.
It looks great!
Just one small remark.
After you'll fix it I'll merge it to dev branch and when it will pass CI I'll merge it to master branch and push image to DockerHub

Uses generic version for JsonConverter
@AleF83 AleF83 merged commit b5dba6d into Soluto:dev Aug 21, 2019
AleF83 added a commit that referenced this pull request Aug 21, 2019
* Adds support for custom identity resources and claims

* Adds support for custom identity resources and claims.

Uses generic version for JsonConverter
@AleF83
Copy link
Contributor

AleF83 commented Aug 22, 2019

@vitalyal I've pushed new image to DockerHub.
Thank you for your contribution!

@vitalyal vitalyal deleted the feature/custom-identity-resources branch August 22, 2019 11:38
@vitalyal
Copy link
Contributor Author

@AleF83 thank you for publishing and for the project itself! :)

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.

2 participants