I feel stupid! Thanks a lot Matthias - I was just looking at the Variant ID and not the
Application ID!
If you have some time, be good to know how you got decoded the credentials :)
Thanks
Mus
--------------
Mustafa Musaji
Software Maintenance Engineer
Red Hat UK Ltd
200 Fowler Avenue, Farnborough Business Park, Farnborough, Hants GU14 7JP
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham (USA), Matt Parson (USA), Charles Peters (USA), Michael
O'Neill(Ireland)
----- Matthias Wessendorf [via aerogear-dev]
<ml-node+s1069024n8840h87(a)n5.nabble.com> wrote:
Hi Mus,
I have decoded your credentials, submitted by the UnifiedPush Console.
ec8260b5-5db2-443a-90db-64e49d147c21:4b09a8b7-88da-4bc6-922a-c65fd40045f3
however, your java code has this:
1. .pushApplicationId(
"73275d2d-5e83-4a87-8342-7a6cd15068f2")
2. .masterSecret(
"cd9aabfa-e163-4a52-8f18-4ca3de3b1001")
That does explain the 401
-Matthias
On Mon, Aug 11, 2014 at 4:42 PM, mmusaji <mmusaji(a)redhat.com> wrote:
> I'm using JavaSender 0.8.0. This is from the internal DR3 release.
>
> Here's the POST captured from the console. NOTE: this works fine, but the
> JavaSender fails so if you want me to capture anything from this side let
> me
> know how/what you need.
>
> Remote Address:10.33.1.143:8080
> Request URL:http://10.33.1.143:8080/ag-push/rest/sender
> Request Method:POST
> Status Code:200 OK
> Request Headersview source
> Accept:application/json, text/plain, */*
> Accept-Encoding:gzip,deflate,sdch
> Accept-Language:en-US,en;q=0.8,en-GB;q=0.6
> aerogear-sender:AeroGear UnifiedPush Console
> Authorization:Basic
>
>
ZWM4MjYwYjUtNWRiMi00NDNhLTkwZGItNjRlNDlkMTQ3YzIxOjRiMDlhOGI3LTg4ZGEtNGJjNi05MjJhLWM2NWZkNDAwNDVmMw==
> Connection:keep-alive
> Content-Length:46
> Content-Type:application/json;charset=UTF-8
> Host:10.33.1.143:8080
> Origin:http://10.33.1.143:8080
> Referer:http://10.33.1.143:8080/ag-push/
> User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
> Gecko) Chrome/36.0.1985.125 Safari/537.36
> Request Payloadview source
> {message:{sound:default, alert:Blah}}
> message: {sound:default, alert:Blah}
> Response Headersview source
> Content-Length:13
> Content-Type:application/json
> Date:Mon, 11 Aug 2014 14:36:59 GMT
> Server:Apache-Coyote/1.1
>
>
>
> --
> View this message in context:
>
http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-JavaSender-questio...
> Sent from the aerogear-dev mailing list archive at
Nabble.com.
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
--
Matthias Wessendorf
blog:
http://matthiaswessendorf.wordpress.com/
sessions:
http://www.slideshare.net/mwessendorf
twitter:
http://twitter.com/mwessendorf
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev
_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-JavaSender-questio...
To unsubscribe from [aerogear-dev] JavaSender questions and a few other bits, visit
http://aerogear-dev.1069024.n5.nabble.com/template/NamlServlet.jtp?macro=...