mattmorg55 / Owin.Security.Keycloak

Keycloak Authentication Middleware for the C# OWIN Pipeline
http://keycloak.jboss.org
MIT License
17 stars 20 forks source link

User attribute #5

Open jftsaraiva opened 6 years ago

jftsaraiva commented 6 years ago

Hi,

If I create an user attribute, how I can get that attribute in Claims?

If I change code (in ClaimMapping.cs) and add:

            new ClaimLookup
            {
                ClaimName = "company_id",
                JSelectQuery = "company_id"
            },

it works, but if I add more attributes - I need to change the code for each one?

Thanks.