[aerogear-dev] JavaSender questions and a few other bits

Matthias Wessendorf matzew at apache.org
Tue Aug 12 04:32:36 EDT 2014


Base64 based de and encoding.

Here is what I did:
https://gist.github.com/matzew/ed817310bc8ea523e536


On Tue, Aug 12, 2014 at 10:26 AM, mmusaji <mmusaji at redhat.com> wrote:

> 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] <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=8856&i=0>> 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 <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=8856&i=1>> 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-questions-and-a-few-other-bits-tp8827p8833.html
> > > Sent from the aerogear-dev mailing list archive at Nabble.com.
> > > _______________________________________________
> > > aerogear-dev mailing list
> > > [hidden email] <http://user/SendEmail.jtp?type=node&node=8856&i=2>
> > > 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
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=8856&i=3>
> > 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-questions-and-a-few-other-bits-tp8827p8840.html
> >
> > To unsubscribe from [aerogear-dev] JavaSender questions and a few other
> bits, visit
> ------------------------------
> View this message in context: Re: [aerogear-dev] JavaSender questions and
> a few other bits
> <http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-JavaSender-questions-and-a-few-other-bits-tp8827p8856.html>
>
> Sent from the aerogear-dev mailing list archive
> <http://aerogear-dev.1069024.n5.nabble.com/> at Nabble.com.
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140812/ea4e5aa1/attachment-0001.html 


More information about the aerogear-dev mailing list