CAS Authentication
Introduction
CAS is an HTTP2- and HTTP3-based protocol which requires that each component be accessed through a specific URL. You can configure OneAccess as a service provider using the CAS protocol to enable user accounts of third-party applications to access OneAccess. CAS 1.0, CAS 2.0, and CAS 3.0 are supported.
The CAS protocol involves two entities: CAS client and CAS server. They exchange information through users' browsers. For example, a CAS client returns a redirect message containing parameters and forwards the message to the CAS server. If the login authentication is successful, the CAS server returns an XML response containing the user information to the CAS client. After authenticating the user information, the CAS client returns the requested resource to the user.
- CAS client: resource provider, for example, third-party applications.
- CAS server: identity authentication provider. For example, OneAccess can be considered as an identity authentication provider.
This section describes how to integrate a third-party authentication provider with OneAccess through CAS.
The procedure for accessing the user portal on a PC is used for illustration. Configure an application that meets your service requirements.
Configuration Process
Prerequisites
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.
- In the top navigation pane, choose Settings > Server Settings. Then click CAS.
- On the CAS page, view the authentication address. Figure 2 Viewing CAS configurations
Table 1 Configuration parameters Parameter
Description
Server Prefix
Prefix of the CAS server URL. The prefix is automatically generated and cannot be changed.
Login URL
Request authorization URL of the CAS server. The URL is automatically generated and cannot be changed.
ST Validity Period
Validity period of a returned ST. Set a validity period from 3 to 15 minutes.
- Obtain the service address in OneAccess. For details, see Table 2.
- 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 a CAS Authentication Provider
Add a CAS 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 CAS. Figure 3 Clicking CAS
- On the CAS Authentication Providers page, click Add Authentication Provider in the upper right corner and set the parameters required.
Table 2 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, CAS.
Login Address
Yes
Login URL of the application, which must start with http or https. For example, https://xxx.xxx.xxx/login.
Logout Address
Yes
Logout URL of the application, which must start with http or https. For example, https://xxx.xxx.xxx/logout.
Validation Address
Yes
Validation address of the application, which must start with http or https. The validation address varies depending on the protocol version.
Validation address for CAS 1.0: https://xxx.xxx.xxx/validate.
Validation address for CAS 2.0: https://xxx.xxx.xxx/serviceValidate.
Validation address for CAS 3.0: https://xxx.xxx.xxx/p3/serviceValidate.
Request Type
Yes
HTTP request initiation mode. The options include GET and POST.
Server Address
Yes
The value is generated by the system and cannot be modified. Obtain this value when configuring the application.
CAS Protocol Version
Yes
Protocol version supported by the application. CAS 1.0 and CAS 2.0 do not support the transfer of user attribute values.
Authentication Provider Attribute
Yes
User attribute returned upon successful authentication by the CAS 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 CAS authentication provider. For example, userName.
No User Associated
Yes
Operation that will be performed if a user successfully logs in through CAS authentication but fails to be associated with a system user.
To map other attributes, such as email, set No User Associated to Automatically create users, and add the desired mappings. For details, see Table 3.
Table 3 Mapping parameters Parameter
Description
User Attribute
Attribute in OneAccess that maps to the CAS application. For example, mobile.
Mapping Type
Mode of user attribute mapping between OneAccess and the CAS application.
Authentication Provider Attribute Name
User attribute in the CAS application. For details, see the application's configurations.
Enabling CAS 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 CAS authentication, and select the authentication provider added in Adding a CAS Authentication Provider.
Logging In to the User Portal Through CAS Authentication
- Go to the user portal login page, select CAS, enter an account and password of the application, and click Log In. Figure 4 Selecting CAS
- 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 2.
- By default, users automatically created in the preceding scenario belong to the first root organization in OneAccess.
Figure 5 Viewing users
Last Article: OIDC Authentication
Next Article: OAuth Authentication
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.