public abstract class AbstractAuthorizationCodeProviderTests extends AbstractIntegrationTests
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractAuthorizationCodeProviderTests.MyClientWithRegisteredRedirect |
protected static class |
AbstractAuthorizationCodeProviderTests.MyTrustedClient |
AbstractIntegrationTests.DoNotOverride
context, http
Constructor and Description |
---|
AbstractAuthorizationCodeProviderTests() |
Modifier and Type | Method and Description |
---|---|
protected void |
approveAccessTokenGrant(String currentUri,
boolean approved) |
protected org.springframework.http.ResponseEntity<String> |
attemptToGetConfirmationPage(String clientId,
String redirectUri) |
protected org.springframework.http.ResponseEntity<String> |
attemptToGetConfirmationPage(String clientId,
String redirectUri,
String responseType) |
void |
setupAccessTokenProvider() |
void |
testIllegalAttemptToApproveWithoutUsingAuthorizationRequest() |
void |
testInvalidAccessToken() |
void |
testInvalidScopeInAuthorizationRequest() |
void |
testNoClientIdProvided() |
void |
testNoRedirect() |
void |
testRegisteredRedirectWithWrongOneInTokenEndpoint() |
void |
testRegisteredRedirectWithWrongRequestedRedirect() |
void |
testSuccessfulAuthorizationCodeFlow() |
void |
testSuccessfulFlowWithRegisteredRedirect() |
void |
testUnauthenticatedAuthorizationRespondsUnauthorized() |
void |
testUserDeniesConfirmation() |
void |
testWrongRedirectUri() |
protected void |
verifyAuthorizationPage(String page) |
authorizePath, checkTokenPath, close, fixPaths, getBasicAuthentication, getPassword, getUsername, init, setAuthorizePath, setCheckTokenPath, setTokenKeyPath, setTokenPath, tokenKeyPath, tokenPath
public AbstractAuthorizationCodeProviderTests()
public void setupAccessTokenProvider()
public void testUnauthenticatedAuthorizationRespondsUnauthorized() throws Exception
Exception
public void testSuccessfulAuthorizationCodeFlow() throws Exception
Exception
public void testUserDeniesConfirmation() throws Exception
Exception
public void testIllegalAttemptToApproveWithoutUsingAuthorizationRequest() throws Exception
Exception
public void testSuccessfulFlowWithRegisteredRedirect() throws Exception
Exception
public void testInvalidScopeInAuthorizationRequest() throws Exception
Exception
public void testRegisteredRedirectWithWrongRequestedRedirect() throws Exception
Exception
public void testRegisteredRedirectWithWrongOneInTokenEndpoint() throws Exception
Exception
protected org.springframework.http.ResponseEntity<String> attemptToGetConfirmationPage(String clientId, String redirectUri)
protected org.springframework.http.ResponseEntity<String> attemptToGetConfirmationPage(String clientId, String redirectUri, String responseType)
protected void approveAccessTokenGrant(String currentUri, boolean approved)
protected void verifyAuthorizationPage(String page)
Copyright © 2014. All rights reserved.