OpenID Connect (OIDC) is a simple identity layer on top of the OAuth 2.0 protocol. It allows Clients to verify the identity of the End-User based on the authentication performed by an Authorization Server, as well as to obtain basic profile information about the End-User in an interoperable and REST-like manner.
The example below shows who to integrate an Angular app with OpenIAM using OIDC. However, you can leverage the steps described below integrate your OIDC application with OpenIAM.
Create an Authentication Provider
To create a new Authentication provider:
- Login to the Webconsole and go to Access Control > Authentication Provider
- Go to
Create New Provider
- Since OIDC is a layer on top of oAuth, OpenIAM combines the UI to configure both oAuth and OIDC clients. Please elect
oAuth Clientfrom the "Select a Provider Type" drop down as shown below
Configure OIDC Client Provider in OpenIAM
|Provider name||This can be any descriptive name to identify this configuration such as |
|Redirect URL||Redirect URLs are a critical part of the OAuth flow. After a user successfully authorizes an application, the authorization server will redirect the user back to the application with either an authorization code or access token in the URL. Since the redirect URL can contain sensitive information, it is critical that the service doesn’t redirect the user to an arbitrary location.|
|Allow multiple Active Tokens||Set this value to |
|Signing Algorithm||Select the algorithm used to sign tokens issued for your application or API. Example is |
|JWT Issuer||This is the JWT Issuer. It identitifies the client that will be issued the JWT token. In this case, we can put any descriptive value like |
|Final JWT Issuer view||This value will be automatically generated upon completing the "JWT Issue" value.|
|OpenID Connect Discovery URL||This value will be automatically generated upon completing the "JWT Issue" value. You can configure your OIDC application using the information found at the URL.|
|Authorization Grant Flow||The grant flow drop down requires the selection of a Grant type. The grant descirts how the client application to acquire an access token which can be used to authenticate a request to an API endpoint. Note: the grant type that you select here, must align with the grant flow that you define in your application. For this example, select |
|Client Authentication Type||Describes how credentials are passed to the authorization server. You can select between |
|Default Scopes||Scopes in OAuth 2.0 provide a way to limit the amount of access that is granted to an access token. You can select the scopes from the dropdown. Note that Scopes in OpenIAM are resources and you can manage them through the Resource Manager interface described under Access control.|
|Skip scope approval||Set this to |
|Token expiration||Access token expires after the specified minutes of being idle. You can set this value to |
|Use refresh token||Refresh tokens carry the information necessary to get a new access token. Whenever an access token is required to access a specific resource, a client may use a refresh token to get a new access token issued by the authentication server. In most cases, this value should be set to |
|Protect by 2FA||Set this value to |
The example represents a value Authentication provider configuration for use with the test Springboot application that was referenced earlier in this section..
Upon saving the configuration, the system will generate the
clientsecret which will be used by your oAuth Client.
Grant access to your application
To be able to access the service provider through the IdP, we must grant access to the service provider by associating it to an entitlement object such as a group / role. While this topic is described in detail in the access control section, the section below provides a brief reference to entitle an application through a role.
- Go to the Webconsole -> Access Control -> Role
- Find an existing role which you want to update such that it is entitled to your service provider
- View the role details by click on the icon in the Actions column
- Go to the
Role Entitlementsoption from the side menu as shown below
- Right click on
Resourcefollowed by select
Addas shown below
- From the
Resource typedrop down select
- From the adjacent dropdown, select the name of your authentication provider as shown below
The role has now been entitled.