org.openmetadata.service.security.AuthRefreshServlet 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("/api/v1/auth/refresh")
@Slf4j
public class AuthRefreshServlet extends HttpServlet {
private final AuthenticationCodeFlowHandler authenticationCodeFlowHandler;
public AuthRefreshServlet(AuthenticationCodeFlowHandler authenticationCodeFlowHandler) {
this.authenticationCodeFlowHandler = authenticationCodeFlowHandler;
}
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
authenticationCodeFlowHandler.handleRefresh(req, resp);
}
}