Hi,Have you followed the instructions from the readme and created an ups-client client in keycloak https://github.com/aerogear/aerogear-unifiedpush- ?server/tree/master/node.js SebiOn Tue, Jan 24, 2017 at 4:05 PM, Jose Miguel Gallas Olmedo <jgallaso@redhat.com> wrote:______________________________Hi @Matthias,I am trying to use this nodeJS program here https://github.com/aerogear/aerogear-unifiedpush-server but it doesn't work. I've used the correct username and password and client_id is ups-client./blob/master/node.js/directgra nttest.js This is the output in the console:$ node directgranttest.jsreceiving dataundefinedreceiving data<html><head><title>JBWEB000065: HTTP Status 401 - </title><style><!--H1 {font-family:Tahoma,Arial,sans -serif;color:white;background- color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans -serif;color:white;background- color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans -serif;color:white;background- color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans -serif;color:black;background- color:white;} B {font-family:Tahoma,Arial,sans -serif;color:white;background- color:#525D76;} P {font-family:Tahoma,Arial,sans -serif;background:white;color: black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 401 - </h1><HR size="1" noshade="noshade"><p><b>JBWEB0 00309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u></u></p><p><b>JBWEB000069: description</b> <u>JBWEB000121: This request requires HTTP authentication.</u></p><HR size="1" noshade="noshade"></body></htm l> And I think the problem is when trying to get the bearer token that it's getting this response:HTTP/1.1 400 Bad RequestServer: Apache-Coyote/1.1Content-Type: application/jsonDate: Tue, 24 Jan 2017 14:54:15 GMTConnection: close{"error_description":"Could not find client","error":"invalid_client"} Lastly this is the http request (intercepted by Wireshark):POST /auth/realms/aerogear/tokens/grants/access HTTP/1.1 Content-Type: application/x-www-form-urlencoded Host: localhost:8080Connection: closeTransfer-Encoding: chunked30username=admin&password=123&client_id=ups-client 0--Any clue?Cheers,_________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev
_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev