November 2018
Intermediate to advanced
388 pages
9h 5m
English
@EmbeddedIdentityStoreDefinition is an in-memory data store implementation. This is used for any proof of concept or testing, as the user credentials are directly specified upon annotation. It's easy to configure EmbeddedIdentityStore in an application; we just have to specify the annotation on the configuration class and provide the identity information in the annotation itself. For example, consider the following code:
@EmbeddedIdentityStoreDefinition( Credentials(callerName = "user1", password = "secret1", groups = arrayOf("user")), Credentials(callerName = "user2", password = "secret2", groups = arrayOf("admin")))@DeclareRoles("user", "admin")@ApplicationPath("home")@ApplicationScopedclass ApplicationConfig ...Read now
Unlock full access