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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to