Do not throw if oidc addon client already exists
This commit is contained in:
+2
-1
@@ -1948,7 +1948,8 @@ async function setupOidc(app, options) {
|
||||
};
|
||||
|
||||
// openid client_id is appId for now
|
||||
await oidc.clients.add(app.id, data);
|
||||
const [error] = await safe(oidc.clients.add(app.id, data));
|
||||
if (error && error.reason !== BoxError.ALREADY_EXISTS) throw error;
|
||||
}
|
||||
|
||||
async function teardownOidc(app, options) {
|
||||
|
||||
Reference in New Issue
Block a user