List of usage examples for org.springframework.security.oauth2.common.exceptions OAuth2Exception UNAUTHORIZED_CLIENT
String UNAUTHORIZED_CLIENT
To view the source code for org.springframework.security.oauth2.common.exceptions OAuth2Exception UNAUTHORIZED_CLIENT.
Click Source Link
From source file:org.springframework.security.oauth2.common.exception.OAuth2ExceptionJackson2DeserializerTests.java
@Test public void readValueUnauthorizedClient() throws Exception { String accessToken = createResponse(OAuth2Exception.UNAUTHORIZED_CLIENT); UnauthorizedUserException result = (UnauthorizedUserException) mapper.readValue(accessToken, OAuth2Exception.class); assertEquals(DETAILS, result.getMessage()); assertEquals(null, result.getAdditionalInformation()); }