Skip to content

Commit

Permalink
api auth init
Browse files Browse the repository at this point in the history
  • Loading branch information
janakamarasena committed Sep 14, 2023
1 parent 7881495 commit b73a17d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ public class AuthenticationService {
* @throws AuthServiceException If an error occurs while handling the authentication request.
*/
public AuthServiceResponse handleAuthentication(AuthServiceRequest authRequest) throws AuthServiceException {
/* TODO: check if the application contains an authenticator that
doesn't support api based auth and throw an error.
alternative: remove any steps that doesn't support api based auth.
If there are no steps that support api based auth then fail.
*/
AuthServiceRequestWrapper wrappedRequest = getWrappedRequest(authRequest.getRequest(),
authRequest.getParameters());
AuthServiceResponseWrapper wrappedResponse = getWrappedResponse(authRequest.getResponse());
Expand Down Expand Up @@ -90,6 +95,7 @@ private AuthServiceResponse processCommonAuthResponse(AuthServiceRequestWrapper
throws AuthServiceException {

AuthServiceResponse authServiceResponse = new AuthServiceResponse();
// handle user abort

if (isAuthFlowSuccessful(request)) {
handleSuccessAuthResponse(request, response, authServiceResponse);
Expand Down

0 comments on commit b73a17d

Please sign in to comment.