Class RestAuthEntryPoint

java.lang.Object
ubic.gemma.rest.security.RestAuthEntryPoint
All Implemented Interfaces:
org.springframework.security.web.AuthenticationEntryPoint

public class RestAuthEntryPoint extends Object implements org.springframework.security.web.AuthenticationEntryPoint
Implementation of AuthenticationEntryPoint for the RESTful API to handle authentication.

This is used in applicationContext-ws-rest.xml as part of Spring Security HTTP configuration.

  • Constructor Summary

    Constructors
    Constructor
    Description
    RestAuthEntryPoint(com.fasterxml.jackson.databind.ObjectMapper objectMapper, io.swagger.v3.oas.models.OpenAPI openAPI, BuildInfo buildInfo)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RestAuthEntryPoint

      public RestAuthEntryPoint(com.fasterxml.jackson.databind.ObjectMapper objectMapper, io.swagger.v3.oas.models.OpenAPI openAPI, BuildInfo buildInfo)
  • Method Details

    • commence

      public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException
      Specified by:
      commence in interface org.springframework.security.web.AuthenticationEntryPoint
      Throws:
      IOException