|
|
@ -33,21 +33,21 @@ import javax.ws.rs.core.Response;
|
|
|
|
public interface AuthHandlerService {
|
|
|
|
public interface AuthHandlerService {
|
|
|
|
|
|
|
|
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Path("/{appName}/login/")
|
|
|
|
@Path("/{appName}/login")
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
|
Response login(@PathParam("appName") String appName, @QueryParam("userName") String userName,
|
|
|
|
Response login(@PathParam("appName") String appName, @QueryParam("userName") String userName,
|
|
|
|
@QueryParam("password") String password);
|
|
|
|
@QueryParam("password") String password);
|
|
|
|
|
|
|
|
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Path("/refresh/")
|
|
|
|
@Path("/refresh")
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
|
Response refresh(@QueryParam("refreshToken") String refreshToken, @QueryParam("clientId") String clientId,
|
|
|
|
Response refresh(@QueryParam("refreshToken") String refreshToken, @QueryParam("clientId") String clientId,
|
|
|
|
@QueryParam("clientSecret") String clientSecret);
|
|
|
|
@QueryParam("clientSecret") String clientSecret);
|
|
|
|
|
|
|
|
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Path("/logout/")
|
|
|
|
@Path("/logout")
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
|
Response logout(@QueryParam("token") String token, @QueryParam("clientId") String clientId,
|
|
|
|
Response logout(@QueryParam("token") String token, @QueryParam("clientId") String clientId,
|
|
|
|