Object type: ListenerBasicAuthProvider
Represents the listener Basic Auth provider, which could be used to authenticate credentials.
The auth:ListenerBasicAuthProvider
acts as the interface for all the Basic Auth listener authentication providers.
Any type of implementation such as file store, LDAP user store, in memory user store, JDBC user store etc. should be
object-wise similar.
Methods
authenticate | Authenticates the user based on the user credentials (i.e., the username/password). |
authenticate
function authenticate(string credential) returns UserDetails | Error
Isolated Function
Authenticates the user based on the user credentials (i.e., the username/password).
Parameters
- credential string
The string
credential value
Return Type
(UserDetails | Error)auth:UserDetails
if the authentication is successful or else an auth:Error
if an error occurred