amplify-swift/Amplify/Categories/Auth/Models/AuthProvider.swift

40 lines
1.2 KiB
Swift

//
// Copyright Amazon.com Inc. or its affiliates.
// All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
import Foundation
/// Supported auth providers that help in federated sign in
///
/// You can use these auth providers to directly sign in to one of the user's social provider and then
/// federate them to the auth plugin's underlying service. For example in the api
/// `Amplify.Auth.signInWithWebUI(for:presentationAnchor:)` you can pass in a provider
/// in the `for:` parameter which will directly show a authentication view for the passed in auth provider.
public enum AuthProvider {
/// Auth provider that uses Login with Amazon
case amazon
/// Auth provider that uses Sign in with Apple
case apple
/// Auth provider that uses Facebook Login
case facebook
/// Auth provider that uses Google Sign-In
case google
/// Auth provider that uses OpenID Connect Protocol
case oidc
/// Auth provider that uses Security Assertion Markup Language standard
case saml
/// Custom auth provider that is not in this list, the associated string value will be the identifier used by
/// the plugin service.
case custom(String)
}