Always resetup oidc client record for apps
This commit is contained in:
@@ -1986,6 +1986,9 @@ async function setupOidc(app, options) {
|
||||
};
|
||||
|
||||
// openid client_id is appId for now
|
||||
// first remove old entry if any
|
||||
await safe(oidc.clients.del(app.id));
|
||||
|
||||
const [error] = await safe(oidc.clients.add(app.id, data));
|
||||
if (error && error.reason !== BoxError.ALREADY_EXISTS) throw error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user