- Get tokens using Password Credentials Flow.
curl --location --request POST 'http://localhost:8080/services/oauth2/{organization-id}/{project-id}/token?grant_type=password&username={username}&password={password}&scope={scopes}&client_id={id}&client_secret={secret}' \ --header 'Content-Type: application/x-www-form-urlencoded'
- User enters client and user credentials.
- Client application sends POST request above with client and user credentials.
- iam-service verifies organization / project, client and user credentials.
- iam-service issues tokens if verification above is successful.
- tokens are provided to client application.
- login procedure is complete.
- Token Verification process, back channel.
- client application use access_token to access resources.
- Refresh Tokens flow.
Name | Value |
---|---|
Grant Type | Password Credentials |
Access Token URL | http://localhost:8080/services/oauth2/iam-admins/iam-admins/token |
Username | admin |
Password | secret |
Client ID | admin-client |
Client Secret | top-secret |
Scope | "" |