public abstract class AbstractResourceOwnerPasswordProviderTests extends AbstractIntegrationTests
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractResourceOwnerPasswordProviderTests.ResourceOwner |
AbstractIntegrationTests.DoNotOverridecontext, http| Constructor and Description |
|---|
AbstractResourceOwnerPasswordProviderTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
setupAccessTokenProvider() |
void |
testInvalidGrantType() |
void |
testInvalidTokenErrorMessage() |
void |
testMissingGrantType()
tests that we get the correct error response if the media type is unacceptable.
|
void |
testNoSuchClient() |
void |
testSecretProvidedInForm() |
void |
testSecretProvidedInHeader() |
void |
testTokenEndpointunauthenticated() |
void |
testTokenNotGrantedIfSecretNotProvided() |
void |
testTokenObtainedWithHeaderAuthentication() |
void |
testTokenObtainedWithQueryAuthentication() |
void |
testUnauthenticated() |
void |
testUnauthenticatedErrorMessage() |
authorizePath, checkTokenPath, close, fixPaths, getBasicAuthentication, getPassword, getUsername, init, setAuthorizePath, setCheckTokenPath, setTokenKeyPath, setTokenPath, tokenKeyPath, tokenPathpublic AbstractResourceOwnerPasswordProviderTests()
public void setupAccessTokenProvider()
public void testUnauthenticatedErrorMessage()
throws Exception
Exceptionpublic void testInvalidTokenErrorMessage()
throws Exception
Exceptionpublic void testTokenObtainedWithHeaderAuthentication()
throws Exception
Exceptionpublic void testTokenObtainedWithQueryAuthentication()
throws Exception
Exceptionpublic void testTokenNotGrantedIfSecretNotProvided()
throws Exception
Exceptionpublic void testSecretProvidedInHeader()
throws Exception
Exceptionpublic void testTokenEndpointunauthenticated()
throws Exception
ExceptionCopyright © 2014. All rights reserved.