SAML Authentication
Introduction
OneAccess supports SAML-based identity authentication. If you already have an identity system, configure a SAML authentication provider in OneAccess to enable users to log in to the OneAccess user portal using their IdP accounts.
Basic Concepts
- IdP
An IdP collects and stores user identity information (such as usernames and passwords), and authenticates users when they log in. For identity authentication between your enterprise and OneAccess, IdP refers to the identity provider of your enterprise.
- SP
An SP uses the user information provided by a trusted IdP to provide services for users. For identity authentication between your enterprise and OneAccess, SP refers to OneAccess.
- SSO
SSO is an access type that allows users to access a trusted SP system after logging in to the enterprise IdP. For example, after a trust relationship is established between an IdP and OneAccess, users in the IdP can use their existing accounts and passwords to access OneAccess through the login link in the IdP.
- SAML 2.0
SAML 2.0 is an XML-based protocol that uses security tokens containing assertions to pass information about an end user between an IdP and SP. It is an open standard ratified by the Organization for the Advancement of Structured Information Standards (OASIS) and is being used by many IdPs. For more information about this standard, see SAML 2.0 Technical Overview. OneAccess supports SAML 2.0-based identity authentication. Enterprise IdPs used for identity authentication in OneAccess must also support SAML 2.0.
This section describes how to integrate a third-party authentication provider with OneAccess through SAML.
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 an IdP and OneAccess
Configure the metadata file of OneAccess in the IdP to establish a trust on OneAccess.
- Download the metadata file of OneAccess.
- Log in to the administrator portal.
- In the top navigation pane, choose Authentication > Authentication Providers. Then click SAML.
- On the SAML Authentication Providers page, click Download SP Metadata in the upper right. The metadata is saved automatically.
- Upload the metadata file to the enterprise IdP server. For details about how to upload the metadata file, see the documentation of your enterprise IdP.
- Obtain the metadata file of the enterprise IdP. For details about how to obtain the metadata file, see the documentation of your enterprise IdP.
Adding a SAML Authentication Provider
Add a SAML authentication provider and configure its metadata file in OneAccess to establish a trust on the IdP.
- Log in to the administrator portal.
- In the top navigation pane, choose Authentication > Authentication Providers. Then click SAML. Figure 2 Clicking SAML
- On the SAML Authentication Providers page, click Add Authentication Provider in the upper right and set the parameters required. Figure 3 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, SAML.
entityId
Yes
Unique identifier of an identity provider. Enter the value of entityID contained in the IdP metadata file.
Signing Certificate
Yes
Signing certificate of the IdP, which you can obtain from the IdP's metadata file.
A signing certificate is a public key certificate used for signature verification. The signing certificate is used during identity authentication to ensure that assertions are credible and complete.
Binding
Yes
Enter the value of SingleSignOnService displayed in the IdP's metadata file.
This parameter specifies how SAML requests are sent during user login. The SingleSignOnService parameter in the metadata file must support HTTP Redirect or HTTP POST.
SSO URL
Yes
Enter the value of SingleSignOnService displayed in the IdP's metadata file.
Logout URL
No
Enter the value of SingleLogoutService displayed in the IdP's metadata file.
This parameter indicates the URL to which users will be redirected after logging out of their sessions.
Source Attribute
Yes
Unique user attribute in the SAML assertion. This attribute must be the same as the system attribute configured in the application mappings. For example, NameId.
Related User Attribute
Yes
OneAccess user attribute that maps the user attribute of the SAML authentication provider. For example, id.
No User Associated
Yes
Operation that will be performed if a user successfully logs in through SAML authentication but fails to be associated with a system user.
To map other attributes, such as username, 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 username) in OneAccess that maps to the SAML application.
Mapping Type
Mode of user attribute mapping between OneAccess and the SAML application.
Authentication Provider Attribute Name
User attribute in the SAML application. For details, go to the IdP platform.
Enabling SAML 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 SAML authentication, and select the authentication provider added in Adding a SAML Authentication Provider. Figure 4 Enabling SAML authentication
Logging In to the User Portal Through SAML Authentication
- Go to the user portal login page, select SAML, enter an IdP account and password, and click Log In. Figure 5 Selecting SAML
- 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.
- By default, users automatically created in the preceding scenario belong to the first root organization on the SP side.
Figure 6 Viewing users
Last Article: Authentication Provider Integration
Next Article: OIDC Authentication
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.