OIDC Authentication
Introduction
OIDC is an interoperable authentication protocol based on the OAuth 2.0 family of specifications. For details, see Welcome to OpenID Connect.
This section describes how to integrate a third-party authentication provider with OneAccess through OIDC. OKta is used as an example.
The procedure for accessing the user portal on a PC is used for illustration. Select and configure an application that meets your service requirements.
Configuration Process
Prerequisites
- You have administrator permissions for the Okta platform. For details, see the documentation of the Okta platform.
- You have permissions to access the administrator portal.
Creating an Application on Okta
Create an application and configure authorization information for OneAccess on the Okta platform to establish a trust on OneAccess.
- Log in to the Okta platform.
- On the Okta platform, choose Applications > Add Application, click Create New App, and set the application parameters. For details, see the documentation of the Okta platform.
When you configure the application, set Login redirect URIs to the invocation address automatically generated for the authentication provider that you have added in OneAccess. For details, see Table 1. For example: https://xxx.huaweioneaccess.com/api/v1/oidc/sso/2***71-8***-D***1.
Figure 2 Configuring parameters
Figure 3 Configuring login redirect URIs
- Configure the application parameters and authorize access to specific users. For details, see the documentation of the Okta platform. Figure 4 Configuring application parameters
Figure 5 Authorizing users
Adding an OIDC Authentication Provider
Add an OIDC authentication provider and configure the application information in OneAccess.
- Log in to the administrator portal.
- In the top navigation pane, choose Authentication > Authentication Providers. Then click OIDC. Figure 6 Clicking OIDC
- On the OIDC Authentication Providers page, click Add Authentication Provider in the upper right corner and set the parameters required. Figure 7 Configuring parameters

Table 1 Configuration parameters Parameter
Mandatory
Description
Icon
No
Upload a PNG, JPG, or GIF image whose size does not exceed 50 KB. The recommended size is 32 x 32 pixels.
Display Name
Yes
Display name of the authentication provider, for example, OpenID Connect.
Authentication Type
Yes
User authentication type. Select Initiated by user.
NOTE:- The authentication type cannot be changed once specified.
- If authentication is initiated from the application side, select Initiated by authentication provider.
Public Key Format
Yes
Select a public key format based on the application.
Public Key
Yes
Obtain the public key displayed in jwks_uri of OIDC or from the authentication provider administrator. The public key must match the selected public key format.
- If the public key format is JWKURL, the public key is https://{Okta domain name}/oauth2/v1/keys.
- If the public key format is JSON, the public key is the value in https://{Okta domain name}/oauth2/v1/keys.
Signature Algorithm
Yes
The default value is RS256.
Audience
Yes
If Authentication Type is set to Initiated by authentication provider, set this parameter to the value of Audience generated for the application created in 1.
Process Type
Yes
Select a process type based on the application configuration. For example, select Authorization code from the drop-down list.
response Type
Yes
The default value is code.
scope
Yes
Corresponds to the value of scopes of the OIDC authentication provider. The value of this parameter must contain openid. For example, openid email.
authrozationUrl
Yes
Corresponds to the value of EMBED LINK of the OIDC authentication provider.
clientld
Yes
Corresponds to the value of Client ID of the OIDC authentication provider.
PKCE
Yes
By default, this option is disabled. If Authentication Type is set to Initiated by user, enable this option.
tokenUrl
Yes
Token address, which you can obtain from token_endpoint of OIDC. The format is https://{Okta domain name}/api/v1/oauth2/token.
logoutUrl
No
Global logout address of the application, which you can obtain from the application.
Callback URL
Yes
Corresponds to the Login redirect URIs parameter of the application. The value of this parameter is automatically generated.
Source Attribute
Yes
Unique user attribute on the OIDC authentication provider side. For example, email.
Related User Attribute
Yes
OneAccess user attribute that maps the user attribute of the OIDC authentication provider. For example, email.
No User Associated
Yes
Operation that will be performed if a user successfully logs in through OIDC authentication but fails to be associated with a system user.
To map other attributes, such as full name, set No User Associated to Automatically create users, and add the desired mappings. For details, see Table 2.
Table 2 Mapping parameters Parameter
Description
User Attribute
Attribute (such as full name) in OneAccess that maps to the OIDC application.
Mapping Type
Mode of user attribute mapping between OneAccess and the OIDC application.
Authentication Provider Attribute Name
User attribute in the OIDC application, for example, name.
Enabling OIDC Authentication
- Log in to the administrator portal.
- In the top navigation pane, choose Resources > Applications. Then select UserCenter in the Pre-integrated Applications section.
- On the application information page, click the application icon.
- On the application details page, choose Login Settings > Web Applications, enable OIDC authentication, and select the authentication provider added in Adding an OIDC Authentication Provider. Figure 8 Enabling OIDC authentication
Logging In to the User Portal Through OIDC Authentication
- Go to the user portal login page, select OIDC, enter the username and password of the user authorized in 3, and click Log In. Figure 9 Selecting OIDC
- After login, go to the administrator portal, choose Users > Organizations and Users, and view the automatically created user.
- To automatically create a new user if the authorized user is not associated with any system user, set No User Associated to Automatically create users. For details, see Table 1.
- If the user attribute email is unique, users automatically created in the preceding scenario belong to the first root organization in OneAccess by default.
Figure 10 Viewing users
Last Article: SAML Authentication
Next Article: CAS Authentication
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.