Help Center/ KooDrive/ API Reference/ API/ Session Management/ Obtaining the URL of an OrgID Authorization Code for KooDrive
Updated on 2024-07-30 GMT+08:00

Obtaining the URL of an OrgID Authorization Code for KooDrive

Function

Obtain the URL of an OrgID authorization code for KooDrive.

URI

GET /koodrive/ose/v1/session/authCodeURL

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

domain

Yes

String

Frontend domain name.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Traceid

No

String

Message log trace ID. The value contains 58 bits.

language

No

String

Language code, which complies with the internationalization specifications. For example, en-US indicates English (United States). English (United States) is used by default.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

uri

String

Login address of OrgID.

orgIdHost

String

Domain host of OrgID.

code

String

Response code.

msg

String

Response message.

Example Requests

None

Example Responses

Status code: 200

URL of an OrgID authorization code for KooDrive.

{
  "uri" : "https://orgid-beta.ulanqab.huawei.com/oauth2/authorize?response_type=code&client_id=be93d606a69a214642bf324e147af3366aef98f2cb1eb0b51bf8a27647d135b0&scope=phone+profile+email&redirect_uri=https://kdconsole-sec.hwcloudtest.cn/cloudfile/index.html",
  "orgIdHost" : "https://orgid-beta.ulanqab.huawei.com",
  "code" : 0,
  "msg" : "success"
}

Status Codes

Status Code

Description

200

URL of an OrgID authorization code for KooDrive.