[Koha-bugs] [Bug 27312] New: Add a syspref to redirect patron after self registration

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 29 13:31:26 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27312

            Bug ID: 27312
           Summary: Add a syspref to redirect patron after self
                    registration
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Authentication
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: magnus at libriotech.no
        QA Contact: testopia at bugs.koha-community.org
                CC: dpavlin at rot13.org

We need to implement a workflow that looks like this:

1. A new patron self registers in the OPAC, with a temporary category code,
including providing a social security number
2. After the data is saved, the patron is redirected to a Script (similar to
opac/svc/auth/googleopenidconnect, but provided by a plugin)
3. The script redirects the patron again, to an OpenID provider, where (s)he
has to login in a secure manner
4. After logging in, the user is redirected back to the Script, and the Script
can tell what the correct social security number of the patron is
5. If the social security number provided by the OpenID provider matches one of
a temporary patron, that patron is updated to a permanent patron

We need to be able to set the URL that the user should be redirected to in step
2 above. This could be done in a couple of ways:

1. As a syspref

This would be fairly simple. The syspref holds the URL and if it is set, the
user is redirected at the right place in opac/opac-memberentry.pl

2. As a plugin hook

The first plugin hook of the right type called would provide the URL and, if
there is a URL, the patron is redirected. 

One advantage of the plugin hook approach is that the information about where
to redirect the user would be contained in the same plugin that provides the
Script. But a plugin hook does seem like a bit of overkill for providing a
single, static URL. And I guess the plugin could set the syspref, if it wanted
to, so I will submit a patch that uses a syspref.

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


More information about the Koha-bugs mailing list