Skip to content

Commit 54cfdb9

Browse files
committed
Update How-to: Implement Multitenancy
Issue gh-663
1 parent 320176a commit 54cfdb9

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

docs/modules/ROOT/pages/guides/how-to-multitenancy.adoc

+15-17
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,12 @@
77
This guide shows how to customize Spring Authorization Server to support multiple issuers per host in a multi-tenant hosting configuration.
88
The purpose of this guide is to demonstrate a general pattern for building multi-tenant capable components for Spring Authorization Server, which can also be applied to other components to suit your needs.
99

10-
* xref:guides/how-to-multitenancy.adoc#multi-tenant-enable-multiple-issuers[Enable multiple issuers]
1110
* xref:guides/how-to-multitenancy.adoc#multi-tenant-define-tenant-identifier[Define the tenant identifier]
11+
* xref:guides/how-to-multitenancy.adoc#multi-tenant-enable-multiple-issuers[Enable multiple issuers]
1212
* xref:guides/how-to-multitenancy.adoc#multi-tenant-create-component-registry[Create a component registry]
1313
* xref:guides/how-to-multitenancy.adoc#multi-tenant-create-components[Create multi-tenant components]
1414
* xref:guides/how-to-multitenancy.adoc#multi-tenant-add-tenants-dynamically[Add tenants dynamically]
1515

16-
[[multi-tenant-enable-multiple-issuers]]
17-
== Enable multiple issuers
18-
19-
Support for using multiple issuers per host is disabled by default.
20-
To enable, add the following configuration:
21-
22-
.AuthorizationServerSettingsConfig
23-
[source,java]
24-
----
25-
include::{examples-dir}/main/java/sample/multitenancy/AuthorizationServerSettingsConfig.java[]
26-
----
27-
28-
<1> Set to `true` to allow usage of multiple issuers per host.
29-
30-
WARNING: Do not allow for any arbitrary issuer to be used. An allowlist of approved issuers should be enforced.
31-
3216
[[multi-tenant-define-tenant-identifier]]
3317
== Define the tenant identifier
3418

@@ -53,6 +37,20 @@ NOTE: The base URL of the xref:protocol-endpoints.adoc[Protocol Endpoints] is th
5337

5438
Essentially, an issuer identifier with a path component represents the _"tenant identifier"_.
5539

40+
[[multi-tenant-enable-multiple-issuers]]
41+
== Enable multiple issuers
42+
43+
Support for using multiple issuers per host is disabled by default.
44+
To enable, add the following configuration:
45+
46+
.AuthorizationServerSettingsConfig
47+
[source,java]
48+
----
49+
include::{examples-dir}/main/java/sample/multitenancy/AuthorizationServerSettingsConfig.java[]
50+
----
51+
52+
<1> Set to `true` to allow usage of multiple issuers per host.
53+
5654
[[multi-tenant-create-component-registry]]
5755
== Create a component registry
5856

0 commit comments

Comments
 (0)