org.clazzes.login.sql (work in progress)
The jaas-login-service is provided as an OSGi bundle, which may be activated by
obr:addurl http://maven.clazzes.org/repository.xml
obr:deploy sql-login-service
The maven artifact is:
<groupId>org.clazzes.login</groupId>
<artifactId>sql-login-service</artifactId>
Functionality
The SQL login service authenticates against users in a SQL database, using configurable SQL queries.
There are no plans to support authentication domains, because typical standalone login systems do not care for domains.
Configuration
The SQL login service may be configured using the OSGi configuration PID org.clazzes.login.sql using these configuration values:
Key | Description |
|---|---|
defaultDomain | Optional. Defaults to an empty string. The login domain to use for principals when the request did not contain a domain. |
groupsByUserIdQuery | Optional. Required for getGroups feature. SQL template for a prepared statement to query the group IDs and group names of the groups of which the user specified by a userId is a member. Example: |
defaultPasswordAlgorithm | Optional. Defaults to crypt Values supported so far: crypt, ssha1, plain. Password fields may contain:
|
setUserPasswordStatement | Optional. Required for changePassword feature. SQL template for a prepared statement to set a new password for the user. Example: |
userByUserIdQuery | SQL template for a prepared statement to query userId, encrypted password, pretty name and e-mail address of a user specified by a userId. Example: |
userIdsByGroupIdQuery | Optional. Required for getGroupMembers feature. SQL template for a prepared statement to query the user IDs of the members of the group specified by a groupId. Example: |