6.1.1.3.1.5.1.6. linotp.lib.tokens.radiustoken module

This file containes the RADIUS token class

class linotp.lib.tokens.radiustoken.RadiusTokenClass(aToken)[source]

Bases: linotp.lib.tokens.remotetoken.RemoteTokenClass

checkPin(pin, options=None)[source]

check the pin - either remote or localy - in case of remote, we return true, as the

the splitPinPass will put the passw then in the otpVal
Parameters:
  • pin – the pin which should be checked
  • options – the additional request parameters
check_pin_local()[source]

lookup if pin should be checked locally or on radius host

Returns:bool
do_request(anOtpVal, transactionid=None, user=None)[source]

Here we contact the Radius Server to verify the pass

classmethod getClassInfo(key=None, ret='all')[source]

getClassInfo - returns a subtree of the token definition

Parameters:
  • key (string) – subsection identifier
  • ret (user defined) – default return value, if nothing is found
Returns:

subsection if key exists or user defined

Return type:

s.o.

classmethod getClassPrefix()[source]
classmethod getClassType()[source]
splitPinPass(passw)[source]

Split the PIN and the OTP value. Only if it is locally checked and not remotely.

update(param)[source]