[keycloak-user] grant_type not provided issue in

Irtiza Ali iali at an10.io
Sun Jul 8 09:38:41 EDT 2018


Hello everyone,

I have a node application, I am implementing SSO for it, I am
authenticating users using keycloak endpoint given below:

http://localhost:8080/auth/realms/nodejs-example/protocol/openid-connect/token

I am able to authenticate the user using the curl request but unable to do
it by using postman and the code given below:


var requestify = require('requestify');

requestify.post('
http://localhost:8080/auth/realms/nodejs-example/protocol/openid-connect/token',
{
client_secret:'17823f90-c7c5-4f07-a78d-f7632a8dee16',
client_id: 'nodejs-connect',
username: 'ali123',
password: '321ssg123',
grant_type: 'password'
}).then(function(response) {
console.log(response.getBody());
.catch(function(response) {
console.log(response);
});


it always given me this error, grant_type node provided.


Thanks in advance!

IA


More information about the keycloak-user mailing list