Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

WebAdmin.IWebAdminAuth

WebAdmin authentication interface. An implementation of this interface is used to create IWebAdminUser instances. Copyright 2008 Epic Games, Inc. All Rights Reserved @author Michiel 'elmuerte' Hendriks

WebAdmin.IWebAdminAuth

Functions Summary
functionIWebAdminUser authenticate (string username, string password, out string errorMsg)
function cleanup ()
function init (WorldInfo worldinfo)
functionbool logout (IWebAdminUser user)
functionbool validate (string username, string password, out string errorMsg)
functionbool validateUser (IWebAdminUser user, out string errorMsg)


Functions Detail

authenticate Source code

function IWebAdminUser authenticate ( string username, string password, out string errorMsg )
Try to log in a user with the provided credentials
@param username
@param password
@param errorMsg can be set to a friendly error message or reason why authentication failed
@return none when authentication failed, otherwise the created user instance

cleanup Source code

function cleanup ( )
Cleanup (prepare for being destroyed)

init Source code

function init ( WorldInfo worldinfo )
Initialize the authentication handler

logout Source code

function bool logout ( IWebAdminUser user )
Logout the given user. A user does not explicitly log out.
@return true when the user was succesfully logged out.

validate Source code

function bool validate ( string username, string password, out string errorMsg )
Like authenticate(...) except that the user is not explicitly logged in (or created). This will be used to re-validate an already existing user. For example in the case a time out was triggered and the user needs to re-enter his/her password.
@param username
@param password
@param errorMsg can be set to a friendly error message or reason why authentication failed

validateUser Source code

function bool validateUser ( IWebAdminUser user, out string errorMsg )
Validate the given user. This will be used to check if the IWebAdminUser is still valid, for example to check if the user wasn't deleted in the mean while.
@param user the user instance to validate
@param errorMsg can be set to a friendly error message or reason why authentication failed



Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Sat 17/1/2009 20:56:05.265 - Created with UnCodeX