Default Claim Mapping for Multiple User Stores from claim-config.xml

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Default Claim Mapping for Multiple User Stores from claim-config.xml

Gayan Gunawardana
Hi All,

<Claim>
                <ClaimURI>http://wso2.org/claims/givenname</ClaimURI>
                <DisplayName>First Name</DisplayName>
                <AttributeID>givenName</AttributeID>
                <Description>First Name</Description>
                <Required />
                <DisplayOrder>1</DisplayOrder>
                <SupportedByDefault />
 </Claim>

With this configuration givenName map to http://wso2.org/claims/givenname for PRIMARY user store.

In IS 5.3.0 we can set map attribute from drop down for multiple user stores.



Is there a way to do same configuration from claim-config.xml ? If not isn't it better to support by changing structure of claim-config.xml ?

Thanks,
Gayan

--
Gayan Gunawardana
Senior Software Engineer; WSO2 Inc.; http://wso2.com/

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Default Claim Mapping for Multiple User Stores from claim-config.xml

Isura Karunaratne
Hi,

On Thu, Jun 15, 2017 at 8:46 PM, Gayan Gunawardana <[hidden email]> wrote:
Hi All,

<Claim>
                <ClaimURI>http://wso2.org/claims/givenname</ClaimURI>
                <DisplayName>First Name</DisplayName>
                <AttributeID>givenName</AttributeID>
                <Description>First Name</Description>
                <Required />
                <DisplayOrder>1</DisplayOrder>
                <SupportedByDefault />
 </Claim>

With this configuration givenName map to http://wso2.org/claims/givenname for PRIMARY user store.

In IS 5.3.0 we can set map attribute from drop down for multiple user stores.



Is there a way to do same configuration from claim-config.xml ? If not isn't it better to support by changing structure of claim-config.xml ?

AFAIK, there is no such a way to configure secondary user stores mapped attributes from claim-config.xml file. Claim config file reads only the first server startup and tenant creation. Since we can deploy secondary userstores in first startup, +1 to support this.

Thanks
Isura. 

Thanks,
Gayan

--
Gayan Gunawardana
Senior Software Engineer; WSO2 Inc.; http://wso2.com/



--
Isura Dilhara Karunaratne
Senior Software Engineer | WSO2
Mob : +94 772 254 810




_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Default Claim Mapping for Multiple User Stores from claim-config.xml

Darshana Gunawardana
Same file used to initialize tenant's claim mappings.

If we have mapped attributes of secondary user stores in the claim-config.xml, that would not applicable for tenants since in normal tenant creation there would be on the primary user store available to them.

So keep in mind handle those scenarios, if we are to implement this.

Thanks,

On Fri, Jun 16, 2017 at 6:30 AM, Isura Karunaratne <[hidden email]> wrote:
Hi,

On Thu, Jun 15, 2017 at 8:46 PM, Gayan Gunawardana <[hidden email]> wrote:
Hi All,

<Claim>
                <ClaimURI>http://wso2.org/claims/givenname</ClaimURI>
                <DisplayName>First Name</DisplayName>
                <AttributeID>givenName</AttributeID>
                <Description>First Name</Description>
                <Required />
                <DisplayOrder>1</DisplayOrder>
                <SupportedByDefault />
 </Claim>

With this configuration givenName map to http://wso2.org/claims/givenname for PRIMARY user store.

In IS 5.3.0 we can set map attribute from drop down for multiple user stores.



Is there a way to do same configuration from claim-config.xml ? If not isn't it better to support by changing structure of claim-config.xml ?

AFAIK, there is no such a way to configure secondary user stores mapped attributes from claim-config.xml file. Claim config file reads only the first server startup and tenant creation. Since we can deploy secondary userstores in first startup, +1 to support this.

Thanks
Isura. 

Thanks,
Gayan

--
Gayan Gunawardana
Senior Software Engineer; WSO2 Inc.; http://wso2.com/



--
Isura Dilhara Karunaratne
Senior Software Engineer | WSO2
Mob : <a href="tel:+94%2077%20225%204810" value="+94772254810" target="_blank">+94 772 254 810






--
Regards,

Darshana Gunawardana
Associate Technical Lead
WSO2 Inc.; http://wso2.com
E-mail: [hidden email]
Mobile: +94718566859
Lean . Enterprise . Middleware


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev