AuthenticationType Enumeración

Definición

Especifica el método de autenticación de administración de derechos.

public enum class AuthenticationType
public enum AuthenticationType
type AuthenticationType = 
Public Enum AuthenticationType
Herencia
AuthenticationType

Campos

Internal 3

Autenticación implícita para cualquier usuario solicitante.

Passport 1

Windows autenticación de Live ID.

Windows 0

autenticación de Windows en un entorno de dominio corporativo.

WindowsPassport 2

Autenticación autenticación de Windows o Windows Live ID.

Ejemplos

En el ejemplo siguiente también se muestra el uso de la AuthenticationType enumeración .

string applicationManifest = "<manifest></manifest>";
if (File.Exists("rpc.xml"))
{
    StreamReader manifestReader = File.OpenText("rpc.xml");
    applicationManifest = manifestReader.ReadToEnd();
}

if (_secureEnv == null)
{
    if (SecureEnvironment.IsUserActivated(new ContentUser(
                _currentUserId, AuthenticationType.Windows)))
    {
        _secureEnv = SecureEnvironment.Create(
            applicationManifest, new ContentUser(
                _currentUserId, AuthenticationType.Windows));
    }
    else
    {
        _secureEnv = SecureEnvironment.Create(
            applicationManifest,
            AuthenticationType.Windows,
            UserActivationMode.Permanent);
    }
}
Dim applicationManifest As String = "<manifest></manifest>"
If File.Exists("rpc.xml") Then
    Dim manifestReader As StreamReader = File.OpenText("rpc.xml")
    applicationManifest = manifestReader.ReadToEnd()
End If

If _secureEnv Is Nothing Then
    If SecureEnvironment.IsUserActivated(New ContentUser(_currentUserId, AuthenticationType.Windows)) Then
        _secureEnv = SecureEnvironment.Create(applicationManifest, New ContentUser(_currentUserId, AuthenticationType.Windows))
    Else
        _secureEnv = SecureEnvironment.Create(applicationManifest, AuthenticationType.Windows, UserActivationMode.Permanent)
    End If
End If

Comentarios

AuthenticationType especifica cómo se autenticarán los usuarios que acceden a los derechos de acceso al contenido administrado.

Internal también proporciona autenticación para el propietario y el autor de un documento o plantilla protegidos.

Se aplica a

Consulte también