Skip to content

Commit

Permalink
chore: [IOCOM-1498] FIMS InApp Browser's cookie sharing on iOS (#5816)
Browse files Browse the repository at this point in the history
## Short description
This PR integrates the latest login-utils version and enables cookie
sharing with Safari on InApp Browser for FIMS (iOS only).

## List of changes proposed in this pull request
- Latest login-utils 1.0.1
- Explicitly request cookie sharing on FIMS' saga, when opening the
InApp Browser

## How to test
Manipulate the FIMS saga in order to open a link to a website where you
are already logged-in on Safari. Be aware that this does not work on the
Simulator so you have to use a real device)

---------

Co-authored-by: Martino Cesari Tomba <[email protected]>
  • Loading branch information
Vangaorth and forrest57 authored Jun 10, 2024
1 parent e654f6f commit 7ea4af1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ PODS:
- pagopa-io-react-native-jwt (1.2.0):
- JOSESwift (~> 2.3)
- React-Core
- pagopa-io-react-native-login-utils (1.0.0):
- pagopa-io-react-native-login-utils (1.0.1):
- React-Core
- pagopa-react-native-zendesk (0.3.29):
- React-Core
Expand Down Expand Up @@ -959,7 +959,7 @@ SPEC CHECKSUMS:
pagopa-io-react-native-crypto: 6aa9f33e4bf64ef420ad97c720c1ad0f876cd470
pagopa-io-react-native-http-client: 0799ed85dfe45c56765a394ab1f39aa2fb56f09d
pagopa-io-react-native-jwt: f89a378bbc5ebfd93c24ec5993e97545a4815157
pagopa-io-react-native-login-utils: 442a5e2ab8db2c476fed2cff6d7ad16388ff1f21
pagopa-io-react-native-login-utils: 9fb43fd59dcc864a24343209e74bd7429659456a
pagopa-react-native-zendesk: e4a63ee0745a567b641110f7ff78e457086ab7a3
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"@pagopa/io-react-native-crypto": "^0.3.0",
"@pagopa/io-react-native-http-client": "1.0.2",
"@pagopa/io-react-native-jwt": "^1.2.0",
"@pagopa/io-react-native-login-utils": "^1.0.0",
"@pagopa/io-react-native-login-utils": "^1.0.1",
"@pagopa/io-react-native-wallet": "^0.11.1",
"@pagopa/io-react-native-zendesk": "^0.3.29",
"@pagopa/react-native-cie": "^1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion ts/features/fims/saga/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function* handleFimsGetRedirectUrlAndOpenIAB(

yield* put(fimsGetRedirectUrlAndOpenIABAction.success());
yield* call(NavigationService.dispatchNavigationAction, StackActions.pop());
return openAuthenticationSession(inAppBrowserRedirectUrl, "");
return openAuthenticationSession(inAppBrowserRedirectUrl, "", true);
}

// -------------------- UTILS --------------------
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3321,10 +3321,10 @@
abab "^2.0.6"
zod "^3.22.4"

"@pagopa/io-react-native-login-utils@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@pagopa/io-react-native-login-utils/-/io-react-native-login-utils-1.0.0.tgz#26aa8fe2ae2c30f18d2714264524fd281f0f2b12"
integrity sha512-9OXV4ebpZAGdFfbV5HOt0YbVhGvVb104KshCA7u74YnsTkJp32FhdIVwoqmerRwNO4rRjwwvDjWZdhT80IrOzA==
"@pagopa/io-react-native-login-utils@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@pagopa/io-react-native-login-utils/-/io-react-native-login-utils-1.0.1.tgz#cf6bb709f1613419486b7453a15ba63f0e2784ac"
integrity sha512-tea892roPm42NQIeTCw4WRSVtfuCkr/i+ussj03PttM3BFdCi6y2Kvg1HITxXcDukLza3b+kENzQFRuKRKhPAQ==

"@pagopa/io-react-native-wallet@^0.11.1":
version "0.11.1"
Expand Down

0 comments on commit 7ea4af1

Please sign in to comment.