From issues-return-93536-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Tue Mar 20 23:24:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 859A018064A for ; Tue, 20 Mar 2018 23:24:05 +0100 (CET) Received: (qmail 3864 invoked by uid 500); 20 Mar 2018 22:24:04 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 3843 invoked by uid 99); 20 Mar 2018 22:24:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2018 22:24:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 114A5C00D6 for ; Tue, 20 Mar 2018 22:24:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id K-SIaZqT2doG for ; Tue, 20 Mar 2018 22:24:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1B3705F36A for ; Tue, 20 Mar 2018 22:24:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2CD68E0047 for ; Tue, 20 Mar 2018 22:24:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 99151214C1 for ; Tue, 20 Mar 2018 22:24:00 +0000 (UTC) Date: Tue, 20 Mar 2018 22:24:00 +0000 (UTC) From: "Jim Trainor (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-11045) Use the custom CDVWebViewEngine and add automatic cookies sharing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-11045?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D164071= 48#comment-16407148 ]=20 Jim Trainor commented on CB-11045: ---------------------------------- Yes, you do need a landing page after the login in order to add the JWT gen= eration.=C2=A0 In my case I am using OpenID and the final step redirects to= a success page. That's where I implement the JWT logic.=C2=A0 If you have no choice but to share cookies then I suggest you look for plug= ins that let you do that (i.e. share=C2=A0the cookie cache between the cord= ova app and the webview).=C2=A0 I investigated that option, and they do exi= st, but I did not attempt an implementations.=C2=A0 Even with that, it woul= dn't work in case, because some OpenID=C2=A0 providers (Google, at least) d= etect the webview and prevent the login - they want it going through the sy= stem browser because the user experience is better (because their login is = remembered, hence no need to renter credentials). > Use the custom CDVWebViewEngine and add automatic cookies sharing > ----------------------------------------------------------------- > > Key: CB-11045 > URL: https://issues.apache.org/jira/browse/CB-11045 > Project: Apache Cordova > Issue Type: Wish > Components: cordova-plugin-inappbrowser > Environment: iOS, Android > Reporter: Masmejean Jonathan > Priority: Critical > Labels: CDVWebViewEngine, android, cookies, inappbrowser, io= s > > Hello, > With the new version of cordova-lib (>=3D5.4.x), cordova-ios (>=3D4.x) an= d cordova-android (>=3D5.2.x) you have the ability to choose a WebView engi= ne for your app.=20 > On iOS, you have the ability to use the new WKWebView engine and for Andr= oid you can use for example the CrossWalk WebView which use the latest chro= mium WebView for android. > At the moment, with InAppBrowser plugin you are using the default/old/bas= ic WebView system (UIWebView or Chromium 4.4 WebView). So, for every users = that need/want to use the new WebView system for their app encounters a lot= of issues, especially with cookies sharing functionality... Which is reall= y sad when you are using an external Authentication system (like Keycloack)= to log you users in or out, and when you are using secured iFrames that ne= ed cookies to bet set on your app. > It could be great to make the InAppBrowser plugin use the CDVWebViewEngin= e everywhere and had automatic cookies sharing between the app and the popu= p (and vice versa).=20 > That should avoid the merge and fix the https://github.com/apache/cordova= -plugin-inappbrowser/pull/122 issue. > Have you planned to use this new engine already ? If it is the case, when= do you think it will be released ? > Thank you for you time. > Regards. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org