Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASPasswordCredential - from where?

When using Sign in with Apple there's an ASPasswordCredential option which will pull the password from the iCloud keychain. I can't find details though on "where" in the keychain you store things. i.e. how do I know what keys to store the user or password details under.

like image 799
Gargoyle Avatar asked Jul 28 '19 23:07

Gargoyle


People also ask

What is ASPasswordCredential?

A mechanism for generating requests to perform keychain credential sharing. Current page is ASPasswordCredential. Apple. Developer.

How do I log into my Apple ID using Xcode?

Add your Apple ID account and assign the target to a team so Xcode can enable the Sign in with Apple capability with your provisioning profile. Choose a run destination from the scheme pop-up menu that you're signed into with an Apple ID and that uses Two-Factor Authentication.

What is the PasswordCredential constructor?

The PasswordCredential constructor creates a new PasswordCredential object. In supporting browsers, an instance of this class may be passed the credential from the init object for global fetch. iconURL: (Optional) the URL of a user's avatar image.

What do I need to create a PasswordCredential object?

iconURL: (Optional) the URL of a user's avatar image. A reference to an HTMLFormElement with appropriate input fields. The form should, at the very least, contain an id and password. It could also require a CSRF token. This example shows how to set up an HTMLFormElement to caputure data which we'll use to create a PasswordCredential object.

What are the limitations of the PasswordCredential implementation?

There may also be large incompatibilities between implementations and the behavior may change in the future. The PasswordCredential constructor creates a new PasswordCredential object. In supporting browsers, an instance of this class may be passed the credential from the init object for global fetch.

Can I debug my application locally with managed identity credentials?

When you debug your application locally, on the other hand, managed identity or environment variables could not be available. We will talk about each of these types of credentials from bottom to the top in the following sections.


1 Answers

It seems to be connected with Password Auto Fill, which is available since iOS 12 (see section Password-Based Login inside https://developer.apple.com/documentation/authenticationservices). So if your app already has this functionality you could associate existing users with their new Apple ID accounts.

like image 160
AlKir Avatar answered Sep 28 '22 03:09

AlKir