November 2018
Intermediate to advanced
388 pages
9h 5m
English
@DatabaseIdentityStoreDefinition annotation is used for a database that stores the user identity information. Applications can be configured to use a database to store the identity, and queries will be specified, one for retrieving user information, and the other for group identity information.
For example, if we add this annotation and specify the lookup name and queries, it will then be used for validating the request:
@DatabaseIdentityStoreDefinition( dataSourceLookup = "java:comp/env/jdbc/identityDS", callerQuery = "select password from user where user_id = ?", groupsQuery = "select group_name from groups where user_id = ?")@ApplicationPath("home")@ApplicationScopedclass ApplicationConfig : Application() ...Read now
Unlock full access