Stormpath (v6.1)
pac4j allows you to validate username / password on the Stormpath cloud provider.
1) Dependency
You need to use the following module: pac4j-stormpath
.
Example (Maven dependency):
<dependency>
<groupId>org.pac4j</groupId>
<artifactId>pac4j-stormpath</artifactId>
<version>${pac4j.version}</version>
</dependency>
2) StormpathAuthenticator
The StormpathAuthenticator
validates username / password on Stormpath.
It can be defined for HTTP clients which deal with UsernamePasswordCredentials
.
After a successful credentials validation, it “returns” a StormpathProfile
.
Example:
StormpathAuthenticator authenticator = new StormpathAuthenticator(accessId, secretKey, applicationId);