This documentation is for WSO2 Identity Server 5.0.0. View documentation for the latest release.
Customizing the Claim for the User Attribute - Identity Server 5.0.0 - WSO2 Documentation
||
Skip to end of metadata
Go to start of metadata

This can be done only once you have installed the WSO2 Identity Server 5.0.0 along with the Service Pack. If you are using multiple attribute authentication and want to customize the claim to be used for user name attribute, do the following.

Edit the following element in the <IS_HOME>/repository/conf/security/application-authentication.xml file.

<AuthenticatorConfig name="BasicAuthenticator" enabled="true">
	<Parameter name="UserNameAttributeClaimUri">http://wso2.org/claims/emailaddress</Parameter>
</AuthenticatorConfig>

This will return the email address of the authenticated user. It can be configured to return any attribute by changing the 'UserNameAttributeClaimUri' parameter.

  • No labels