linotp.tokens.radiustoken module¶
This file containes the RADIUS token class
- class linotp.tokens.radiustoken.RadiusTokenClass(aToken)¶
Bases:
RemoteTokenClass
- checkPin(pin, options=None)¶
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()¶
lookup if pin should be checked locally or on radius host
- Returns
bool
- do_request(anOtpVal, transactionid=None, user=None)¶
Here we contact the Radius Server to verify the pass
- classmethod getClassInfo(key=None, ret='all')¶
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()¶
return the token type prefix
- classmethod getClassType()¶
return the class type identifier
- splitPinPass(passw)¶
Split the PIN and the OTP value. Only if it is locally checked and not remotely.
- update(param)¶
second phase of the init process - updates parameters
- Parameters
param – the request parameters
- Returns
nothing -