Update Jwt Multi-tenancy Documentation

Issue gh-13427
This commit is contained in:
Josh Cummings 2023-08-08 10:02:31 -06:00
parent fed3de8dce
commit 3b7e7f63d8
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
2 changed files with 7 additions and 6 deletions

View File

@ -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 {

View File

@ -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)