[RADIATOR] "AuthBy URL" with linotp check
Karl Gaissmaier
karl.gaissmaier at uni-ulm.de
Sat Nov 16 22:05:43 UTC 2024
Hi Klara,
please try:
AuthOKKeyword "status": true, "value": true
BadPasswordKeyword "status": true, "value": false
Greetings
Charly
Am 16.11.24 um 16:16 schrieb Klara Mall via radiator:
> Hi,
>
> we have been using "AuthBy URL" successfully with a LinOTP url validate/
> simplecheck for years.
>
> <AuthBy URL>
> Debug 1
> AuthUrl https://my.linotp.url/validate/simplecheck
> Timeout 5
> UserParam user
> PasswordParam pass
> UrlMethod GET
> BadPasswordKeyword :-\(
> BadUserKeyword :-/
> AuthOKKeyword :-\)
> PasswordEncryption Clear
> </AuthBy>
>
> Now we have to switch from simplecheck (which is deprecated) to check.
> Check will not return the smileys as simplecheck does but json. Example:
> {
> "version": "LinOTP 2.10.4",
> "jsonrpc": "2.0802",
> "result": {
> "status": true,
> "value": false
> },
> "id": 0
> }
>
> For example piping this through "jq .result.value" would give me false
> or true which I could check in BadPasswordKeyword and AuthOKKeyword.
>
> But in the radiator documentation I see no way to pipe the output to a
> command. Do you have any idea how I can do this?
>
> Thanks in advance and best regards
> Klara
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5057 bytes
Desc: Kryptografische S/MIME-Signatur
URL: <https://lists.open.com.au/pipermail/radiator/attachments/20241116/c1f71ee8/attachment.p7s>
More information about the radiator
mailing list