Configuring a custom device name
Requests to the OpenID Connect endpoints can be done programmatically through a client or
an in-app browser rather than the user's default browser. The device name is based on the value of
the user-agent header that is sent from the client. Customize the device name for a
meaningful name that is recorded in the user's tokens and grants that are generated through this
flow.
Before you begin
- You must have administrative permission to complete this task.
- Log in to the IBM® Verify administration console as an Administrator.
About this task
You can configure the OpenID Connect or OpenID Connect for Open Banking application to overwrite
the device name, and change it to what you want. In this example, the device_id
parameter value is used as the device name.
Procedure
- Configure an OpenID Connect or OpenID Connect for Open Banking application. See Configuring single sign-on in the OpenID Connect application.
- Navigate to , and configure the following introspect mapping:
- Click the arrow next to Add attribute, and select Add custom rule.
- Use
requestContext.getValue('device_id')for this rule. - Click OK.
- Use
ibm:devicenamefor the Target attribute. - Click OK.
- Click Save to save the application.
- When a request is made to the authorization endpoint or token endpoint, include the
following parameter
device_id=testapp1. - When this token is introspected, it returns
"ibm:devicename": "testapp1". - When the token grant is retrieved through the grants API, it includes
"deviceName": "testapp1"instead of the browser or client name.