Hi @Matthias,I am trying to use this nodeJS program here https://github.com/aerogear/aerogear-unifiedpush- but it doesn't work. I've used the correct username and password and client_id is ups-client.server/blob/master/node.js/ directgranttest.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> JBWEB000309: 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></ html> 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