<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASCredentialIdentity",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(pl)ASCredentialIdentity"
  },
  "title" : "ASCredentialIdentity"
}
-->

# ASCredentialIdentity

A protocol that credential identity classes conform to that uniquely identifies credentials.

```
protocol ASCredentialIdentity : NSObjectProtocol
```

## Topics

### Ordering credential identities

[`rank`](/documentation/AuthenticationServices/ASCredentialIdentity/rank)

An indicator that enables you to prioritize credential identities relative to each other.

### Associating a user

[`user`](/documentation/AuthenticationServices/ASCredentialIdentity/user)

The username associated with this credential.

### Distinguishing identities

[`recordIdentifier`](/documentation/AuthenticationServices/ASCredentialIdentity/recordIdentifier)

A string used to correlate this identity to a record in your app’s own database.

[`serviceIdentifier`](/documentation/AuthenticationServices/ASCredentialIdentity/serviceIdentifier)

An identifier that helps the system know with which apps or websites to associate this credential.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)