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