Skip to content

Commit cac18db

Browse files
Add hasScope and hasAnyScope
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
1 parent 9c94c35 commit cac18db

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/authorization/DefaultOAuth2AuthorizationManagerFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package org.springframework.security.oauth2.core.authorization;
1718

1819
import org.springframework.security.authorization.AuthorizationManager;

oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/authorization/OAuth2AuthorizationManagerFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package org.springframework.security.oauth2.core.authorization;
1718

1819
import org.springframework.security.authorization.AuthorizationManager;

oauth2/oauth2-core/src/test/java/org/springframework/security/oauth2/core/authorization/OAuth2AuthorizationManagerFactoryTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,19 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.security.oauth2.core.authorization;
1716

18-
import static org.assertj.core.api.Assertions.assertThat;
17+
package org.springframework.security.oauth2.core.authorization;
1918

2019
import org.junit.jupiter.api.Test;
20+
2121
import org.springframework.security.authentication.TestingAuthenticationToken;
2222
import org.springframework.security.authorization.AuthorityAuthorizationManager;
2323
import org.springframework.security.authorization.AuthorizationManager;
2424
import org.springframework.security.authorization.AuthorizationManagerFactories;
2525
import org.springframework.security.authorization.AuthorizationResult;
2626

27+
import static org.assertj.core.api.Assertions.assertThat;
28+
2729
/**
2830
* Tests for {@link OAuth2AuthorizationManagerFactory}.
2931
*

0 commit comments

Comments
 (0)