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/...
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/...;,
{
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