mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
4fb1bcb524
This commit will introduce a new setting used to disbaled simple password based authention. The setting itself is an enterprise setting.
40 lines
759 B
TypeScript
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;
|