Configuring an OAuth Authentication Provider
OAuth is an open standard that allows users to authorize third-party applications to access their information stored on a specific resource server without sharing usernames and passwords with the third-party applications.
OneAccess allows you to configure the OAuth protocol as the authentication provider. You can use the OAuth protocol to log in to each application system, providing simpler and more convenient login modes and better user experience for enterprise users.
This section describes how to configure an OAuth authentication provider.
Prerequisite
You have permissions to access the administrator portal.
Establishing a Trust Between the Application and OneAccess
Configure authorization information for OneAccess in the application to establish a trust on OneAccess.
- Obtain the authentication information in OneAccess.
- Log in to the administrator portal.
- On the top navigation bar, choose Settings > Service Settings.
- Click OIDC.
- On the OIDC page, view the authentication address. Click OIDC Settings in the upper right corner to view the configured authentication parameters.
- Obtain the callback address in OneAccess. For details, see Table 1.
- Configure the preceding information in the application. For details, see the application provider's documentation.
- Obtain the authorization information of the application. For details, see the application provider's documentation.
Adding an OAuth Authentication Provider
Add an OAuth authentication provider and configure the application information in OneAccess.
- Log in to the administrator portal.
- On the top navigation bar, choose Authentication > Authentication Providers.
- Choose Enterprise Authentication Providers > OAuth.
- On the OAuth Authentication Providers page, click Add Authentication Provider in the upper right corner and set the parameters required.
Figure 1 Configuration 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, OAuth.
Client ID
Yes
Client ID of the application. Obtain the value from the application.
Client Secret
Yes
Client secret of the application. Obtain the value from the application.
Authentication Mode
Yes
Default value: authorization_code.
Client Information Transfer
Yes
Options: basic and post.
Token Transfer
Yes
Default value: Bearer.
Scope
No
Authorization scope. Separate multiple values with commas (,).
Authorization Url
Yes
Authentication URL of the application. Obtain the value from the application.
ObtainToken Url
Yes
URL for obtaining a token. Obtain the value from the application.
UserInfo Url
Yes
URL for obtaining user information. Obtain the value from the application.
Callback URL
Yes
The value is generated by the system and cannot be modified. You can obtain this value when configuring the application.
Source Attribute
Yes
User attribute returned upon successful authentication by the server. This attribute must be the same as that of the application.
Related User Attribute
Yes
OneAccess user attribute that maps the user attribute of the OAuth authentication provider. For example, userName.
No User Associated
Yes
Operation that will be performed if a user successfully logs in through OAuth authentication but fails to be associated with a system user.
Update Existing Attribute
Yes
Default value: No. Determine whether to update the existing user attribute value when a user logs in successfully through the authentication provider and is associated with a system user.
To map other attributes, such as full name, set No User Associated to Automatically create users, and click Add Mapping. For details, see Table 2.
Table 2 Mapping parameters Parameter
Description
User Attribute
Attribute (such as full name) in OneAccess that maps to the OAuth application.
Mapping Type
Mode of user attribute mapping between OneAccess and the OAuth application.
NOTE:- If Mapping Type is set to Authentication Provider Attribute, Source Attribute is required.
- If Mapping Type is set to Fixed Attribute Value, Fixed Attribute Value is required.
- If Mapping Type is set to Script-based, Script is required.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot