[RADIATOR] "AuthBy URL" with linotp check

Karl Gaissmaier karl.gaissmaier at uni-ulm.de
Mon Nov 18 13:02:00 UTC 2024


Hi Klara,

Am 18.11.24 um 13:44 schrieb Klara Mall via radiator:
...
> I found "Authby External" where I can use a command to do the https 
> query and return the suitable exit code. This now seems to work very 
> good with a python script which gets username and password from stdin, 
> querys the linotp url and returns the appropriate exit code.

be aware of:

"<AuthBy EXTERNAL> will wait for the external process to complete before 
handling more requests, so you should use this carefully, and avoid 
using long-running commands. If you cannot avoid long-running EXTERNAL 
commands, you can use the Fork parameter to force <AuthBy EXTERNAL> to 
fork before calling the external command. This may improve performance."

If you will not rely on the textual representation of the response of 
<AuthBy URL> you could also try <AuthBy REST>:

"The response must decode to a Perl hash data structure which is 
automatically done for JSON object format responses. If the response is, 
for example, a JSON array, you can update the decoded response to a Perl 
hash with MapResponseHook"

Greetings
    Charly
-- 
Karl Gaissmaier
Universität Ulm
kiz, Kommunikations und Informationszentrum
89069 Ulm
Tel.: 49(0)731/50-22499


More information about the radiator mailing list