apache / apache/cordova-plugin-inappbrowser
Cookies are not sharing between inAppBowser and with app
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
Cookies are not sharing between inAppBowser and with app
## Problem
I have a SSO login flow i am login in the `InAppBrowser` and sync the cookies with the app `WkWebView` but not working in `v 4.0.0` this issue iam observing after updating `cordova v 10`.
tried follwoing
- updating the `InAppBrowser v 5.0.0` as well.
- plugin for sync cookies `@zalaris/cordova-plugin-wkwebview-inject-cookie`
-
### What is expected to happen?
Need to sync the cookies between `InAppBowser` and `WkWebView app` and vice versa
### What does actually happen?
- When login on inappbrowser cookies are not passing to wkwebview
- open any link on inappbrowser is asking for login
## Information
on
### Command or Code
### Environment, Platform, Device
iOS & Android
### Version information
iOS version 14.4
cordova v 10.0
cordova-ios v6.1
## Checklist
- [ ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [ ] I included all the necessary information above
Contributor guide
Research direction
Start by reproducing the SSO flow on iOS 14.4 with Cordova 10 and cordova-ios 6.1, comparing cookie behavior between InAppBrowser and the app's WkWebView; then check the corresponding Android behavior. Done means cookies transfer between both contexts and links opened in InAppBrowser no longer prompt for login.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, ios
- Domain
- authentication, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100