grant_type=password - This tells the server you’re using the Password grant type
username= - The user’s username that they entered in the application
password= - The user’s password that they entered in the application
client_id= - The public identifier of the application that the developer obtained during registration
client_secret= - (optional) - If the application is a “confidential client”
这
admin_cli
是默认客户端之一。它有Direct Access Grant
. 这意味着用户可以获取访问令牌,client_id
以便在获取访问令牌 (POST) 调用时将其用作参数。如果您创建了自己的客户端(例如:my-client)并且它具有
Direct Access Grant
,您可以使用它而不是admin-cli
。这是
admin-cli
的 grant_type 图像。grant_type
password
是最简单的 OAuth 授权之一,仅涉及一个步骤您也可以在这里看到其他 grant_types
client_credentials、authorization_code、refresh_token