refactor: API: Add AuthMethodOIDC class to hold static states

This commit is contained in:
Susmitha Girumala committed 2021-06-02 22:22:02 -04:00
1 parent 269c56bf83
commit a7a6bdedf9
8 files changed
+52 -7

No files matched your search

+15
View File
@@ -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'];
}
-2
View File
@@ -28,8 +28,6 @@ export const options = {
};
export default class AuthMethodModel extends GeneratedAuthMethodModel {
STATES_ENUM = options.oidc.state;
// =error attributes
// These attributes exist solely to capture errors on nested fields.
// See the application adapter's error normalization method for