@Path(value="/auth/") @Produces(value="application/json") @Consumes(value="application/json") public interface AuthenticationsResource
AuthenticationsResource provides methods for authenticate users of a given
application.| Modifier and Type | Method and Description |
|---|---|
Response |
authenticate(de.alpharogroup.auth.Credentials credentials)
Authenticate a user with the given
Credentials. |
Response |
authenticate(String username,
String password)
Authenticate a user with the given email or username and the given password.
|
@POST @Path(value="/credentials") Response authenticate(de.alpharogroup.auth.Credentials credentials)
Credentials.credentials - the credentials@POST @Path(value="/form") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") Response authenticate(@FormParam(value="username") String username, @FormParam(value="password") String password)
username - the email or usernamepassword - the passwordResponse objectCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.