All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.realm.kotlin.mongodb.AuthenticationProvider.kt Maven / Gradle / Ivy

Go to download

Sync Library code for Realm Kotlin. This artifact is not supposed to be consumed directly, but through 'io.realm.kotlin:gradle-plugin:1.5.2' instead.

The newest version!
/*
 * Copyright 2021 Realm Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.realm.kotlin.mongodb

import io.realm.kotlin.internal.interop.sync.AuthProvider

/**
 * This enum contains the list of authentication providers supported by App Services.
 *
 * The authentication provider must be enabled in the App Services Application to work.
 *
 * **See:** [Authentication Providers](https://docs.mongodb.com/realm/authentication/providers/)
 */
public enum class AuthenticationProvider(id: AuthProvider) {
    ANONYMOUS(AuthProvider.RLM_AUTH_PROVIDER_ANONYMOUS),
    API_KEY(AuthProvider.RLM_AUTH_PROVIDER_API_KEY),
    APPLE(AuthProvider.RLM_AUTH_PROVIDER_APPLE),
    CUSTOM_FUNCTION(AuthProvider.RLM_AUTH_PROVIDER_FUNCTION),
    EMAIL_PASSWORD(AuthProvider.RLM_AUTH_PROVIDER_EMAIL_PASSWORD),
    FACEBOOK(AuthProvider.RLM_AUTH_PROVIDER_FACEBOOK),
    GOOGLE(AuthProvider.RLM_AUTH_PROVIDER_GOOGLE),
    JWT(AuthProvider.RLM_AUTH_PROVIDER_CUSTOM);

    internal val id: AuthProvider = id
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy