@mvx/identity
Version:
identity is oidc for mvc, type-mvc is base on koa. Decorator, Ioc, AOP mvc framework on server.
30 lines (29 loc) • 810 B
TypeScript
import { Strategy } from './Strategy';
import { Context } from 'koa';
import { ValidationResult } from './results';
/**
* session.
*
* @export
* @class SessionStrategy
* @extends {Strategy}
*/
export declare class SessionStrategy extends Strategy {
/**
* `SessionStrategy` constructor.
*
*/
constructor();
/**
* Authenticate request based on the current session state.
*
* The session authentication strategy uses the session to restore any login
* state across requests. If a login session has been established, `req.user`
* will be populated with the current user.
*
* This strategy is registered automatically by Passport.
*
*/
authenticate(ctx: Context, options?: {}): Promise<ValidationResult>;
static ρAnn(): any;
}