Skip to content

Commit

Permalink
docs: update README.md (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
seong-wooo authored Aug 8, 2023
1 parent d6303b0 commit fa71215
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repositories {
2. Add the spring-security-authorization-manager dependency to your app-level build.gradle file:
```
dependencies {
implementation 'com.github.SWM-KAWAI-MANS:spring-security-authorization-manager:1.0.0'
implementation 'com.github.SWM-KAWAI-MANS:spring-security-authorization-manager:1.0.1'
}
```

Expand All @@ -33,20 +33,16 @@ dependencies {
```
auth:
filter:
exclusions:
- hello
- world
exclusions: hello, world
```

2. AuthorizationRegistry를 설정합니다. 기본값은 anyRequest().authenticated() 로 설정되어있습니다.
```java
public class CustomAuthorizationRegistry implements AuthorizationRegistry {
@Override
public AuthorizeHttpRequestsConfigurer<HttpSecurity>.AuthorizationManagerRequestMatcherRegistry
match(
AuthorizeHttpRequestsConfigurer<HttpSecurity>
.AuthorizationManagerRequestMatcherRegistry
r) {
match(AuthorizeHttpRequestsConfigurer<HttpSecurity>
.AuthorizationManagerRequestMatcherRegistry r) {
return r.anyRequest().authenticated();
}
}
Expand Down

0 comments on commit fa71215

Please sign in to comment.