From dpassos at redhat.com Tue Aug 2 18:29:35 2016 From: dpassos at redhat.com (Daniel Passos) Date: Tue, 2 Aug 2016 19:29:35 -0300 Subject: [aerogear-dev] Swift 2.3 updates to AeroGearOAuth2 & AeroGearHttp In-Reply-To: References: Message-ID: Hi Michael, First of all sorry for my late reply and thanks so much for your contributions I really appreciate that. I'll take a look at it asap. On Thu, Jul 21, 2016 at 5:27 PM, Michael Doo wrote: > Hello, > > There are two new pull requests to the AeroGearOAuth2 and AeroGearHttp > libraries to bring them up to date with the latest Xcode 8 beta (beta 3) > and Swift 2.3. They are PR #53 on OAuth2 and #70 on Http. Note that for the > Http project, PR #70 overrides previously submitted PR #67. > > Once these are merged in, I plan to open new branches for iOS 10 targets > and Swift 3. Both will potentially be pretty hairy, as iOS 10 changed a > number of behaviors related to NSURL and Swift 3 contains a whole host of > changes to the language. I don't think there will be any harm in having > minimum targets for either project be at least iOS 9, but they should also > be compatible with iOS 10. > > Best, > Michael Doo > 410 Labs > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- -- Passos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160802/f671e3b7/attachment.html From srinathmatti at kpisoft.com Fri Aug 19 01:48:50 2016 From: srinathmatti at kpisoft.com (Srinath Matti) Date: Fri, 19 Aug 2016 11:18:50 +0530 Subject: [aerogear-dev] agpush behind Apache Httpd issue Message-ID: Hi Team, We are facing issue when deploying agpush behind apache httpd which has the SSL below is the config. We went through your blogs and found a similar thread but it was in complete on how to solve the issue. We cannot expose the aerogear server to external traffic as per the compliance. <---Apache httpd ----> ProxyPass "/ag-push" "http://localhost:8080/ag-push" ProxyPassReverse "/ag-push" "http://localhost:8080/ag-push" ProxyPass "/auth" "http://localhost:8080/auth" ProxyPassReverse "/auth" "http://localhost:8080/auth" <---Apache httpd ----> aerogear-unifiedpush-server-1.1.3.Final-dist.tar.gz wildfly-8.2.1.Final.zip mysql community 5.5 Jboss logs ======= WARN [org.keycloak.events] (default task-20) type=LOGIN_ERROR, realmId=c53e695b-0a38-4c13-8b3d-f8c3a3ef7fb2, clientId=unified-push-server-js, userId=null, ipAddress=127.0.0.1, error=invalid_redirect_uri, response_type=code, redirect_uri=http://mdrtest.kpisoft.com/ag-push/ Reference http://aerogear-dev.1069024.n5.nabble.com/setting-up-aerogea r-behind-nginx-proxy-td9489.html Thanks Srianth -- Notice of Confidentiality. This e-mail is intended only for the person to whom it is addressed. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, print or reply on this e-mail. The information contained in this email including any attachments is solely for the attention of the addressee(s) and may be confidential. Any review, distribution or copying of this email or any attachment is prohibited. Any views or opinions are solely those of the author and do not necessarily represent those of KPISOFT International / KPISOFT Technologies unless specifically stated. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160819/0ea8530c/attachment.html From idel.pivnitskiy at gmail.com Sun Aug 21 23:38:02 2016 From: idel.pivnitskiy at gmail.com (Idel Pivnitskiy) Date: Mon, 22 Aug 2016 06:38:02 +0300 Subject: [aerogear-dev] Push message encryption to support PushMessageData of Push API In-Reply-To: References: Message-ID: I've implemented encryption of push message payload for WebPush variant. Here are two different solutions for the same problem, which use different libs: 1. https://github.com/aerogear/aerogear-unifiedpush-server/pull/747 2. https://github.com/aerogear/aerogear-unifiedpush-server/pull/742 I also updated my previous example for js cookbook. Now it supports push notifications with payloads too: https://github.com/aerogear/aerogear-js-cookbook/pull/16 But I have a problem with java.security and Bouncy Castle provider. When you send a push message, a server gets an exception *java.security.InvalidAlgorithmParameterException: parameter object not a ECParameterSpec*. For more information and to look at the full stack trace, go to the PRs. Could anyone look at this and help me to resolve this problem? Thanks, Idel Pivnitskiy -- Twitter: @idelpivnitskiy GitHub: @idelpivnitskiy On Tue, Jul 26, 2016 at 2:01 PM, Idel Pivnitskiy wrote: > perhaps break it down, on the server into two different sending processes >> ? >> native send (curernt) >> wrbpush send ? >> >> where we would have a WebPushSender API ? >> > > Hard to talk about separate unique API for WebPush right now, when here is > just two implementations (FCM and MPS) and both of them have not > implemented WebPush protocol yet. Think that temporal experimental solution > may be enough now. Let's see what can I do today-tomorrow to allow sending > push notifications to both (FCM and MPS) providers for WebPush variant [1]. > > [1] https://github.com/aerogear/aerogear-unifiedpush- > server/pull/745#discussion_r72153644 > > Best regards, > Idel Pivnitskiy > -- > Twitter: @idelpivnitskiy > GitHub: @idelpivnitskiy > > On Tue, Jul 26, 2016 at 1:17 PM, Matthias Wessendorf > wrote: > >> perhaps break it down, on the server into two different sending processes >> ? >> native send (curernt) >> wrbpush send ? >> >> where we would have a WebPushSender API ? >> >> On Tue, Jul 26, 2016 at 12:10 PM, Matthias Wessendorf >> wrote: >> >>> hrm, not sure I am that happy about these requirements :) >>> >>> I guess we also need to change our data access layer to not just return >>> tokens, but a more complex object, containing token, key and secret - hrm >>> :) >>> >>> On Mon, Jul 25, 2016 at 3:19 AM, Idel Pivnitskiy < >>> idel.pivnitskiy at gmail.com> wrote: >>> >>>> Hi all, >>>> >>>> As we discussed previously, Firefox already supports sending push >>>> message data to browser if it will be encrypted. Since version 50, Google >>>> Chrome also support it [1]. But it requires for UPS to store "public key" >>>> and "auth secret" for each Installation [2]. See current example of sending >>>> push notifications with a payload[3]. >>>> >>>> Storing of two additional fields is not a big deal. But we also have to >>>> refactor PushNotificationSender [4], because it consumes a collection >>>> of device tokens as a param instead of a collection of installations. >>>> >>>> Any thoughts about how we can implement it with minimal changes? >>>> >>>> [1] https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData >>>> [2] https://github.com/aerogear/aerogear-unifiedpush- >>>> server/blob/master/model/api/src/main/java/org/jboss/ >>>> aerogear/unifiedpush/api/Installation.java >>>> [3] https://serviceworke.rs/push-payload_index_doc.html >>>> [4] https://github.com/aerogear/aerogear-unifiedpush- >>>> server/blob/master/push/sender/src/main/java/org/ >>>> jboss/aerogear/unifiedpush/message/sender/PushNotificationSender.java >>>> >>>> Best regards, >>>> Idel Pivnitskiy >>>> -- >>>> Twitter: @idelpivnitskiy >>>> GitHub: @idelpivnitskiy >>>> >>>> _______________________________________________ >>>> 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/ >>> twitter: http://twitter.com/mwessendorf >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160822/0bee60c8/attachment-0001.html From idel.pivnitskiy at gmail.com Mon Aug 22 07:38:44 2016 From: idel.pivnitskiy at gmail.com (Idel Pivnitskiy) Date: Mon, 22 Aug 2016 14:38:44 +0300 Subject: [aerogear-dev] [GSoC] Project results Message-ID: Hi all, This year each student has to prepare a blog post / GitHub Gist / Google Doc / etc. which describes the work they have done for the program. Here are a little instruction for this: https://developers.google.com/open-source/gsoc/help/work-product And this is the link to my gist: https://gist.github.com/idelpivnitskiy/71a3373c7625034bbb7be3976e050fe7 Do you have any comments / suggestion / recommendation before I will submit it to Google? Thanks, Idel Pivnitskiy -- Twitter: @idelpivnitskiy GitHub: @idelpivnitskiy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160822/9eacb6cf/attachment.html From matzew at apache.org Mon Aug 22 07:50:22 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 22 Aug 2016 13:50:22 +0200 Subject: [aerogear-dev] [GSoC] Project results In-Reply-To: References: Message-ID: Hi Idel, great stuff, and I do think it's a great idea to have that kinda summary gist/blog/etc! I am very happy with the status of the document, especially all the added links to PRs and threads. Also, big congrats on being acknowledged on the actual WebPush protocol spec! I'd say, wait until the end of the day if others have some comments, and if not - just submit it to the Google form. Good job on the project, Idel! keep it up! :-) On Mon, Aug 22, 2016 at 1:38 PM, Idel Pivnitskiy wrote: > Hi all, > > This year each student has to prepare a blog post / GitHub Gist / Google > Doc / etc. which describes the work they have done for the program. Here > are a little instruction for this: https://developers. > google.com/open-source/gsoc/help/work-product > > And this is the link to my gist: https://gist.github.com/idelpivnitskiy/ > 71a3373c7625034bbb7be3976e050fe7 > > Do you have any comments / suggestion / recommendation before I will > submit it to Google? > > Thanks, > Idel Pivnitskiy > -- > Twitter: @idelpivnitskiy > GitHub: @idelpivnitskiy > > _______________________________________________ > 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/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160822/f3a00b7a/attachment.html From geraldo.amaral at camara.leg.br Mon Aug 29 15:59:17 2016 From: geraldo.amaral at camara.leg.br (Geraldo Amaral Filho) Date: Mon, 29 Aug 2016 16:59:17 -0300 Subject: [aerogear-dev] Retrieve categories of a device token Message-ID: <021bb7a0-d214-66be-92d1-0a2290af9491@camara.leg.br> I have read the Aerogear's REST API docs, but I could not find a way to get all the categories a device token subscribes. Will I have to query the MySQL database directly to get that information? -- Geraldo Amaral Cenin - C?mara dos Deputados Telefone: 61-3216-3871 From idel.pivnitskiy at gmail.com Mon Aug 29 18:33:13 2016 From: idel.pivnitskiy at gmail.com (Idel Pivnitskiy) Date: Mon, 29 Aug 2016 15:33:13 -0700 Subject: [aerogear-dev] Retrieve categories of a device token In-Reply-To: <021bb7a0-d214-66be-92d1-0a2290af9491@camara.leg.br> References: <021bb7a0-d214-66be-92d1-0a2290af9491@camara.leg.br> Message-ID: Hello Geraldo, When you register a device on the UPS [1] it returns you a JSON object of Installation with a new id. You can use this id to retrieve an Installation object at any time [2], which contains an array of categories for current device token. We can not guarantee, that device token will be unique in UPS database, that's why you have to use Installation.id for feature purposes if needed. [1] https://aerogear.org/docs/specs/aerogear-unifiedpush-rest/index.html#246535932 [2] https://aerogear.org/docs/specs/aerogear-unifiedpush-rest/index.html#-1343907292 Best regards, Idel Pivnitskiy -- Twitter: @idelpivnitskiy GitHub: @idelpivnitskiy On Mon, Aug 29, 2016 at 12:59 PM, Geraldo Amaral Filho < geraldo.amaral at camara.leg.br> wrote: > I have read the Aerogear's REST API docs, but I could not find a way to > get all the categories a device token subscribes. > > Will I have to query the MySQL database directly to get that information? > > -- > Geraldo Amaral > Cenin - C?mara dos Deputados > Telefone: 61-3216-3871 > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160829/1d62a46f/attachment.html From joecavallaro at gmail.com Tue Aug 30 13:18:27 2016 From: joecavallaro at gmail.com (Joe Cavallaro) Date: Tue, 30 Aug 2016 12:18:27 -0500 Subject: [aerogear-dev] OAuth2 Question - Config Message-ID: Hello all, I'm wanting to use Aerogear's OAuth2 to authorize several different services in my iOS app, but am a little confused by the "predefined config" examples and how to use a custom config. Do I just initialize a new Config object and pass it? Thanks! jpcguy89 aka Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160830/866bdc2d/attachment.html From corinnekrych at gmail.com Wed Aug 31 01:23:04 2016 From: corinnekrych at gmail.com (Corinne Krych) Date: Wed, 31 Aug 2016 07:23:04 +0200 Subject: [aerogear-dev] OAuth2 Question - Config In-Reply-To: References: Message-ID: Hello Joe Indeed you can just initialise the config class by itself [1] providing all the OAuth2 provider endpoints. If you want to provide support for different Oauth2 proviers you can also inherit form config and provide your own config. See FacebookConfig for ex [2] ++ Corinne [1] https://github.com/aerogear/aerogear-ios-oauth2/blob/master/AeroGearOAuth2/Config.swift#L23 [2] https://github.com/aerogear/aerogear-ios-oauth2/blob/master/AeroGearOAuth2/AccountManager.swift#L32 On 30 August 2016 at 19:18, Joe Cavallaro wrote: > Hello all, > > I'm wanting to use Aerogear's OAuth2 to authorize several different > services in my iOS app, but am a little confused by the "predefined config" > examples and how to use a custom config. Do I just initialize a new Config > object and pass it? > > Thanks! > > jpcguy89 aka Joe > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160831/14f45bb1/attachment-0001.html