Keycloak Missing form parameter: grant_type

前端 未结 6 1777
攒了一身酷
攒了一身酷 2021-02-05 00:51

I have keycloak standalone running on my local machine.

I created new realm called \'spring-test\', then new client called \'login-app\'

According to the rest docu

6条回答
  •  再見小時候
    2021-02-05 01:36

    For those having problems with curl the curl command is as follows

    curl -d "client_secret=" -d "client_id=" -d "username=" -d "password=" -d "grant_type=password" "http://localhost:8080/auth/realms//protocol/openid-connect/token"
    

    The curl command works without the Content-Type header.

提交回复
热议问题