Browse Source

fix: logout URL endpoint option for oauth2 module

pull/2429/head
NGPixel 4 years ago
parent
commit
f988c5f811
2 changed files with 12 additions and 0 deletions
  1. 7
      server/modules/authentication/oidc/authentication.js
  2. 5
      server/modules/authentication/oidc/definition.yml

7
server/modules/authentication/oidc/authentication.js

@ -35,5 +35,12 @@ module.exports = {
}
})
)
},
logout (conf) {
if (!conf.logoutURL) {
return '/'
} else {
return conf.logoutURL
}
}
}

5
server/modules/authentication/oidc/definition.yml

@ -49,3 +49,8 @@ props:
default: email
maxWidth: 500
order: 7
logoutURL:
type: String
title: Logout URL
hint: (optional) Logout URL on the OAuth2 provider where the user will be redirected to complete the logout process.
order: 8
Loading…
Cancel
Save