wip: OIDC authenticator

This commit is contained in:
Randall Morey committed 2021-01-15 11:10:33 -05:00
1 parent 31a9d4c1a3
commit 92640b96aa
9 files changed
+92 -1

No files matched your search

@@ -1,9 +1,17 @@
import factory from '../generated/factories/auth-method';
import { trait } from 'ember-cli-mirage';
const types = [
'password',
'oidc'
];
export default factory.extend({
id: (i) => `auth-method-id-${i}`,
// Cycle through available types
type: (i) => types[i % types.length],
/**
* Adds accounts (with associated users) to auth method.
*/
+1 -1
View File
@@ -14,7 +14,7 @@ export default function(server) {
}, 'withChildren')[0];
// Auth
server.createList('auth-method', 1, { scope: globalScope }, 'withAccountsAndUsers');
server.createList('auth-method', 2, { scope: globalScope }, 'withAccountsAndUsers');
server.createList('auth-method', 3, { scope: orgScope }, 'withAccountsAndUsers');
// Groups and Users