refactor: API: Add AuthMethodOIDC class to hold static states
This commit is contained in:
8 files changed
+52
-7
No files matched your search
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Empty auth method definition
|
||||
*/
|
||||
export class AuthMethod {}
|
||||
|
||||
/**
|
||||
* Simple OIDC auth method definition to contain possible oidc states.
|
||||
* @property states {[string]} states
|
||||
*/
|
||||
export class AuthMethodOIDC extends AuthMethod {
|
||||
/**
|
||||
* Possible auth-method statuses
|
||||
*/
|
||||
static states = ['inactive', 'active-private', 'active-public'];
|
||||
}
|
||||
Reference in new issue
Block a user