|
Callback interface for server authentication. You need to supply one of these for Server::setAuthenticator. If an added callback ever throws an exception or goes away, it will be automatically removed. Please note that unlike ServerCallback and ServerContextCallback, these methods are called synchronously. If the response lags, the entire murmur server will lag. Also note that, as the method calls are synchronous, making a call to Server or Meta will deadlock the server.
Called to authenticate a user. If you do not know the username in question, always return -2 from this method to fall through to normal database authentication. Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving the username and id so it cannot be used for normal database authentication. The data in the certificate (name, email addresses etc), as well as the list of signing certificates, should only be trusted if certstrong is true.
UserID of authenticated user, -1 for authentication failures and -2 for unknown user (fallthrough).
Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you want murmur to take care of this information itself, simply return false to fall through.
true if information is present, false to fall through.
Map a name to a user id.
User id or -2 for unknown name.
Map a user id to a username.
Name of user or empty string for unknown id.
Map a user to a custom Texture.
User texture or an empty texture for unknwon users or users without textures.
|