| com.mvnforum.auth.Authenticator
All known Subclasses: com.mvnforum.auth.AbstractAuthenticator,
Authenticator | public interface Authenticator (Code) | | #@todo Expand guide about the overall authentication process
If the user is authenticated, then the memberID equals 0
See ForumUserServlet#process : uncomment the comment code for the hint
|
getRemoteUser | public String getRemoteUser(HttpServletRequest request)(Code) | | This method will be called by mvnForum's authentication system
to authenticate the customized user
With this generic interface, developer could integrate their own
authentication to the mvnForum system
NOTE: The user should already be in the Member table of mvnForum database
Developer could use this implementation strategy if the user's
information is in other place (such as LDAP):
- Check if user is login
- If no, then return null
- If yes, check if username is good name with StringUtil.checkGoodName
- If not, then return null
- If yes, check if user is in the mvnForum's mvnforumMember
- If yes, return the username
- If no, create the user
If you are successful, shareing your knowledge and experience to other
members of mvnForum community is highly appreciated
See Also: OnlineUserManager.setAuthenticator(Authenticator) Parameters: request - the servlet request the username of the current user associated with this requestIf no user has been authenticated in this request, then null should be return |
isCorrectCurrentPassword | public boolean isCorrectCurrentPassword(String memberName, String password, boolean encoded)(Code) | | |
|
|