mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 09:12:14 +00:00
Update Jwt Multi-tenancy Documentation
Issue gh-13427
This commit is contained in:
parent
fed3de8dce
commit
3b7e7f63d8
@ -23,8 +23,8 @@ Java::
|
|||||||
+
|
+
|
||||||
[source,java,role="primary"]
|
[source,java,role="primary"]
|
||||||
----
|
----
|
||||||
JwtIssuerReactiveAuthenticationManagerResolver authenticationManagerResolver = new JwtIssuerReactiveAuthenticationManagerResolver
|
JwtIssuerReactiveAuthenticationManagerResolver authenticationManagerResolver = JwtIssuerReactiveAuthenticationManagerResolver
|
||||||
("https://idp.example.org/issuerOne", "https://idp.example.org/issuerTwo");
|
.fromTrustedIssuers("https://idp.example.org/issuerOne", "https://idp.example.org/issuerTwo");
|
||||||
|
|
||||||
http
|
http
|
||||||
.authorizeExchange(exchanges -> exchanges
|
.authorizeExchange(exchanges -> exchanges
|
||||||
@ -39,7 +39,8 @@ Kotlin::
|
|||||||
+
|
+
|
||||||
[source,kotlin,role="secondary"]
|
[source,kotlin,role="secondary"]
|
||||||
----
|
----
|
||||||
val customAuthenticationManagerResolver = JwtIssuerReactiveAuthenticationManagerResolver("https://idp.example.org/issuerOne", "https://idp.example.org/issuerTwo")
|
val customAuthenticationManagerResolver = JwtIssuerReactiveAuthenticationManagerResolver
|
||||||
|
.fromTrustedIssuers("https://idp.example.org/issuerOne", "https://idp.example.org/issuerTwo")
|
||||||
|
|
||||||
return http {
|
return http {
|
||||||
authorizeExchange {
|
authorizeExchange {
|
||||||
|
@ -114,8 +114,8 @@ Java::
|
|||||||
+
|
+
|
||||||
[source,java,role="primary"]
|
[source,java,role="primary"]
|
||||||
----
|
----
|
||||||
JwtIssuerAuthenticationManagerResolver authenticationManagerResolver = new JwtIssuerAuthenticationManagerResolver
|
JwtIssuerAuthenticationManagerResolver authenticationManagerResolver = JwtIssuerAuthenticationManagerResolver
|
||||||
("https://idp.example.org/issuerOne", "https://idp.example.org/issuerTwo");
|
.fromTrustedIssuers("https://idp.example.org/issuerOne", "https://idp.example.org/issuerTwo");
|
||||||
|
|
||||||
http
|
http
|
||||||
.authorizeHttpRequests(authorize -> authorize
|
.authorizeHttpRequests(authorize -> authorize
|
||||||
@ -131,7 +131,7 @@ Kotlin::
|
|||||||
[source,kotlin,role="secondary"]
|
[source,kotlin,role="secondary"]
|
||||||
----
|
----
|
||||||
val customAuthenticationManagerResolver = JwtIssuerAuthenticationManagerResolver
|
val customAuthenticationManagerResolver = JwtIssuerAuthenticationManagerResolver
|
||||||
("https://idp.example.org/issuerOne", "https://idp.example.org/issuerTwo")
|
.fromTrustedIssuers("https://idp.example.org/issuerOne", "https://idp.example.org/issuerTwo")
|
||||||
http {
|
http {
|
||||||
authorizeRequests {
|
authorizeRequests {
|
||||||
authorize(anyRequest, authenticated)
|
authorize(anyRequest, authenticated)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user