Add missing return in saml plugin

This commit is contained in:
Chocobozzz 2020-12-29 14:54:53 +01:00
parent 016e3eb1a8
commit e16d5506b6
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View File

@ -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) {