aws-amplify / aws-sdk-android

AWS SDK for Android. For more information, see our web site:
https://docs.amplify.aws
Other
1.03k stars 549 forks source link

Identity provider key for 'Sign in with Apple' #1339

Open maff91 opened 4 years ago

maff91 commented 4 years ago

State your question

Recently Amazon added 'Sign in with Apple' support to Cognito (Link) What is the identity provider key to use for federated login in this case?

/**
 * Convenience enum to specify the identity providers' login keys
 */
public enum IdentityProvider {
    AMAZON("www.amazon.com"),
    FACEBOOK("graph.facebook.com"),
    GOOGLE("accounts.google.com"),
    TWITTER("api.twitter.com"),
    DEVELOPER("cognito-identity.amazonaws.com"),
    ;

Which AWS Services are you utilizing?

Cognito

raphkim commented 4 years ago

Unfortunately, Android SDK does not yet support Sign-in with Apple feature. An alternative would be to implement a custom identity provider as described in here.

maff91 commented 4 years ago

@raphkim Thank you for answer. Is it even on roadmap? Any estimations when the integration is planned to be delivered?

mutablealligator commented 4 years ago

@maff91 The aws-android-sdk-cognitoidentityprovider SDK will be updated with support for SignInWithApple in the next upcoming release. However we don't have the support in AWSMobileClient at this moment through the enum you mentioned.

See PR for details. We will use this issue to address the feature request for supporting it in AWSMobileClient.

palpatim commented 4 years ago

Cognito now supports Sign in with Apple as an Authentication Provider for Identity Pools, as well as the previously-launched support for a federated provider for User Pools via HostedUI.

See https://github.com/aws-amplify/aws-sdk-ios/pull/2425 for the iOS PR that adds the provider names for each use case. We will also be updating the legacy and new Auth docs with appropriate instructions for iOS.