Token
Package : spaceone.api.identity.v2
Token
Token Methods:
issue
+noauth
POST /identity/v2/token/issue
{{< tabs " issue " >}}
{{< tab "Request Example" >}}
credentials (Struct)
Requireddomain_id (string)
Requiredauth_type (AuthType)
LOCAL, EXTERNAL
timeout (int32)
verify_code (string)
if MFA is enabled, verify_code is required
{{< highlight json >}} { "credentials": { "user_id": "wonny@cloudforet.io", "password": "Password0*" }, "auth_type": "LOCAL", "domain_id": "domain-123123a" } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
grant
+noauth
POST /identity/v2/token/grant
{{< tabs " grant " >}}
{{< tab "Request Example" >}}
grant_type (GrantType)
Requiredtoken (string)
Requiredscope (Scope)
Requiredtimeout (int32)
permissions (string)
Repeateddomain_id (string)
workspace_id (string)
{{< highlight json >}} { "grant_type": "REFRESH_TOKEN", "token": "your_refresh_token_from_issue", "scope": "DOMAIN", "domain_id": "domain-123123a" } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
Message
GrantTokenInfo
access_token (string)
Requiredrole_type (RoleType)
Requireddomain_id (string)
Requiredworkspace_id (string)
Requiredrole_id (string)
Required
GrantTokenRequest
grant_type (GrantType)
Requiredtoken (string)
Requiredscope (Scope)
Requiredtimeout (int32)
permissions (string)
Repeateddomain_id (string)
workspace_id (string)
IssueTokenRequest
credentials (Struct)
Requireddomain_id (string)
Requiredauth_type (AuthType)
LOCAL, EXTERNAL
timeout (int32)
verify_code (string)
if MFA is enabled, verify_code is required
TokenInfo
access_token (string)
Requiredrefresh_token (string)
Required
Last updated