Package org.aktin.broker.auth.cred
Class AuthEndpoint
java.lang.Object
org.aktin.broker.auth.cred.AuthEndpoint
RESTful authentication endpoint. Log on/off users
via application/json calls
Example usage:
curl -H "Content-Type: application/json" -X POST -d '{"username":"admin","password":"xyz"}' http://localhost:8080/aktin/admin/auth/login
Send token header:
curl -H "Authorization: Bearer fe4798-1d90-41d4-a228-21e891d2bb65" http://localhost:8080/aktin/admin/auth/test
- Author:
- R.W.Majeed
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AuthEndpoint
public AuthEndpoint()
-
-
Method Details
-
authenticateUser
@POST @Path("login") @Produces("text/plain") @Consumes("application/xml") public String authenticateUser(Credentials cred) -
getStatus
-
logout
-