public BaseSharePointAuthenticationContext(HttpContext context, SharePointAuthenticationOptions options) : base(context) { if (options == null) { throw new ArgumentNullException(nameof(options)); } Options = options; }
public BaseSharePointAuthenticationContext(HttpContext context, SharePointAuthenticationOptions options) : base(context) { if (options == null) { throw new ArgumentNullException(nameof(options)); } Options = options; }
private void ConfigureAuth(IAppBuilder app, System.Web.Http.Dependencies.IDependencyResolver dependencyResolver) { var sharePointAuthenticationOptions = new SharePointAuthenticationOptions() { DependencyResolver = dependencyResolver, TokenCacheDurationInMinutes = ConfigurationManager.AppSettings["app:TokenCacheDurationInMinutes"] == null ? 10 : Convert.ToInt32(ConfigurationManager.AppSettings["app:TokenCacheDurationInMinutes"]), AllowNonBrowserRequests = false, InjectCredentialsForHighTrust = true, ValidateIssuer = true, ValidateAudience = true, ValidateIssuerSigningKeys = true, ClockSkew = TimeSpan.Zero, }; sharePointAuthenticationOptions.OnAuthenticationHandlerPostAuthenticate += OnAuthenticationHandlerPostAuthenticate; app.Use <SharePointAuthenticationMiddleware>(sharePointAuthenticationOptions); }
public AuthenticationFailedContext(HttpContext context, AuthenticationScheme scheme, SharePointAuthenticationOptions options, AuthenticationProperties properties) : base(context, scheme, options, properties) { }
public AuthenticationSucceededContext(HttpContext context, SharePointAuthenticationOptions options) : base(context, options) { }
public AuthenticationFailedContext(HttpContext context, SharePointAuthenticationOptions options) : base(context, options) { }