1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/src/lib/types/authentication-required.ts
Ivar Conradi Østhus 4fb1bcb524
feat: Disable password based login (#1046)
This commit will introduce a new setting used to disbaled
simple password based authention.

The setting itself is an enterprise setting.
2021-10-29 10:25:42 +02:00

40 lines
759 B
TypeScript

interface IBaseOptions {
type: string;
path: string;
message: string;
defaultHidden?: boolean;
}
interface IOptions extends IBaseOptions {
options?: IBaseOptions[];
}
class AuthenticationRequired {
private type: string;
private path: string;
private message: string;
private defaultHidden: boolean;
private options?: IBaseOptions[];
constructor({
type,
path,
message,
options,
defaultHidden = false,
}: IOptions) {
this.type = type;
this.path = path;
this.message = message;
this.options = options;
this.defaultHidden = defaultHidden;
}
}
export default AuthenticationRequired;
module.exports = AuthenticationRequired;