应用身份管理服务 ONEACCESS-认证登录获取授权码:请求示例

时间:2024-08-30 15:55:32

请求示例

获取OAuth2.0授权码。授权类型为固定值code,配置应用注册时生成的clientId,成功授权后的回调地址为https://example.com,授权范围为固定值get_user_info。

GET https://{domain_name}/api/v1/oauth2/authorize?response_type=code&client_id=NzZeWuiJa91dPSRdZQChMazIh13AW...&redirect_uri=https://example.com&scope=get_user_info&state=test
support.huaweicloud.com/api-oneaccess/IssueOAuthAuthCode.html