Class AuthenticationEndpoint

java.lang.Object
io.goobi.viewer.api.rest.v1.authentication.AuthenticationEndpoint

@Path("/auth") public class AuthenticationEndpoint extends Object

AuthenticationEndpoint class.

  • Constructor Details Link icon

    • AuthenticationEndpoint Link icon

      public AuthenticationEndpoint()
  • Method Details Link icon

    • authenticateUser Link icon

      @POST @Produces("application/json") @Consumes("application/x-www-form-urlencoded") public jakarta.ws.rs.core.Response authenticateUser(@FormParam("email") String email, @FormParam("password") String password)

      authenticateUser.

      Parameters:
      email - a String object.
      password - a String object.
      Returns:
      a Response object.
    • headerParameterLogin Link icon

      @GET @Path("/header") public jakarta.ws.rs.core.Response headerParameterLogin(@QueryParam("redirectUrl") String redirectUrl)
      Parameters:
      redirectUrl -
      Returns:
      Response
    • openIdLoginGET Link icon

      @GET @Path("/oauth") public jakarta.ws.rs.core.Response openIdLoginGET(@QueryParam("error") String error, @QueryParam("code") String authCode, @QueryParam("id_token") String accessToken, @QueryParam("state") String state) throws IOException
      Parameters:
      error -
      authCode -
      accessToken -
      state -
      Returns:
      Response
      Throws:
      IOException
    • openIdLoginPOST Link icon

      @POST @Path("/oauth") public jakarta.ws.rs.core.Response openIdLoginPOST(@FormParam("error") String error, @FormParam("code") String authCode, @FormParam("state") String state) throws IOException
      Parameters:
      error -
      authCode -
      state -
      Returns:
      Response
      Throws:
      IOException