-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instead of adding additional logins via php api - this can perfectly … #27607
Conversation
@@ -146,7 +146,12 @@ public function showLoginForm($user, $redirect_url, $remember_login) { | |||
} | |||
} | |||
|
|||
$parameters['alt_login'] = OC_App::getAlternativeLogIns(); | |||
$altLogins = OC_App::getAlternativeLogIns(); | |||
$altLogins2 = $this->config->getSystemValue('login.alternatives'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add to config.sample.php
👍 |
Failing tests:
|
config/config.sample.php
Outdated
* Allows to specify additional login buttons on the logon screen for e.g. SSO integration | ||
* 'login.alternatives' => [ | ||
* ['href' => '/sso-saml', 'name' => 'Shibboleth SSO', 'img' => '/img/shibboleth.png'], | ||
* ['href' => '/sso-adfs', 'name' => 'ADFS'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very bad example: ADFS and Shibboleth are both doing SAML. The use cases out there are showing buttons for different IdPs. The links then go directly to the idp. on oic side the same /login/saml
url is protected by mod_shib. It is configured to handle multiple idps with dedicated SessionInitiators, see https://wiki.shibboleth.net/confluence/display/CONCEPT/IdPDiscovery#IdPDiscovery-AttheApplication
<a href="https://www.testshib.org/Shibboleth.sso/ProtectNetwork?target=https%3A%2F%2Fwww.testshib.org%2Ftestshib-two%2Fauth-pages%2Fauth.jsp">
<img src="images/PN_sign-in.gif" alt="Login with ProtectNetwork" border="0">
</a>
<a href="https://www.testshib.org/Shibboleth.sso/OpenIdP.org?target=https%3A%2F%2Fwww.testshib.org%2Ftestshib-two%2Fauth-pages%2Fauth.jsp">
<img src="images/openidp.png" alt="Login with OpenIdP.org" border="0">
</a>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make it
* Allows to specify additional login buttons on the logon screen for e.g. SSO integration
* 'login.alternatives' => [
* ['href' => 'https://www.testshib.org/Shibboleth.sso/ProtectNetwork?target=https%3A%2F%2Fmy.owncloud.tld%2Flogin%2Fsso-saml%2F', 'name' => 'ProtectNetwork', 'img' => '/img/PN_sign-in.gif'],
* ['href' => 'https://www.testshib.org/Shibboleth.sso/OpenIdP.org?target=https%3A%2F%2Fmy.owncloud.tld%2Flogin%2Fsso-saml%2F', 'name' => 'OpenIdP.org'], 'img' => '/img/openidp.png'],
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to change this to something more reasonable @butonic
c11dc5a
to
65c833f
Compare
config/config.sample.php
Outdated
@@ -203,6 +203,15 @@ | |||
'token_auth_enforced' => false, | |||
|
|||
/** | |||
* Allows to specify additional login buttons on the logon screen for e.g. SSO integration | |||
* 'login.alternatives' => [ | |||
* 'login.alternatives' => [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
207 === 208
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:wtf?:
config/config.sample.php
Outdated
* 'login.alternatives' => [ | ||
* ['href' => 'https://www.testshib.org/Shibboleth.sso/ProtectNetwork?target=https%3A%2F%2Fmy.owncloud.tld%2Flogin%2Fsso-saml%2F', 'name' => 'ProtectNetwork', 'img' => '/img/PN_sign-in.gif'], | ||
* ['href' => 'https://www.testshib.org/Shibboleth.sso/OpenIdP.org?target=https%3A%2F%2Fmy.owncloud.tld%2Flogin%2Fsso-saml%2F', 'name' => 'OpenIdP.org'], 'img' => '/img/openidp.png'], | ||
* * ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* *
65c833f
to
2663456
Compare
config/config.sample.php
Outdated
* ] | ||
*/ | ||
'login.alternatives' => [], | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing newline for clarity
…be done via the config as well
2663456
to
513363b
Compare
maybe @felixheidecke can apply some css magic |
Here you go: 67486aa That's just CSS magic level 0 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
…be done via the config as well
Screenshots (if appropriate):
Types of changes
Checklist: