Use this task to configure identity assertion authentication. The purpose of identity assertion is to assert the authenticated identity of the originating client from a Web service to a downstream Web service. Do not attempt to configure identity assertion from a pure client.
For the downstream Web service to accept the identity of the originating client (user name only), you must supply a special trusted BasicAuth credential that the downstream Web service trusts and can authenticate successfully. You must specify the user ID of the special BasicAuth credential in a trusted ID evaluator on the downstream Web service configuration. For more information on trusted ID evaluators, see Trusted ID evaluators.
The server side passes the special BasicAuth credential into the trusted ID evaluator, which returns true or false that this ID is trusted. After it is trusted, the user name of the client is mapped to the credential, which is used for authorization.
Perform these steps to configure the server for identity assertion authentication:
Open the webservices.xml deployment descriptor for your Web services application in the Web Services Editor of the WebSphere Development Studio Client for iSeries. For more information, see Configure your Web services application.
Click the Security Extensions tab.
Expand the Request Receiver Service Configuration Details --> Login Config settings.
Select IDAssertion to authenticate the client using the identity assertion data provided. This user ID of the client must be in the target user registry configured in WebSphere Application Server - Express global security. You can select global security in the Administrative Console by clicking Security --> Global security.
Note: You can select multiple login configurations, which means that different types of security information can be received at the server. The order in which the login configurations are added decides the order in which they are processed when a request is received. This can cause problems if you have multiple login configurations added that have security tokens in common. For example, ID assertion contains a BasicAuth token, which is the token that is being trusted. For ID assertion to work properly, you must list ID assertion ahead of BasicAuth in the list or BasicAuth processing overrides ID assertion processing.
Expand the IDAssertion section. You need to select both the ID Type and Trust Mode:
These choices are just preferences and are not guaranteed. Most of the time Username is used. You must choose the same ID Type as the client.
The Trust Mode refers to the information sent by the client as the trusted ID. For Trust Mode, the options are as follows:
If you select BasicAuth, the client sends basic authentication data (user ID and password). This BasicAuth data is authenticated to the configured user registry. After the authentication occurs successfully, the user ID must be part of the trusted ID evaluator trust list.
If you select Signature, the client signing certificate is sent. This certificate must be mappable to the configured user registry. For Local OS, the common name (CN) of the distinguished name (DN) is mapped to a user ID in the registry. For LDAP, the DN is mapped to the registry for the ExactDN mode. If it is in the certificateFilter mode, attributes are mapped accordingly. In addition, the user name from the credential generated must be in the Trusted ID Evaluator trust list.
Save the file.
Next, perform the following steps in the Web Services Editor to specify how the identity assertion authentication information is validated.
Click the Binding Configurations tab.
Expand the Request Receiver Binding Configuration Details --> Login Mapping settings.
Click Edit to view the login mapping information. Click Add to add new login mapping information. The login mapping dialog displays.
Select or enter the following information:
Name | Purpose |
---|---|
Authentication method | The authentication method specifies the type of authentication that occurs. Select IDAssertion to use identity assertion authentication. |
Configuration name | This specifies the JAAS login configuration name. For the IDAssertion authentication method, enter system.wssecurity.IDAssertion for the Java Authentication and Authorization Service (JAAS) login configuration name. |
Use Token value type | This option determines if you want to specify a custom token type. For the default authentication method selections, you do not need to specify this option. |
Token value type URI and Token value type local name | When you select ID assertion, you cannot edit these values. These values are specifically for custom authentication types. For the ID assertion authentication method, you do not need to enter any information in these fields. |
Callback Handler Factory Class name | This class name creates a JAAS CallbackHandler implementation that supports the following callbacks:
For any of the default Authentication methods (BasicAuth, IDAssertion, and Signature), use the callback handler factory default implementation. Enter the following class name for any of the default authentication methods including IDAssertion: com.ibm.wsspi.wssecurity.auth.callback. WSCallbackHandlerFactoryImpl. This implementation creates the correct callback handler for the default implementations. |
Callback handler factory property name and Callback handler factory property value | This property is used to specify callback handler properties for Custom callback handler factory implementations. The default callback handler factory implemetation does not need any properties to be specified. For ID assertion, you do not need to enter any values for this property. |
Login mapping property name and Login mapping property value | This option is used to specify properties for a custom login mapping. For the default implementations including IDAssertion, you do not need to enter any properties for this option. |
Expand the Trusted ID Evaluator section. Click Edit to see a dialog displaying all the trusted ID evaluator information. Specify or enter the following information:
Name | Purpose |
---|---|
Class name | The classname refers to the implementation of the trusted ID evaluator that you want to use. Enter the default implementation as com.ibm.wsspi.wssecurity.id.TrustedIDEvaluatorImpl. If you want to implement your own trusted ID evaluator, you must implement the com.ibm.wsspi.wssecurity.id.TrustedIDEvaluator interface. |
Property name | The name is the name of this configuration. Enter BasicIDEvaluator. |
Property value | The property defines name and value pairs that can be used by the trusted ID evaluator implementation. For the default implementation, the trusted list is defined here. When a request comes in and the trusted ID is verified, the user ID, as it appears in the user registry, must be listed in this property. Specify the property as a name and value pair where the name is trustedId_n, where n is an integer (starting from 0) and the value is the user ID associated with that name.
Here is an example list of the trusted names:
These values mean that both user1 and user2 are trusted. Both user 1 and user2 must be listed in the configured user registry. |
Expand the Trusted ID Evaluator Reference section. Click Enable to add a new entry. The text you enter or the Trusted ID Evaluator Reference must be the same as the name entered previously in the Trusted ID Evaluator field. Make sure that the name matches exactly because as the information is case sensitive. If an entry is already specified, you can change it by clicking Edit.