Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ch4mpy/spring-addons
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4mpy committed Jun 2, 2023
2 parents 6387375 + b083548 commit 4123d5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ If locked wtih a lower JDK or spring-boot version, you'll have to use a 5.4.x re
I could forget to update README before releasing, so please refer to [maven central](https://repo1.maven.org/maven2/com/c4-soft/springaddons/spring-addons/) to pick latest available release
```xml
<properties>
<springaddons.version>6.1.10</springaddons.version>
<springaddons.version>6.1.11</springaddons.version>
<app-type>webmvc</app-type><!-- alternative value is webflux !-->
<token>jwt</token><!-- alternative value is introspecting !-->
</properties>
Expand Down Expand Up @@ -117,6 +117,9 @@ Using such libs is dead simple: just declare depedency on one of those libs and

2.0 comes with a noticeable amount of breaking changes. So lets start tracking features.

### 6.1.11
- Spring Boot 3.1.0

### 6.1.10
- Spring Boot 3.0.7

Expand Down
2 changes: 1 addition & 1 deletion samples/tutorials/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ If the application is a REST API it's a resource server. Configuring it as a cli

Use `spring-boot-starter-oauth2-client` only if the application serves UI templates or is used as BFF. In that case only, will login & logout be configured in Spring application (otherwize, it's managed by Postman or whatever is the OAuth2 client).

What if the application matches both cases above (for instance exposes publicly both a REST API and a Thymeleaf UI to manipulate it)? As seen earlier, the configuration requirements are too different to stand in the same security filter-chain, but **it is possible to define more than one filter-chain if the first(s) in `@Order` are defined with `securityMatcher` to define to which routes it apply**: a request path is checked against each security matcher in order and the first match defines which `SecurityFilterChain` bean will be applied to the request.
What if the application matches both cases above (for instance exposes publicly both a REST API and a Thymeleaf UI to manipulate it)? As seen earlier, the configuration requirements are too different to stand in the same security filter-chain, but **it is possible to define more than one filter-chain if the first(s) in `@Order` are defined with `securityMatcher` to define to which request it apply**: the path (or any other request attribute like headers) is checked against each security filter-chain "matchers" in order and the first match defines which `SecurityFilterChain` bean will be applied to the request.

### 1.3. Flows
There are quite a few but 3 are of interest for us: authorization-code, client-credentials and refresh-token.
Expand Down

0 comments on commit 4123d5f

Please sign in to comment.