Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Commit

Permalink
SECOAUTH-153: renamed 'flow' package
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed Nov 7, 2011
1 parent a02b2d4 commit 3b90b0a
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 20 deletions.
@@ -1,5 +1,6 @@
package org.springframework.security.oauth2.provider;

import static org.junit.Assert.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNotSame;
Expand All @@ -11,6 +12,7 @@
import org.junit.Test;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.security.oauth2.client.OAuth2RestTemplate;
import org.springframework.security.oauth2.common.OAuth2AccessToken;

import com.gargoylesoftware.htmlunit.BrowserVersion;
Expand Down Expand Up @@ -106,5 +108,5 @@ public void testBasicImplicitProvider() throws Exception {
headers.set("Authorization", String.format("%s %s", OAuth2AccessToken.BEARER_TYPE, accessToken));
assertEquals(HttpStatus.OK, serverRunning.getStatusCode("/sparklr/photos?format=json", headers));
}

}
Expand Up @@ -20,10 +20,10 @@
import org.springframework.security.oauth2.client.UserRedirectRequiredException;
import org.springframework.security.oauth2.client.context.OAuth2ClientContextHolder;
import org.springframework.security.oauth2.client.filter.OAuth2ClientContextImpl;
import org.springframework.security.oauth2.client.provider.flow.client.ClientCredentialsAccessTokenProvider;
import org.springframework.security.oauth2.client.provider.flow.client.ClientCredentialsResourceDetails;
import org.springframework.security.oauth2.client.provider.flow.code.AuthorizationCodeAccessTokenProvider;
import org.springframework.security.oauth2.client.provider.flow.code.AuthorizationCodeResourceDetails;
import org.springframework.security.oauth2.client.provider.grant.client.ClientCredentialsAccessTokenProvider;
import org.springframework.security.oauth2.client.provider.grant.client.ClientCredentialsResourceDetails;
import org.springframework.security.oauth2.client.provider.grant.code.AuthorizationCodeAccessTokenProvider;
import org.springframework.security.oauth2.client.provider.grant.code.AuthorizationCodeResourceDetails;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
Expand Down
Expand Up @@ -33,8 +33,8 @@
import org.springframework.security.oauth2.client.http.OAuth2AccessTokenRequiredException;
import org.springframework.security.oauth2.client.provider.OAuth2AccessTokenProvider;
import org.springframework.security.oauth2.client.provider.OAuth2AccessTokenProviderChain;
import org.springframework.security.oauth2.client.provider.flow.client.ClientCredentialsAccessTokenProvider;
import org.springframework.security.oauth2.client.provider.flow.code.AuthorizationCodeAccessTokenProvider;
import org.springframework.security.oauth2.client.provider.grant.client.ClientCredentialsAccessTokenProvider;
import org.springframework.security.oauth2.client.provider.grant.code.AuthorizationCodeAccessTokenProvider;
import org.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetails;
import org.springframework.security.oauth2.common.DefaultThrowableAnalyzer;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
Expand Down
@@ -1,4 +1,4 @@
package org.springframework.security.oauth2.client.provider.flow.client;
package org.springframework.security.oauth2.client.provider.grant.client;

import java.util.Iterator;
import java.util.List;
Expand Down
@@ -1,4 +1,4 @@
package org.springframework.security.oauth2.client.provider.flow.client;
package org.springframework.security.oauth2.client.provider.grant.client;

import org.springframework.security.oauth2.client.resource.BaseOAuth2ProtectedResourceDetails;

Expand Down
@@ -1,4 +1,4 @@
package org.springframework.security.oauth2.client.provider.flow.code;
package org.springframework.security.oauth2.client.provider.grant.code;

import java.util.Iterator;
import java.util.List;
Expand Down
@@ -1,4 +1,4 @@
package org.springframework.security.oauth2.client.provider.flow.code;
package org.springframework.security.oauth2.client.provider.grant.code;

import org.springframework.security.oauth2.client.resource.BaseOAuth2ProtectedResourceDetails;

Expand Down
Expand Up @@ -28,8 +28,8 @@
import org.springframework.security.oauth2.client.filter.OAuth2ClientProcessingFilter;
import org.springframework.security.oauth2.client.filter.flash.HttpSessionClientTokenFlashServices;
import org.springframework.security.oauth2.client.provider.OAuth2AccessTokenProviderChain;
import org.springframework.security.oauth2.client.provider.flow.client.ClientCredentialsAccessTokenProvider;
import org.springframework.security.oauth2.client.provider.flow.code.AuthorizationCodeAccessTokenProvider;
import org.springframework.security.oauth2.client.provider.grant.client.ClientCredentialsAccessTokenProvider;
import org.springframework.security.oauth2.client.provider.grant.code.AuthorizationCodeAccessTokenProvider;
import org.springframework.security.oauth2.client.provider.token.InMemoryOAuth2ClientTokenServices;
import org.springframework.security.oauth2.provider.filter.CompositeFilter;
import org.springframework.util.StringUtils;
Expand Down
Expand Up @@ -25,8 +25,8 @@
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser;
import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.security.oauth2.client.provider.flow.client.ClientCredentialsResourceDetails;
import org.springframework.security.oauth2.client.provider.flow.code.AuthorizationCodeResourceDetails;
import org.springframework.security.oauth2.client.provider.grant.client.ClientCredentialsResourceDetails;
import org.springframework.security.oauth2.client.provider.grant.code.AuthorizationCodeResourceDetails;
import org.springframework.security.oauth2.client.resource.BaseOAuth2ProtectedResourceDetails;
import org.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetails;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
Expand Down
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<beans:beans xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:oauth="http://www.springframework.org/schema/security/oauth2"
xsi:schemaLocation="http://www.springframework.org/schema/security/oauth2 http://www.springframework.org/schema/security/spring-security-oauth2-1.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
Expand All @@ -14,8 +13,6 @@
</beans:property>
</beans:bean>

<oauth:provider id="oauth2ProviderFilter">
<oauth:resource-server resource-id="${my.resource.ids}"/>
</oauth:provider>
<oauth:resource-server id="oauth2ProviderFilter" resource-id="${my.resource.ids}" />

</beans:beans>

0 comments on commit 3b90b0a

Please sign in to comment.