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<MSOFBAuthenticationOptions>
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

Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, 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.