2017-10-17 21:24:02 +00:00
|
|
|
import U2f = require("u2f");
|
2018-10-22 21:21:17 +00:00
|
|
|
import { Level } from "../src/lib/authentication/Level";
|
2017-10-17 21:24:02 +00:00
|
|
|
|
|
|
|
export interface AuthenticationSession {
|
|
|
|
userid: string;
|
2018-10-22 21:21:17 +00:00
|
|
|
authentication_level: Level;
|
2018-10-21 14:11:31 +00:00
|
|
|
keep_me_logged_in: boolean;
|
2017-10-17 21:24:02 +00:00
|
|
|
last_activity_datetime: number;
|
|
|
|
identity_check?: {
|
|
|
|
challenge: string;
|
|
|
|
userid: string;
|
|
|
|
};
|
|
|
|
register_request?: U2f.Request;
|
|
|
|
sign_request?: U2f.Request;
|
|
|
|
email: string;
|
|
|
|
groups: string[];
|
|
|
|
redirect?: string;
|
|
|
|
}
|