|
|
@ -46,7 +46,7 @@ import org.springframework.security.oauth2.common.DefaultExpiringOAuth2RefreshTo
|
|
|
|
import org.springframework.security.oauth2.common.DefaultOAuth2AccessToken;
|
|
|
|
import org.springframework.security.oauth2.common.DefaultOAuth2AccessToken;
|
|
|
|
import org.springframework.security.oauth2.common.exceptions.InvalidTokenException;
|
|
|
|
import org.springframework.security.oauth2.common.exceptions.InvalidTokenException;
|
|
|
|
import org.springframework.test.annotation.DirtiesContext;
|
|
|
|
import org.springframework.test.annotation.DirtiesContext;
|
|
|
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
import org.springframework.web.bind.annotation.ExceptionHandler;
|
|
|
|
import org.springframework.web.bind.annotation.ExceptionHandler;
|
|
|
|
import org.springframework.web.bind.annotation.RequestHeader;
|
|
|
|
import org.springframework.web.bind.annotation.RequestHeader;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@ -61,7 +61,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|
|
|
* @author Dave Syer
|
|
|
|
* @author Dave Syer
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@SpringApplicationConfiguration(classes = Application.class)
|
|
|
|
@SpringApplicationConfiguration(classes = Application.class)
|
|
|
|
@RunWith(SpringJUnit4ClassRunner.class)
|
|
|
|
@RunWith(SpringRunner.class)
|
|
|
|
@WebIntegrationTest({ "server.port=0",
|
|
|
|
@WebIntegrationTest({ "server.port=0",
|
|
|
|
"security.oauth2.resource.userInfoUri:http://example.com",
|
|
|
|
"security.oauth2.resource.userInfoUri:http://example.com",
|
|
|
|
"security.oauth2.client.clientId=foo" })
|
|
|
|
"security.oauth2.client.clientId=foo" })
|
|
|
|