fix: 🐛 add state to oidc form (#1491)
This commit is contained in:
1 parent
7120a5c54e
commit
2b3f9b3cf0
1 file changed
+7
-1
@@ -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 } }) => {
|
||||
|
||||
Reference in new issue
Block a user