Skip to content

Commit f82bea0

Browse files
committed
release 1.0.4-beta
1 parent 79a7cf1 commit f82bea0

File tree

4 files changed

+25
-8
lines changed

4 files changed

+25
-8
lines changed

README.md

Lines changed: 20 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.3--beta-yellow.svg)](https://shields.io/)
4+
[![Version: BETA-1.0.4](https://img.shields.io/badge/version-1.0.4--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.3-beta
21+
**Latest version:** 1.0.4-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.3-beta</version>
32+
<version>1.0.4-beta</version>
3333
</dependency>
3434
```
3535

@@ -63,6 +63,23 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
6363

6464
#
6565

66+
### Configure how tokens will be resolved
67+
68+
You can decide how tokens should be resolved from HTTP request passed to your application. By default, the token is resolved from `Authorization` header, however you can
69+
determine that the resource server should read the token from the certain cookie, for instance. To do so, you have to add additional property in `application.yml` configuration file.
70+
71+
As for now, there is only one additional way (different from the default one) to resolve token - from the cookie with given name:
72+
```yaml
73+
oauth2:
74+
resource:
75+
server:
76+
token-resolver:
77+
type: COOKIE
78+
cookie-name: [YOUR_COOKIE_NAME_HERE]
79+
```
80+
81+
#
82+
6683
### Add tenants via application configuration
6784
6885
If you want to add tenants to your Spring Boot application, you have to edit your `application.yml` file (or corresponding `application.properties` file). Here is

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.3-beta</version>
9+
<version>1.0.4-beta</version>
1010
<packaging>jar</packaging>
1111

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

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.3-beta</version>
15+
<version>1.0.4-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.3-beta</multi-tenant-oauth2-resource-server-spring-boot-starter.version>
53+
<multi-tenant-oauth2-resource-server-spring-boot-starter.version>1.0.4-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.3-beta</version>
9+
<version>1.0.4-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.3-beta</multi-tenant-oauth2-resource-server-spring-boot-autoconfigure.version>
71+
<multi-tenant-oauth2-resource-server-spring-boot-autoconfigure.version>1.0.4-beta</multi-tenant-oauth2-resource-server-spring-boot-autoconfigure.version>
7272
</properties>
7373

7474
<dependencies>

0 commit comments

Comments
 (0)