# Shared Web Credentials

**URL:** <https://forum.ionicframework.com/t/shared-web-credentials/124017>\
**Category:** Ionic Native\
**Created:** [March 9, 2018, 12:29pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017 "2018-03-09T12:29:35Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![dangerdan](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dangerdan](https://forum.ionicframework.com/u/dangerdan)\
**Post date:** [March 9, 2018, 12:29pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017/1 "2018-03-09T12:29:35Z")

</div>

I may have missed it, but has anybody found a plugin wrapping the code needed to access shared web credentials?

I want my app to be able to use the same username/password a user may have stored in Safari on iOS to login to my website with.

---

<div class="post-metadata">

**Author:** ![user5555](https://avatars.discourse-cdn.com/v4/letter/u/8e7dd6/32.png) [@user5555](https://forum.ionicframework.com/u/user5555)\
**Post date:** [March 9, 2018, 12:37pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017/2 "2018-03-09T12:37:42Z")

</div>

You could use Deeplinking to log In your user after they installed the app if you don’t find any better solution

---

<div class="post-metadata">

**Author:** ![dangerdan](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dangerdan](https://forum.ionicframework.com/u/dangerdan)\
**Post date:** [March 19, 2018, 2:19pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017/3 "2018-03-19T14:19:27Z")

</div>

Thanks for your reply, but that solution doesn’t address the problem. I’d like to take advantage of the iOS feature, but still haven’t found any information to move forward with this one.

---

<div class="post-metadata">

**Author:** ![user5555](https://avatars.discourse-cdn.com/v4/letter/u/8e7dd6/32.png) [@user5555](https://forum.ionicframework.com/u/user5555)\
**Post date:** [March 19, 2018, 3:06pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017/4 "2018-03-19T15:06:27Z")

</div>

Do you mean the feature that you can share the session between apps? like the google apps? Is that the same feature as what your wrote about?  
Do you know the exact name of this feature?

---

<div class="post-metadata">

**Author:** ![FredVasco](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/fredvasco/32/117307_2.png) [@FredVasco](https://forum.ionicframework.com/u/FredVasco)\
**Post date:** [March 19, 2018, 3:49pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017/5 "2018-03-19T15:49:34Z")

</div>

I am also interested in this question

---

<div class="post-metadata">

**Author:** ![dangerdan](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dangerdan](https://forum.ionicframework.com/u/dangerdan)\
**Post date:** [March 19, 2018, 4:34pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017/6 "2018-03-19T16:34:25Z")

</div>

No, with shared web credentials, the app can access the credentials stored for the website instead of requiring the user to reenter a username and password. See here: [https://developer.apple.com/documentation/security/shared\_web\_credentials](https://developer.apple.com/documentation/security/shared_web_credentials)

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [March 19, 2018, 4:40pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017/7 "2018-03-19T16:40:55Z")

</div>

I am not aware of any Cordova plugin that encapsulates the “Shared Web Credentials” functionality and makes it accessible to the app running inside Cordova. Problem is probably that there are just too many variants and misunderstanding what one is talking about (see above), and nobody took the time to really understand them and make them accessible 😕

---

<div class="post-metadata">

**Author:** ![user5555](https://avatars.discourse-cdn.com/v4/letter/u/8e7dd6/32.png) [@user5555](https://forum.ionicframework.com/u/user5555)\
**Post date:** [March 19, 2018, 6:11pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017/8 "2018-03-19T18:11:08Z")

</div>

It doesn’t seems that there are any cordova plugins available for shared web credentials.  
So I see two solutions here:

- make your own plugin
- or use another technology like deeplinking to login in users from the website. If that’s what you want to do or what are you trying to do?

> [@dangerdan](#):
>
> I’d like to take advantage of the iOS feature

If you don’t have persistent sessions - the user has to re-login every time you start the app, then it would make sense to me to take advantage of the native feature… 🤔 **I would like to hear your reason to use it instead of the other methods to use the website account also in the app without re-entering of the credentials.** 😉

---

<div class="post-metadata">

**Author:** ![dangerdan](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dangerdan](https://forum.ionicframework.com/u/dangerdan)\
**Post date:** [March 19, 2018, 6:48pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017/9 "2018-03-19T18:48:00Z")

</div>

I do have persistent sessions, however the use case for this technology is when a user has first downloaded the app, and has to enter a username/password. They may already have an account via the website, so shared web credentials allows them to use that account without having to retype the details. It’s also used for when a long lived session expires and they have to confirm details.

The KeyChain plugin may be capable of it, I’m investigating and will post back!

---

<div class="post-metadata">

**Author:** ![user5555](https://avatars.discourse-cdn.com/v4/letter/u/8e7dd6/32.png) [@user5555](https://forum.ionicframework.com/u/user5555)\
**Post date:** [March 19, 2018, 7:24pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017/10 "2018-03-19T19:24:50Z")

</div>

Ok, I wish you good Luck with your Investigation!

Are there many people who use the build-in icloud Keychain as passwort manager?

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [March 19, 2018, 7:26pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017/11 "2018-03-19T19:26:59Z")

</div>

It’s more Safari, saving its passwords via iCloud.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:46pm UTC](https://forum.ionicframework.com/t/shared-web-credentials/124017/12 "2021-07-19T21:46:07Z")

</div>

Closed on July 19, 2021, 9:46pm UTC


