Bugzilla – Attachment 92681 Details for
Bug 18506
SSO - Shibboleth Only Mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18506: (follow-up) Make this play nicely with opacPublic
Bug-18506-follow-up-Make-this-play-nicely-with-opa.patch (text/plain), 3.57 KB, created by
Matthias Meusburger
on 2019-09-10 09:29:37 UTC
(
hide
)
Description:
Bug 18506: (follow-up) Make this play nicely with opacPublic
Filename:
MIME Type:
Creator:
Matthias Meusburger
Created:
2019-09-10 09:29:37 UTC
Size:
3.57 KB
patch
obsolete
>From ab592a36aff82722766cfddff8e7e4e7ee72c0d7 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 7 May 2019 10:15:56 +0100 >Subject: [PATCH] Bug 18506: (follow-up) Make this play nicely with opacPublic > >Signed-off-by: Matthias Meusburger <matthias.meusburger@biblibre.com> >--- > C4/Auth.pm | 17 +++++++++++++++++ > koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 4 ++++ > 2 files changed, 21 insertions(+) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 0c6d1fe..cc7f312 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -1055,6 +1055,23 @@ sub checkauth { > } > } > >+ # If shib configured and shibOnly enabled, we should ignore anything other than a shibboleth type login. >+ if ( >+ $shib >+ && !$shibSuccess >+ && ( >+ ( >+ ( $type eq 'opac' ) >+ && C4::Context->preference('opacShibOnly') >+ ) >+ || ( ( $type ne 'opac' ) >+ && C4::Context->preference('staffShibOnly') ) >+ ) >+ ) >+ { >+ $return = 0; >+ } >+ > # $return: 1 = valid user > if ($return) { > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >index 184a605..8acf076 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >@@ -71,6 +71,8 @@ > [% IF Koha.Preference('casAuthentication') %] > [%# CAS authentication is too complicated for modal window %] > <li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive" role="menuitem">Log in to create your own lists</a></li> >+ [% ELSIF shibbolethAuthentication && Koha.Preference('opacShibOnly') %] >+ <li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive" role="menuitem">Log in to create your own lists</a></li> > [% ELSE %] > <li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive loginModal-trigger" role="menuitem">Log in to create your own lists</a></li> > [% END %] >@@ -95,6 +97,8 @@ > <li><a class="login-link" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li> > [% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %] > <li><a class="login-link" href="/cgi-bin/koha/svc/auth/googleopenidconnect" role="button" data-toggle="modal">Log in to your account</a></li> >+ [% ELSIF shibbolethAuthentication && Koha.Preference('opacShibOnly') %] >+ <li><a class="login-link" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a></li> > [% ELSE %] > <li><a href="/cgi-bin/koha/opac-user.pl" class="login-link loginModal-trigger" role="button" data-toggle="modal">Log in to your account</a></li> > [% END %] >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18506
:
62810
|
79050
|
79522
|
79524
|
79540
|
89423
|
89424
|
91011
|
91012
|
91013
|
92665
|
92680
|
92681
|
92682
|
92683
|
116250
|
116251
|
116253
|
116280
|
116281
|
116282
|
116290
|
116536
|
116537
|
116538
|
116540