MSOFBAuthenticationHandler Class


OWIN middleware that implements 'MS-OFBA' authentication protocol.

Provides fallback to MS-OFBA authentication if HTTP response code 302 (redirect to log-in page) has been issued after (failed) attempt to authenticate using other OWIN authentication middleware (i.e. cookie) that isn't supported by host (i.e. Microsoft Office application).

public class MSOFBAuthenticationHandler : AuthenticationHandler
System.Object → MSOFBAuthenticationHandler


MSOFBAuthenticationHandler(MSOFBAuthenticationOptions) Initializes a new instance of the MSOFBAuthenticationHandler class.


ApplyResponseChallengeAsync() Deal with 401 challenge concerns.
AuthenticateCoreAsync() The core authentication logic which must be provided by the handler. Will be invoked at most once per request. Do not call directly, call the wrapping Authenticate method instead.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.