mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Add GRIST_ENABLE_SCIM env variable
This commit is contained in:
parent
4ba322d1cb
commit
7c8c2f2057
@ -890,7 +890,12 @@ export class FlexServer implements GristServer {
|
||||
|
||||
public addScimApi() {
|
||||
if (this._check('scim', 'api', 'homedb', 'json', 'api-mw')) { return; }
|
||||
this.app.use('/api/scim', buildScimRouter(this._dbManager, this._installAdmin));
|
||||
const scimRouter = isAffirmative(process.env.GRIST_ENABLE_SCIM) ?
|
||||
buildScimRouter(this._dbManager, this._installAdmin) :
|
||||
() => {
|
||||
throw new ApiError('SCIM API is not enabled', 501);
|
||||
};
|
||||
this.app.use('/api/scim', scimRouter);
|
||||
}
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user