diff --git a/addons/api/mirage/config.js b/addons/api/mirage/config.js index d8b1cd2b9..ed5b77368 100644 --- a/addons/api/mirage/config.js +++ b/addons/api/mirage/config.js @@ -73,7 +73,13 @@ export default function () { return resultSet.filter(makeBooleanFilter(filter)); } ); - this.post('/auth-methods'); + this.post('/auth-methods', function ({ authMethods }) { + const attrs = this.normalizedRequestAttrs(); + if (attrs.type === 'oidc') { + attrs.attributes.state = 'active-public'; + } + return authMethods.create(attrs); + }); this.get('/auth-methods/:id'); this.patch('/auth-methods/:id'); this.del('/auth-methods/:id', ({ authMethods }, { params: { id } }) => {