You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -63,6 +63,23 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
63
63
64
64
#
65
65
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
+
66
83
### Add tenants via application configuration
67
84
68
85
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
0 commit comments