@RestController
public class IdpAuthController
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IDP_SESSION_ID_TOKEN_ATTRIBUTE |
| Constructor and Description |
|---|
IdpAuthController() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.OAuth2AccessToken> |
getAccessToken(java.security.Principal principal,
java.util.Map<java.lang.String,java.lang.String> parameters,
javax.servlet.http.HttpServletRequest request) |
java.util.Set<org.springframework.http.HttpMethod> |
getAllowedRequestMethods() |
org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator |
getExceptionTranslator() |
java.lang.String |
getIdpBaseURL() |
java.lang.String |
getIdpDefaultRedirectUrl() |
java.lang.String |
getIdpTrustedServicePassword() |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> |
handleBadCredentialsException(org.springframework.security.authentication.BadCredentialsException e) |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> |
handleClientAuthenticationException(org.springframework.security.oauth2.common.exceptions.ClientAuthenticationException e) |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> |
handleException(java.lang.Exception e) |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> |
handleHttpRequestMethodNotSupportedException(org.springframework.web.HttpRequestMethodNotSupportedException e) |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> |
handleMissingServletRequestParameterException(java.lang.Exception e) |
org.springframework.http.ResponseEntity |
login(java.lang.String redirectUrl) |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.OAuth2AccessToken> |
postAccessToken(java.security.Principal principal,
java.util.Map<java.lang.String,java.lang.String> parameters,
javax.servlet.http.HttpServletRequest request) |
void |
setAllowedRequestMethods(java.util.Set<org.springframework.http.HttpMethod> allowedRequestMethods) |
void |
setExceptionTranslator(org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator providerExceptionHandler) |
void |
setIdpBaseURL(java.lang.String idpBaseURL) |
void |
setIdpDefaultRedirectUrl(java.lang.String idpDefaultRedirectUrl) |
void |
setIdpTrustedServicePassword(java.lang.String idpTrustedServicePassword) |
org.springframework.http.ResponseEntity |
status() |
public static final java.lang.String IDP_SESSION_ID_TOKEN_ATTRIBUTE
@GetMapping(value="/v2/idp/token")
public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.OAuth2AccessToken> getAccessToken(java.security.Principal principal,
@RequestParam
java.util.Map<java.lang.String,java.lang.String> parameters,
javax.servlet.http.HttpServletRequest request)
throws org.springframework.web.HttpRequestMethodNotSupportedException
org.springframework.web.HttpRequestMethodNotSupportedException@PostMapping(value="/v2/idp/token")
public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.OAuth2AccessToken> postAccessToken(java.security.Principal principal,
@RequestParam
java.util.Map<java.lang.String,java.lang.String> parameters,
javax.servlet.http.HttpServletRequest request)
throws org.springframework.web.HttpRequestMethodNotSupportedException
org.springframework.web.HttpRequestMethodNotSupportedException@GetMapping(value="/v2/idp/login")
public org.springframework.http.ResponseEntity login(@RequestParam(value="redirectUrl",required=false)
java.lang.String redirectUrl)
@GetMapping(value="/v2/idp/status") public org.springframework.http.ResponseEntity status()
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception@ExceptionHandler(value=org.springframework.web.bind.MissingServletRequestParameterException.class)
public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> handleMissingServletRequestParameterException(java.lang.Exception e)
throws java.lang.Exception
java.lang.Exception@ExceptionHandler(value=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> handleException(java.lang.Exception e)
throws java.lang.Exception
java.lang.Exception@ExceptionHandler(value=org.springframework.security.authentication.BadCredentialsException.class)
public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> handleBadCredentialsException(org.springframework.security.authentication.BadCredentialsException e)
throws java.lang.Exception
java.lang.Exception@ExceptionHandler(value=org.springframework.security.oauth2.common.exceptions.ClientAuthenticationException.class)
public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> handleClientAuthenticationException(org.springframework.security.oauth2.common.exceptions.ClientAuthenticationException e)
throws java.lang.Exception
java.lang.Exception@ExceptionHandler(value=org.springframework.web.HttpRequestMethodNotSupportedException.class)
public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> handleHttpRequestMethodNotSupportedException(org.springframework.web.HttpRequestMethodNotSupportedException e)
throws java.lang.Exception
java.lang.Exceptionpublic org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator getExceptionTranslator()
public void setExceptionTranslator(org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator providerExceptionHandler)
public java.util.Set<org.springframework.http.HttpMethod> getAllowedRequestMethods()
public void setAllowedRequestMethods(java.util.Set<org.springframework.http.HttpMethod> allowedRequestMethods)
public java.lang.String getIdpBaseURL()
public void setIdpBaseURL(java.lang.String idpBaseURL)
public java.lang.String getIdpTrustedServicePassword()
public void setIdpTrustedServicePassword(java.lang.String idpTrustedServicePassword)
public java.lang.String getIdpDefaultRedirectUrl()
public void setIdpDefaultRedirectUrl(java.lang.String idpDefaultRedirectUrl)