Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ OneAccess/ Best Practices/ Application Integration/ SSO Access to Applications Through SAML

SSO Access to Applications Through SAML

Updated on 2024-12-30 GMT+08:00

Introduction

Security Assertion Markup Language (SAML), developed by the Security Services Technical Committee of OASIS, is an open-source standard data format based on XML. SAML exchanges authentication and authorization data between different security domains, meeting the SSO requirements of web applications.

Learn about the following terms and authorization process related to SAML.

  • Terms
    Table 1 Terms

    Term

    Description

    IdP

    Identity provider (IdP), which collects and stores user identity information, such as usernames and passwords, and authenticates users during login.

    SP

    Service provider (SP), which establishes a trust relationship with an IdP and uses the user information provided by the IdP to provide services.

    SSO

    Single sign-on, a process in which users can access a trusted service provider (SP) through a specific redirect URL in OneAccess.

  • Authorization process
    1. A user accesses a web application using a browser.
    2. The web application generates a SAML authentication request.
    3. The web application system sends the redirection URL to the user's browser. The redirect URL contains the encoded SAML authentication request, which should be submitted to the SSO service.
    4. The IdP decodes the SAML request.
    5. The IdP authenticates the user. If the authentication is successful, the IdP generates a SAML response, encodes it, and then returns it to the user's browser. The response contains the user's username.
    6. The browser forwards the SAML response to the assertion consumer service (ACS) URL of the web application.
    7. The web application system uses the public key of the IdP to verify the SAML response. If the verification is successful, the ACS redirects the user to the target website.
    8. The user is redirected to the target URL and logged in to the web application.

This section describes how to integrate an application with OneAccess using the SAML protocol.

Configuration Process

Prerequisites

You have permissions to access the administrator portal.

Adding an Application

Add an application in the administrator portal, and configure the application's metadata file to establish a trust. The application serves as an SP. Use an existing enterprise account to log in to Huawei Cloud. For details, see Logging In to Single Huawei Cloud Account via OneAccess Without Password (SAML - Virtual User SSO).

  1. Log in to the administrator portal.
  2. On the top navigation bar, choose Resources > Applications.
  3. Click Add Custom Application in the Custom Applications section, set the logo and application name, and click Save.

Configuring a Metadata File

Upload the metadata file of the SP or manually configure the metadata. If the metadata has changed, update it so that users can log in to the application through OneAccess.

  1. Click the application added in Adding an Application and click the application icon on the application information page.
  2. In the General Information area, click next to Authentication to enable authentication, select SAML, and click Save.

    NOTE:

    The protocol cannot be changed once specified.

  3. In the General Information area, click Configure next to Authentication. On the Parameters tab page, configure the metadata file. You can upload a file or configure the parameters.

    NOTICE:

    To avoid information leakage, do not include sensitive information in the configuration parameters.

    • Uploading a file
      1. Click Select File and select the metadata file of the SP.

      2. If a message displays indicating that the upload is successful, the system has extracted the metadata.
        NOTE:
        • If a message displays indicating that the file format is incorrect and only XML files are supported, check the file format and upload the metadata file again or configure the parameters.
        • For details about how to obtain the metadata of the application, see the application's documentation.
    • Configuring parameters
      1. On the Parameters tab page, click manually set.
      2. Set the required parameters according to the metadata file of the application, and click Save.

        Table 2 Authentication parameters

        Parameter

        Mandatory

        Description

        SP Entity ID

        Yes

        Unique identifier of the SP. Enter the value of Entity ID displayed in the SP metadata file.

        ACS URL

        Yes

        SP callback URL that receives a response when OneAccess authentication is successful. Enter the value of AssertionConsumerService displayed in the SP metadata file.

        Name ID

        Yes

        Select a user attribute or account attribute. The attribute value will be used as the subject of the assertion.

        NameID Format

        Yes

        Username format supported by the SP. Enter the value of NameIDFormat displayed in the SP metadata file.

        Audience URI

        No

        Audience for which the SAML assertion is intended. By default, this field is the same as SP Entity ID.

        Single Logout URL

        No

        URL to which users will be redirected after logging out of their sessions in OneAccess.

        Default Relay State

        No

        Default value used during IdP-initiated authentication.

        ForceAuth

        Yes

        Disabled by default. If this option is enabled, users will be authenticated again as required by the SP.

        Response Signature

        Yes

        Disabled by default. This option indicates whether to sign SAML responses using the IdP's certificate.

        Assertion Signature

        Yes

        Enabled by default. Assertion requires the IdP's signing certificate. Enter the WantAssertionsSigned value in the SP metadata file.

        Digital Signature Algorithm

        Yes

        Algorithm used to sign SAML responses or assertions. By default, RSA_SHA256 is used.

        Digital Digest Algorithm

        Yes

        Algorithm used to create digests for SAML responses or assertions. By default, SHA256 is used.

        Assertion Encryption

        Yes

        Disabled by default. This option indicates whether to encrypt assertions.

        Request Signature Validation

        Yes

        Enabled by default. This option indicates whether to sign SAML requests. Enter the value of AuthnRequestsSigned displayed in the SP metadata file.

        Signature Certificate Validation

        Yes

        SP public key certificate, which is used to verify SAML request signatures. Enter the content of use="signing" displayed in the SP metadata file.

Configuring Mappings and Authorizing Users

  • Configure attributes that need to be returned to the application after successful authentication.
    NOTE:

    If you have configured the required mapping using Name ID in Configuring a Metadata File, skip this step.

    On the Authentication Settings page, click the Mappings tab, and click Add Mapping to add an attribute mapping.
    Table 3 Mapping parameters

    Parameter

    Description

    Application Attribute

    (Required) User attribute that OneAccess will return to the application after successful authentication.

    Mapping Type

    (Required) The mapping type determines the returned attribute value.

    Friendly Name

    (Required) Enter the same value as the Application Attribute.

    Attr Name Format

    (Required) Format of data returned in accordance with the SAML protocol.

  • Then authorize specific users to access the application.

    In the left pane, choose Authorization > Application Accounts. Then click the button for adding accounts to authorize specific users to access the application. To authorize access using a policy, see the descriptions about the application account authorization policy in Configuring an Application.

    NOTE:

    For details about how to configure login, access control, and object models, see Configuring an Application.

Establishing a Trust Between the SP and OneAccess

Configure the metadata file of OneAccess in the SP server to establish a trust on OneAccess.

  1. Download the metadata file of OneAccess.

    1. Log in to the administrator portal.
    2. In the top navigation pane, choose Settings > Service Settings.
    3. Click IDP.
    4. On the IdP page, click Download IdP Metadata in the upper right. The metadata file is automatically saved.

  2. Upload the metadata file to the SP server. For details, see the SP's documentation.
  3. Obtain the metadata file of the SP. For details, see the SP's documentation.

Logging In as a User

Log in to the user portal as one of the authorized users, and click the target application to check whether you can access it.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback