AuthenticationOptions.AuthenticationMode Property

 

If Active the authentication middleware alter the request user coming in and alter 401 Unauthorized responses going out. If Passive the authentication middleware will only provide identity and alter responses when explicitly indicated by the AuthenticationType.

Namespace:   Microsoft.Owin.Security
Assembly:  Microsoft.Owin.Security (in Microsoft.Owin.Security.dll)

Syntax

public AuthenticationMode AuthenticationMode { get; set; }
public:
property AuthenticationMode AuthenticationMode {
    AuthenticationMode get();
    void set(AuthenticationMode value);
}
member AuthenticationMode : AuthenticationMode with get, set
Public Property AuthenticationMode As AuthenticationMode

Property Value

Type: Microsoft.Owin.Security.AuthenticationMode

Returns AuthenticationMode.

See Also

AuthenticationOptions Class
Microsoft.Owin.Security Namespace

Return to top