From e16d5506b6ea226de77569429812f9c32780ff6b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 29 Dec 2020 14:54:53 +0100 Subject: [PATCH] Add missing return in saml plugin --- peertube-plugin-auth-saml2/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/peertube-plugin-auth-saml2/main.js b/peertube-plugin-auth-saml2/main.js index 277a9b7..067e138 100644 --- a/peertube-plugin-auth-saml2/main.js +++ b/peertube-plugin-auth-saml2/main.js @@ -238,10 +238,12 @@ async function loadSettingsAndCreateProviders ( "#text": options.name_id } - store.serviceProvider.create_logout_request_url(store.identityProvider, options, (err, logoutUrl, requestId) => { + store.serviceProvider.create_logout_request_url(store.identityProvider, options, (err, logoutUrl) => { if (err) { reject('Cannot SAML 2 logout.', { err }) + return } + resolve(logoutUrl) }) } catch (err) {