Class AuthenticationEndpoint
java.lang.Object
io.goobi.viewer.api.rest.v1.authentication.AuthenticationEndpoint
AuthenticationEndpoint class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
authenticateUser
(String email, String password) authenticateUser.jakarta.ws.rs.core.Response
headerParameterLogin
(String redirectUrl) jakarta.ws.rs.core.Response
openIdLoginGET
(String error, String authCode, String accessToken, String state) jakarta.ws.rs.core.Response
openIdLoginPOST
(String error, String authCode, String state)
-
Constructor Details
-
Method Details
-
authenticateUser
@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.
-
headerParameterLogin
@GET @Path("/header") public jakarta.ws.rs.core.Response headerParameterLogin(@QueryParam("redirectUrl") String redirectUrl) - Parameters:
redirectUrl
-- Returns:
Response
-
openIdLoginGET
@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
@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
-