Contents

AssetCredentialUserNameAndPassword

A reference to data that describes a credential that represents a user name and password.

Declaration

object AssetCredentialUserNameAndPassword

Properties

NameTypeDescription
AuthenticationAssetCredentialUserNameAndPasswordAuthenticationObject

The server authentication details.

Reference RequiredAssetCredentialUserNameAndPasswordReferenceObject

The external reference. Ensure that the asset data:

  • Is a JSON document that represents the com.apple.credential.usernameandpassword credential type

  • Uses a media type of application/json, and if it includes a ContentType sub-key, that sub-key media type is also application/json

Discussion

Specify com.apple.asset.credential.userpassword as the declaration type.

Asset example

{
    "Type": "com.apple.asset.credential.userpassword",
    "Identifier": "EB13EE2B-5D63-4EBA-810F-5B81D07F5017",
    "ServerToken": "E180CA9A-F089-4FA3-BBDF-94CC159C4AE8",
    "Payload": {
        "Reference": {
            "DataURL": "https://example.com/asset-data/credential.json",
            "ContentType": "application/json"
        }
    }
}

Topics

Objects

See Also

Assets