2020-06-17 18:00:38 -04:00
|
|
|
import GeneratedAuthMethodModel from '../generated/models/auth-method';
|
|
|
|
|
|
2021-03-16 15:41:13 -04:00
|
|
|
export default class AuthMethodModel extends GeneratedAuthMethodModel {
|
|
|
|
|
// =attributes
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @type {boolean}
|
|
|
|
|
*/
|
|
|
|
|
get isPassword() {
|
|
|
|
|
return this.type === 'password';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @type {boolean}
|
|
|
|
|
*/
|
|
|
|
|
get isOIDC() {
|
|
|
|
|
return this.type === 'oidc';
|
|
|
|
|
}
|
|
|
|
|
}
|