IMPORTANT: Set sampleRealm as the default user store using "Set as default" option in the "User Stores" configuration.
Now since we changed the user store the enabled claims and claim mappings will have to be set.
Enable following claims :
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/privatepersonalidentifier claim is enabled by default.
Use the "Claim Mappings" configuration to map claims to user properties as listed below :
Claim URI | User property |
---|---|
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname | FIRSTNAME |
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname | LASTNAME |
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress |
WSO2 Identity Solution has a in-build sample Identity Provider (IdP), which has the full functionality
Now, the identity provider is configured to,
User Name | Password |
---|---|
alice | alice |
chris | chris |
bob | bob |
john | doe |
When downloading cards from the Sample IdP you must login using the browser in your local machine because the certificate of the Sample IdP is issued with "CN=localhost".You can download cards by logging using a Personal card or username/password. Start the Identity Solution application and point your browser to "https://localhost:12433/"
Sample IdP trust "Servlet Filter Sample", and "Servlet Filter Sample" accepts token issued by Sample IdP. Therefore you can log into Servlet Filter sample using the InfoCards issued by the Sampe IdP. When you are logging in the Smaple IdP will issue tokens to the Java Relying Party Sample
Code for this sample is available in the src-distribution under "modules/samples/identity-provider"