---
title: Shared Web Credentials
framework: security
role: collectionGroup
role_heading: API Collection
path: security/shared-web-credentials
---

# Shared Web Credentials

Share credentials between iOS apps and their website counterparts.

## Overview

Overview The Security.SecSharedCredentials API provides functions for storing and requesting shared password-based credentials. Users often save their username and password in their iCloud keychain when logging into websites in Safari. Later, they may run a native app from the same developer to access the same account. 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. Users can also create new accounts, update passwords, or delete their accounts from within the app. These changes are then saved and used by Safari.

note: Accessing shared web credentials requires permission from the app, the website, and the user.

## Topics

### First Steps

- [Supporting associated domains](xcode/supporting-associated-domains.md)
- [Managing Shared Credentials](security/managing-shared-credentials.md)

### Password Sharing

- [SecAddSharedWebCredential(_:_:_:_:)](security/secaddsharedwebcredential(_:_:_:_:).md)
- [SecRequestSharedWebCredential(_:_:_:)](security/secrequestsharedwebcredential(_:_:_:).md)
- [SecCreateSharedWebCredentialPassword()](security/seccreatesharedwebcredentialpassword().md)
- [kSecSharedPassword](security/ksecsharedpassword.md)
