19 lines
500 B
JavaScript
19 lines
500 B
JavaScript
import { Factory } from 'ember-cli-mirage';
|
|
|
|
export default Factory.extend({
|
|
base_url: 'okta.com',
|
|
mount_accessor: '',
|
|
name: '', // returned but cannot be set at this time
|
|
namespace_id: 'root',
|
|
org_name: 'dev-foobar',
|
|
type: 'okta',
|
|
username_template: '', // returned but cannot be set at this time
|
|
|
|
afterCreate(record) {
|
|
if (record.name) {
|
|
console.warn('Endpoint ignored these unrecognized parameters: [name]'); // eslint-disable-line
|
|
record.name = '';
|
|
}
|
|
},
|
|
});
|