shield logo
Docs
Shield
Auth

Login

This endpoint is used to authenticate a user and obtain access_token and refresh_token.

Playground

POST
/realms/{REALM_ID}/clients/{CLIENT_ID}/auth/login

Login

/realms/{REALM_ID}/clients/{CLIENT_ID}/auth/login

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/x-www-form-urlencodedOptional

usernamestring

passwordinteger

Header Parameters

api-keystring

Path Parameters

REALM_ID
Required
string

CLIENT_ID
Required
string

curl -X POST "http://{{base_url}}/realms/string/clients/string/auth/login" \
  -H "api-key: {{API_KEY}}" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "admin@admin.com",
    "password": "12345"
  }'

Successful response

Edit on GitHub

Last updated on