feat(xo-server-auth-saml): allow customizing callback URL (#6278)

This will allow you to enter the full path of the callback URL. As stated in issue #6108 the SAML plugin wont work with Azure AD as the callback URL needs to be HTTPS. This was solved by @jens-rabe
This commit is contained in:
Per-Ole 2022-08-03 10:12:32 +02:00 committed by GitHub
parent b63086bf09
commit c7d3230eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -29,5 +29,6 @@
- @xen-orchestra/mixins patch
- xo-web patch
- xo-server-auth-saml minor
<!--packages-end-->

View File

@ -11,6 +11,11 @@ export const configurationSchema = {
'Important: When registering your instance to your identity provider, you must configure its callback URL to `https://<xo.company.net>/signin/saml/callback`!',
type: 'object',
properties: {
callbackUrl: {
title: 'callbackUrl',
description: "the callback URL",
type: 'string',
},
cert: {
title: 'Certificate',
description: "Copy/paste the identity provider's certificate",
@ -60,10 +65,9 @@ class AuthSamlXoPlugin {
this._conf = {
...this._strategyOptions,
...DEFAULTS,
...conf,
// must match the callback URL
path: '/signin/saml/callback',
...conf,
}
if (loaded) {