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
'Declaration
Public Property AuthenticationMode As AuthenticationMode
Get
Set
'Usage
Dim instance As AuthenticationOptions
Dim value As AuthenticationMode
value = instance.AuthenticationMode
instance.AuthenticationMode = value
public AuthenticationMode AuthenticationMode { get; set; }
public:
property AuthenticationMode AuthenticationMode {
AuthenticationMode get ();
void set (AuthenticationMode value);
}
member AuthenticationMode : AuthenticationMode with get, set
function get AuthenticationMode () : AuthenticationMode
function set AuthenticationMode (value : AuthenticationMode)
Property Value
Type: Microsoft.Owin.Security.AuthenticationMode
The authentication mode.