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/ Logging In to the Huawei Cloud Through User Portal/ Logging In to Huawei Cloud via OneAccess Without Password (OIDC)

Logging In to Huawei Cloud via OneAccess Without Password (OIDC)

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

This section uses OIDC as an example to describe how to use OneAccess to log in to CodeArts on the Huawei Cloud console without entering a password.

Creating a Huawei Cloud OIDC Application

Create a Huawei Cloud OIDC application on the OneAccess administrator portal and obtain the OIDC settings to establish a trust relationship between OneAccess and Huawei Cloud.

  1. Add the Huawei Cloud application in OneAccess.

    1. Log in to the OneAccess administrator portal, and choose Resources > Applications.
    2. Click Add Custom Application.
    3. Enter an application name and click Save.
    1. Click the created application and copy the value of ClientId.

  2. Obtain OIDC configurations.

    1. Log in to the OneAccess administrator portal, and choose Settings > Service Settings.
    2. On the displayed page, click OIDC.
    3. Click OIDC Settings.

    1. Obtain the issuer, authorization_endpoint, and jwks_uri addresses.

    2. Copy the jwks_uri address to the address box of a browser to obtain the signing key.

Creating an IdP on Huawei Cloud

Create an IdP and configure the OneAccess application and OIDC on the Huawei Cloud console.

  1. Create an IdP. For details, see Creating an IdP Entity on Huawei Cloud.

    NOTE:
    • The IdP name must be unique. You are advised to use the domain name.
    • Specify the configuration information.
      1. Identity Provider URL: issuer address obtained in 2.d.
      2. Authorization Endpoint: authorization_endpoint address obtained in 2.d.
      3. Client ID: OIDC application ClientId obtained in 1.d.
      4. Signing Key: Public key (in JSON format) obtained in 2.e.

  2. Copy the login address and redirect URI during the configuration.

  3. Configure identity conversion rules on Huawei Cloud so that OneAccess users can access CodeArts. For details, see Configure Identity Conversion Rules.

Establishing a Trust Between OneAccess and Huawei Cloud

Configure the login address and redirect URI of Huawei Cloud in OneAccess.
  1. Log in to the OneAccess administrator portal, and choose Resources > Applications.
  2. Click the added custom Huawei Cloud application.
  3. Enable Authentication, select OIDC, and click Save.

  4. Click Configure on the right of Authentication. On the OIDC configuration page displayed, set Callback URL to the value of the redirect URI obtained in 2 and enable Implicit Authorization.

  5. Configure the Huawei Cloud login entry in OneAccess.

    On the Huawei Cloud application details page, choose Login Settings > Web Applications, click Modify, replace the URL with the login URL of the IdP created on Huawei Cloud, and click OK to save it.

    NOTE:

    To redirect to a specific service page on the Huawei Cloud console, combine the login link of the identity provider created on Huawei Cloud and enter the combined URL. The following takes CodeArts as an example:

    Login link of the identity provider created on Huawei Cloud: https://auth.huawei.com/authui/federation/websso?domain_id=e35f***************79ba14839c&idp=one001&protocol=oidc

    CodeArts service address: https://console-intl.huaweicloud.com/devcloud/?region=cn-east-3&locale=en-us#

    If the service address contains the agencyId=***& field, delete the field, use &service= to combine the two addresses, and enter the combined address in the URL.

    https://auth.huawei.com/authui/federation/websso?domain_id=e35f***************79ba14839c&idp=one001&protocol=oidc&service=https://console.huaweicloud.com/devcloud/?region=cn-south-1&locale=zh-cn#

  6. Grant Huawei Cloud access permissions to users in OneAccess.

    On the Huawei Cloud application details page, choose Authorization > Application Accounts, click the button for adding accounts, select required accounts, and click Save. The selected accounts can access Huawei Cloud via OneAccess without a password.

    NOTE:

    The email address field of an IAM user is mandatory. Users authorized in OneAccess must have this field.

Logging In as a User

Users with Huawei Cloud access permissions can easily access CodeArts with a single click after logging in to the OneAccess user portal.

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