mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-04 10:03:42 +02:00
set base url to 'http://domain/nextcloud/index.php/apps/user_saml/saml'
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
425173365e
commit
6d02ab0717
|
@ -28,6 +28,11 @@ return [
|
|||
'url' => '/saml/login',
|
||||
'verb' => 'GET',
|
||||
],
|
||||
[
|
||||
'name' => 'SAML#base',
|
||||
'url' => '/saml',
|
||||
'verb' => 'GET',
|
||||
],
|
||||
[
|
||||
'name' => 'SAML#getMetadata',
|
||||
'url' => '/saml/metadata',
|
||||
|
|
|
@ -101,7 +101,7 @@ class SAMLSettings {
|
|||
$settings = [
|
||||
'strict' => true,
|
||||
'debug' => $this->config->getSystemValue('debug', false),
|
||||
'baseurl' => $this->request->getServerProtocol() . '://' . $this->request->getServerHost(),
|
||||
'baseurl' => $this->urlGenerator->linkToRouteAbsolute('user_saml.SAML.base'),
|
||||
'security' => [
|
||||
'nameIdEncrypted' => ($this->config->getAppValue('user_saml', $prefix . 'security-nameIdEncrypted', '0') === '1') ? true : false,
|
||||
'authnRequestsSigned' => ($this->config->getAppValue('user_saml', $prefix . 'security-authnRequestsSigned', '0') === '1') ? true : false,
|
||||
|
|
|
@ -34,6 +34,11 @@ class Test extends TestCase {
|
|||
'url' => '/saml/login',
|
||||
'verb' => 'GET',
|
||||
],
|
||||
[
|
||||
'name' => 'SAML#base',
|
||||
'url' => '/saml',
|
||||
'verb' => 'GET',
|
||||
],
|
||||
[
|
||||
'name' => 'SAML#getMetadata',
|
||||
'url' => '/saml/metadata',
|
||||
|
|
Loading…
Reference in a new issue