public OAuthBearerAuthenticationTokenProvider()
 {
     OnReceive         = OAuthAuthenticationTokenProviderOnReceive;
     _authSessionStore = new SqlAuthSessionStore(IdentityHelper.TicketDataFormat);
     _cookieManager    = new SystemWebChunkingCookieManager();
     _identityHelper   = new IdentityHelper(_authSessionStore, null);
 }
示例#2
0
 public CasSingleSignOutMiddleware(
     OwinMiddleware next,
     IAppBuilder app,
     IAuthenticationSessionStore store
     ) : base(next)
 {
     this.store = store;
     logger     = app.CreateLogger <CasSingleSignOutMiddleware>();
 }
 public static IAppBuilder UseCasSingleSignOut(this IAppBuilder app, IAuthenticationSessionStore store)
 {
     if (app == null)
     {
         throw new ArgumentNullException(nameof(app));
     }
     if (store == null)
     {
         throw new ArgumentNullException(nameof(store));
     }
     return(app.Use <CasSingleSignOutMiddleware>(app, store));
 }
 internal OAuthBearerAuthenticationTokenProvider(IAuthenticationSessionStore authSessionStore, ICookieManager cookieManager)
 {
     OnReceive         = OAuthAuthenticationTokenProviderOnReceive;
     _authSessionStore = authSessionStore;
     _cookieManager    = cookieManager;
 }
示例#5
0
 public IdentityHelper(IAuthenticationSessionStore store, HttpRequestBase requestBase)
 {
     _store       = store;
     _requestBase = requestBase;
 }