Skip to content

Commit 846ba63

Browse files
authored
Merge pull request #10 from mzlnk/tmp/release-1.0.3-beta
tmp/release-1.0.3-beta
2 parents 77a4adf + a6e6586 commit 846ba63

File tree

7 files changed

+14
-10
lines changed

7 files changed

+14
-10
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Multi-Tenant OAuth2 Resource Server Spring Boot Starter
22

33
[![Licence: MIT](https://img.shields.io/badge/Licence-MIT-blue.svg)](https://shields.io/)
4-
[![Version: BETA-1.0](https://img.shields.io/badge/version-1.0--beta-yellow.svg)](https://shields.io/)
4+
[![Version: BETA-1.0](https://img.shields.io/badge/version-1.0.3--beta-yellow.svg)](https://shields.io/)
55
[![Java : 15](https://img.shields.io/badge/Java-15-orange.svg)](https://jdk.java.net/15/)
66
[![Open Source](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
77

@@ -18,7 +18,7 @@ in Spring Boot configuration file ;)
1818
🚧 The project is currently in BETA. There can be lack of some features or some bugs may still appear. However, we do our best to continuously improve
1919
and develop the starter ;)
2020

21-
**Latest version:** 1.0.2-beta
21+
**Latest version:** 1.0.3-beta
2222

2323
## Getting started!
2424

@@ -29,7 +29,7 @@ If you want to use the starter in your project - just include proper dependency
2929
<dependency>
3030
<groupId>io.mzlnk.springframework</groupId>
3131
<artifactId>multi-tenant-oauth2-resource-server-spring-boot-starter</artifactId>
32-
<version>1.0.2-beta</version>
32+
<version>1.0.3-beta</version>
3333
</dependency>
3434
```
3535

autoconfigure/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.mzlnk.springframework</groupId>
88
<artifactId>multi-tenant-oauth2-resource-server-spring-boot-autoconfigure</artifactId>
9-
<version>1.0.2-beta</version>
9+
<version>1.0.3-beta</version>
1010
<packaging>jar</packaging>
1111

1212
<name>multi-tenant-oauth2-resource-server-spring-boot-autoconfiguration</name>

autoconfigure/src/main/java/io/mzlnk/springframework/multitenant/oauth2/resourceserver/AutoConfiguration.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public MultitenantAuthenticationManagerResolver multitenantAuthenticationManager
4242
}
4343

4444
@Bean
45-
@Order(1)
4645
public AuthenticationTenantContextFilter authenticationTenantContextFilter(MultitenantAuthenticationManagerResolver resolver) {
4746
return new AuthenticationTenantContextFilter(resolver);
4847
}

autoconfigure/src/main/java/io/mzlnk/springframework/multitenant/oauth2/resourceserver/context/AuthenticationTenantContextFilter.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.mzlnk.springframework.multitenant.oauth2.resourceserver.context;
22

33
import io.mzlnk.springframework.multitenant.oauth2.resourceserver.resolver.MultitenantAuthenticationManagerResolver;
4+
import org.springframework.core.annotation.Order;
45
import org.springframework.security.core.context.SecurityContextHolder;
56
import org.springframework.security.oauth2.jwt.Jwt;
67
import org.springframework.security.oauth2.server.resource.introspection.OAuth2IntrospectionAuthenticatedPrincipal;
@@ -14,8 +15,12 @@
1415
import java.net.URL;
1516
import java.util.Optional;
1617

18+
import static io.mzlnk.springframework.multitenant.oauth2.resourceserver.context.AuthenticationTenantContextFilter.ORDER;
19+
20+
@Order(ORDER)
1721
public class AuthenticationTenantContextFilter extends OncePerRequestFilter {
1822

23+
public static final int ORDER = 4000;
1924
private final MultitenantAuthenticationManagerResolver resolver;
2025

2126
public AuthenticationTenantContextFilter(MultitenantAuthenticationManagerResolver resolver) {

autoconfigure/src/main/java/io/mzlnk/springframework/multitenant/oauth2/resourceserver/resolver/jwt/JwtAuthenticationManagerResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public Builder withTrustedIssuerResolver(Collection<String> trustedIssuers) {
5252
}
5353

5454
public JwtAuthenticationManagerResolver build() {
55-
return new JwtAuthenticationManagerResolver(this.publicKeyResolver, this.trustedIssuerResolver);
55+
return new JwtAuthenticationManagerResolver(this.trustedIssuerResolver, this.publicKeyResolver);
5656
}
5757

5858
}

demo/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>io.mzlnk.springframework</groupId>
1414
<artifactId>multi-tenant-oauth2-resource-server-spring-boot-starter-demo</artifactId>
15-
<version>1.0-beta</version>
15+
<version>1.0.3-beta</version>
1616

1717
<name>multi-tenant-oauth2-resource-server-spring-boot-starter-demo</name>
1818
<description>Sample demo for multi-tenant OAuth2 resource server Spring Boot starter</description>
@@ -50,7 +50,7 @@
5050

5151
<java.version>15</java.version>
5252

53-
<multi-tenant-oauth2-resource-server-spring-boot-starter.version>1.0.2-beta</multi-tenant-oauth2-resource-server-spring-boot-starter.version>
53+
<multi-tenant-oauth2-resource-server-spring-boot-starter.version>1.0.3-beta</multi-tenant-oauth2-resource-server-spring-boot-starter.version>
5454
</properties>
5555

5656
<dependencies>

starter/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.mzlnk.springframework</groupId>
88
<artifactId>multi-tenant-oauth2-resource-server-spring-boot-starter</artifactId>
9-
<version>1.0.2-beta</version>
9+
<version>1.0.3-beta</version>
1010
<packaging>jar</packaging>
1111

1212
<name>multi-tenant-oauth2-resource-server-spring-boot-starter</name>
@@ -68,7 +68,7 @@
6868
<maven.compiler.target>15</maven.compiler.target>
6969

7070
<oauth2-oidc-sdk.version>6.23</oauth2-oidc-sdk.version>
71-
<multi-tenant-oauth2-resource-server-spring-boot-autoconfigure.version>1.0.2-beta</multi-tenant-oauth2-resource-server-spring-boot-autoconfigure.version>
71+
<multi-tenant-oauth2-resource-server-spring-boot-autoconfigure.version>1.0.3-beta</multi-tenant-oauth2-resource-server-spring-boot-autoconfigure.version>
7272
</properties>
7373

7474
<dependencies>

0 commit comments

Comments
 (0)