public abstract class AbstractAuthorizationCodeProviderTests extends AbstractIntegrationTests
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractAuthorizationCodeProviderTests.MyClientWithRegisteredRedirect |
protected static class |
AbstractAuthorizationCodeProviderTests.MyTrustedClient |
AbstractIntegrationTests.DoNotOverridecontext, 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, tokenPathpublic AbstractAuthorizationCodeProviderTests()
public void setupAccessTokenProvider()
public void testUnauthenticatedAuthorizationRespondsUnauthorized()
throws Exception
Exceptionpublic void testSuccessfulAuthorizationCodeFlow()
throws Exception
Exceptionpublic void testUserDeniesConfirmation()
throws Exception
Exceptionpublic void testIllegalAttemptToApproveWithoutUsingAuthorizationRequest()
throws Exception
Exceptionpublic void testSuccessfulFlowWithRegisteredRedirect()
throws Exception
Exceptionpublic void testInvalidScopeInAuthorizationRequest()
throws Exception
Exceptionpublic void testRegisteredRedirectWithWrongRequestedRedirect()
throws Exception
Exceptionpublic void testRegisteredRedirectWithWrongOneInTokenEndpoint()
throws Exception
Exceptionprotected 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.