Module: WSS4R::Tokenresolver
- Defined in:
- lib/wss4r/tokenresolver/resolver.rb,
lib/wss4r/tokenresolver/databaseresolver.rb,
lib/wss4r/tokenresolver/certificateresolver.rb,
lib/wss4r/tokenresolver/authenticateuserresolver.rb
Defined Under Namespace
Classes: AuthenticateUserResolver, CertificateDirectoryResolver, DatabaseResolver, Resolver
Instance Method Summary
collapse
Instance Method Details
#authenticate_token(usernametoken) ⇒ Object
20
21
22
|
# File 'lib/wss4r/tokenresolver/authenticateuserresolver.rb', line 20
def authenticate_token(usernametoken)
usernametoken.username().reverse()
end
|
#authenticate_token_plain(username, password) ⇒ Object
24
25
26
27
28
|
# File 'lib/wss4r/tokenresolver/authenticateuserresolver.rb', line 24
def authenticate_token_plain(username, password)
@username = username
@password = password
return (username.reverse() == password)
end
|