The ViewpointLoginModule is the default login module. When used, the ViewpointLoginModule authenticates users when the hash of a supplied password matches the stored password has in the Viewpoint database.
For security reasons, passwords are not explicitly stored in the database. Instead, a base64 encoded SHA-512 secure hash consisting of the password and a salt (a random number from a secure random number generator) is stored. To authenticate a user, the input password is combined with the salt (which is retrieved from the database). This combination is base64 encoded and compared with the base64 encoded hash from the database. If the hashes match, the user is authenticated.
To use ViewpointLoginModule
<config> ... <security> ... <request-handler> ... <parameter callback="NameCallback">username</parameter> <parameter callback="PasswordCallback">password</parameter> </request-handler> ... </security> </config>
<login-modules> <login-module class="com.cri.security.server.modules.ViewpointLoginModule" flag="required" /> </login-modules>
<permissions-map> ... <principal type="ViewpointRolePrincipal" name="user"> <role name="user" /> </principal> <principal type="ViewpointRolePrincipal" name="admin"> <role name="admin" /> </principal> </permissions-map> ... <role-definitions> <definition name="user"> <permission name="job.read" /> ... </definition> <definition name="admin"> <permission name="user.*" /> <role name="user" /> </definition> </role-definitions>
Related topics
© 2012 Adaptive Computing![]()