Add wantsnameid
This commit is contained in:
parent
f734958836
commit
b9a157e36d
|
@ -54,7 +54,7 @@ try {
|
|||
// Since with Nextcloud 9 we don't have an unique entry point this is a little
|
||||
// bit hacky and won't necessarily detect all situations.
|
||||
$currentUrl = substr(explode('?',$request->getRequestUri(), 2)[0], strlen(\OC::$WEBROOT));
|
||||
if(($currentUrl === '/' || $currentUrl === '/index.php/' || $currentUrl === '/index.php') && !OC_User::isLoggedIn()) {
|
||||
if(($currentUrl === '/index.php') && !OC_User::isLoggedIn()) {
|
||||
$csrfToken = \OC::$server->getCsrfTokenManager()->getToken();
|
||||
header('Location: '.$urlGenerator->linkToRouteAbsolute('user_saml.SAML.login') .'?requesttoken='. urlencode($csrfToken->getEncryptedValue()));
|
||||
exit();
|
||||
|
|
|
@ -71,6 +71,7 @@ class SettingsController extends Controller {
|
|||
'wantMessagesSigned' => $this->l10n->t('Indicates a requirement for the <samlp:Response>, <samlp:LogoutRequest> and <samlp:LogoutResponse> elements received by this SP to be signed.'),
|
||||
'wantAssertionsSigned' => $this->l10n->t('Indicates a requirement for the <saml:Assertion> elements received by this SP to be signed. [Metadata of the SP will offer this info]'),
|
||||
'wantAssertionsEncrypted' => $this->l10n->t('Indicates a requirement for the <saml:Assertion> elements received by this SP to be encrypted.'),
|
||||
'wantNameId' => $this->l10n->t(' Indicates a requirement for the NameID element on the SAMLResponse received by this SP to be present.'),
|
||||
'wantNameIdEncrypted' => $this->l10n->t('Indicates a requirement for the NameID received by this SP to be encrypted.'),
|
||||
'wantXMLValidation' => $this->l10n->t('Indicates if the SP will validate all received XMLs.'),
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue