检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
尽管请求URI包含在请求消息头中,但大多数语言或框架都要求您从请求消息中单独传递它,所以在此单独强调。 URI-scheme:表示用于传输请求的协议,当前所有API均采用HTTPS协议。 domain_name:使用OneAccess服务API需要使用用户访问域名,获取方法请参见获取用户访问域名。 resource
管理员已在用户门户应用登录配置中开启密码认证,具体操作请参见登录配置。 操作步骤 用户进入用户门户登录页面。 请联系企业管理员获取用户访问域名,如https://example.huaweioneaccess.com。 用户在登录页面选择“密码”登录。 默认为“用户名/邮箱”登录,输入用户名/邮箱和密码。
尽管请求URI包含在请求消息头中,但大多数语言或框架都要求您从请求消息中单独传递它,所以在此单独强调。 URI-scheme:表示用于传输请求的协议,当前所有API均采用HTTPS协议。 domain_name:使用OneAccess服务API需要使用用户访问域名,获取方法请参见获取用户访问域名。 resource
Id和ClientSecret,redirect_uri配置为应用的回调地址https://example.com,grant_type为固定值authorization_code。 POST https://{domain_name}/api/v1/oauth2/token Content-Type:
RL中: https://auth.huawei.com/authui/federation/websso?domain_id=e35f94************14839c&idp=SAML-OneAccess&protocol=saml&service=https://console
RL中: https://auth.huawei.com/authui/federation/websso?domain_id=e35f94************14839c&idp=SAML-OneAccess&protocol=saml&service=https://console
华为云创建的身份提供商的“登录链接”为:https://auth.huawei.com/authui/federation/websso?domain_id=e35f***************79ba14839c&idp=one001&protocol=oidc CodeArts服务地址为:https://console
在OIDC的jwks_uri中获取或由认证源管理员提供,与公钥格式相匹配。 公钥格式为JWKURL时,公钥为 https://{Okta域名}/oauth2/v1/keys。 公钥格式为JSON格式公钥时,公钥为 https://{Okta域名}/oauth2/v1/keys 中的value值。 签名算法 是
保管。 API使用者从OneAccess获取鉴权Token API使用者调用OneAccess鉴权接口获取鉴权Token。 访问接口:https://访问域名/api/v2/tenant/token?grant_type=client_credentials。 PostMan调用示例:
ion 请求参数 无 响应参数 无 请求示例 获取基于OpenID Connect的身份提供商IdP的Metadata文件。 GET https://{domain_name}/api/v1/oauth2/.well-known/openid-configuration 响应示例
/api/v1/saml2/idp/metadata 请求参数 无 响应参数 无 请求示例 获取基于SAML2.0的身份提供商IdP的Metadata文件。 GET https://{domain_name}/api/v1/saml2/idp/metadata 响应示例 无 状态码 状态码 描述 200 请求成功。
String 错误编号。 error_msg String 错误详情。 请求示例 删除组织,基于组织id删除指定组织。 DELETE https://{domain_name}/api/v2/tenant/organizations/{org_id} Authorization:
String 错误编号。 error_msg String 错误详情。 请求示例 删除用户,基于传入的user_id删除指定用户。 DELETE https://{domain_name}/api/v2/tenant/users/{user_id} Authorization: Bearer
String 错误编号。 error_msg String 错误详情。 请求示例 根据应用id和应用账号id删除指定应用账号。 DELETE https://{domain_name}/api/v2/tenant/applications/{application_id}/accounts/{account_id}
String 错误编号。 error_msg String 错误详情。 请求示例 根据应用id和机构id删除指定的应用机构。 DELETE https://{domain_name}/api/v2/tenant/applications/{application_id}/organizations/{org_id}
String 错误编号。 error_msg String 错误详情。 请求示例 根据应用id和角色id删除指定应用侧角色。 DELETE https://{domain_name}/api/v2/tenant/applications/{application_id}/role/{role_id}
String 错误编号。 error_msg String 错误详情。 请求示例 禁用用户,根据传入的user_id禁用用户。 PUT https://{domain_name}/api/v2/tenant/users/{user_id}/disable Authorization:
error_code String 错误码。 error_msg String 错误详情。 请求示例 获取用户已绑定的社交账号列表。 GET https://{domain_name}/api/v2/sdk/social X-operating-sys-version: Android
String 错误编号。 error_msg String 错误详情。 请求示例 根据应用id和应用账号id禁用指定应用账号。 PUT https://{domain_name}/api/v2/tenant/applications/{application_id}/account
String 错误编号。 error_msg String 错误详情。 请求示例 启用用户,根据传入的user_id启用用户。 PUT https://{domain_name}/api/v2/tenant/users/{user_id}/enable Authorization: