proxyauth: fix install
This commit is contained in:
+2
-1
@@ -1828,6 +1828,7 @@ async function setupProxyAuth(app, options) {
|
||||
|
||||
// ensure we keep the secret
|
||||
const data = {
|
||||
id: app.id,
|
||||
secret: result ? result.secret : hat(4 * 128),
|
||||
loginRedirectUri: `https://${app.fqdn}/callback`,
|
||||
logoutRedirectUri: '',
|
||||
@@ -1837,7 +1838,7 @@ async function setupProxyAuth(app, options) {
|
||||
};
|
||||
|
||||
if (result) await oidcClients.update(app.id, data);
|
||||
else await oidcClients.add(app.id, data);
|
||||
else await oidcClients.add(data);
|
||||
}
|
||||
|
||||
async function teardownProxyAuth(app, options) {
|
||||
|
||||
Reference in New Issue
Block a user