@Controller(value="cuba_IdpController")
public class IdpController
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CUBA_IDP_COOKIE_NAME |
static java.lang.String |
CUBA_IDP_TICKET_PARAMETER |
Constructor and Description |
---|
IdpController() |
Modifier and Type | Method and Description |
---|---|
AuthResponse |
authenticate(AuthRequest auth,
java.lang.String idpSessionCookie,
javax.servlet.http.HttpServletResponse response) |
java.lang.String |
checkIdpSession(java.lang.String serviceProviderUrl,
java.lang.String responseType,
java.lang.String idpSessionCookie,
javax.servlet.http.HttpServletResponse response) |
LocalesInfo |
getLocales() |
java.lang.String |
logout(java.lang.String serviceProviderUrl,
java.lang.String responseType,
java.lang.String idpSessionCookie,
javax.servlet.http.HttpServletResponse response) |
org.springframework.http.ResponseEntity |
status(java.lang.String idpSessionCookie) |
public static final java.lang.String CUBA_IDP_COOKIE_NAME
public static final java.lang.String CUBA_IDP_TICKET_PARAMETER
@GetMapping(value="/") public java.lang.String checkIdpSession(@RequestParam(value="sp",defaultValue="") java.lang.String serviceProviderUrl, @RequestParam(value="response_type",defaultValue="server-ticket") java.lang.String responseType, @CookieValue(value="IDP_SESSION_ID",defaultValue="") java.lang.String idpSessionCookie, javax.servlet.http.HttpServletResponse response)
@GetMapping(value="/logout") public java.lang.String logout(@RequestParam(value="sp",defaultValue="") java.lang.String serviceProviderUrl, @RequestParam(value="response_type",defaultValue="server-ticket") java.lang.String responseType, @CookieValue(value="IDP_SESSION_ID",defaultValue="") java.lang.String idpSessionCookie, javax.servlet.http.HttpServletResponse response)
@GetMapping(value="/status", produces="application/json; charset=UTF-8") public org.springframework.http.ResponseEntity status(@CookieValue(value="IDP_SESSION_ID",defaultValue="") java.lang.String idpSessionCookie)
@PostMapping(value="/auth", produces="application/json; charset=UTF-8") @ResponseBody public AuthResponse authenticate(@RequestBody AuthRequest auth, @CookieValue(value="IDP_SESSION_ID",defaultValue="") java.lang.String idpSessionCookie, javax.servlet.http.HttpServletResponse response)
@GetMapping(value="/locales", produces="application/json; charset=UTF-8") @ResponseBody public LocalesInfo getLocales()