org.openmetadata.service.security.AuthCallbackServlet Maven / Gradle / Ivy
package org.openmetadata.service.security;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
@WebServlet("/callback")
@Slf4j
public class AuthCallbackServlet extends HttpServlet {
private final AuthenticationCodeFlowHandler authenticationCodeFlowHandler;
public AuthCallbackServlet(AuthenticationCodeFlowHandler authenticationCodeFlowHandler) {
this.authenticationCodeFlowHandler = authenticationCodeFlowHandler;
}
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
authenticationCodeFlowHandler.handleCallback(req, resp);
}
}