[Koha-bugs] [Bug 10988] Allow login via Google OAuth2

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 27 03:28:44 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10988

Nicholas van Oudtshoorn <vanoudt at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #25343|0                           |1
        is obsolete|                            |

--- Comment #8 from Nicholas van Oudtshoorn <vanoudt at gmail.com> ---
Created attachment 25684
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=25684&action=edit
Bug 10988 [ENH] Allow login via Google OAuth2

Adds googleoauth2 login to koha. Adds applicable system preferences Modifies
templates to support oauth2 login failures changes the login links to use
googleoauth2 when oauth2 is enabled.
This latest patch adds the new system preferences using updatedatabase.pl

Test Plan:
1) Apply this patch
2) Update the database (this is the bit I'm not sure about - I've added the SQL
into the atomicupdates directory - is this right?)
3) Create a web app in the google cloud console:
     - Go to https://cloud.google.com/console
     - Create a project, and give it some details
     - Open the Project by clicking on it
     - Under APIs & auth menu, open "Registered Apps" and click "Register App"
     - Give it a name and make sure you select "Web app", click ok
     - Under OAuth 2.0 Client ID,
         - under web origin, type <your_opac_address>
         - in the redirect uri enter
<your_opac_address>/cgi-bin/koha/svc/googleoauth2
         - click Generate
4) Set the GoogleOAuth2ClientID and GoogleOAuth2ClientSecret according to the
values generated above
5) Test that clicking login intiates an oauth2 login
6) Try logging in with an email that is not registered to a library user. It
should fail and offer either to retry or to login manually.
7) Try logging in with an email that is registered to a library user. You
should be logged in.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list