Skip to content

Commit 6d68f40

Browse files
Document that Shibboleth Repository is Required for SAML Support
Closes gh-14286
1 parent 74d06f0 commit 6d68f40

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

docs/modules/ROOT/pages/servlet/saml2/login/overview.adoc

+36-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,42 @@ image:{icondir}/number_4.png[] If authentication is successful, then __Success__
5555
== Minimal Dependencies
5656

5757
SAML 2.0 service provider support resides in `spring-security-saml2-service-provider`.
58-
It builds off of the OpenSAML library.
58+
It builds off of the OpenSAML library, and, for that reason, you must also include the Shibboleth Maven repository in your build configuration.
59+
Check https://shibboleth.atlassian.net/wiki/spaces/DEV/pages/1123844333/Use+of+Maven+Central#Publishing-to-Maven-Central[this link] for more details about why a separate repository is needed.
60+
61+
[tabs]
62+
======
63+
Maven::
64+
+
65+
[source,xml,role="primary"]
66+
----
67+
<repositories>
68+
<!-- ... -->
69+
<repository>
70+
<id>shibboleth-releases</id>
71+
<url>https://build.shibboleth.net/nexus/content/repositories/releases/</url>
72+
</repository>
73+
</repositories>
74+
<dependency>
75+
<groupId>org.springframework.security</groupId>
76+
<artifactId>spring-security-saml2-service-provider</artifactId>
77+
</dependency>
78+
----
79+
80+
Gradle::
81+
+
82+
[source,groovy,role="secondary"]
83+
----
84+
repositories {
85+
// ...
86+
maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
87+
}
88+
dependencies {
89+
// ...
90+
implementation 'org.springframework.security:spring-security-saml2-service-provider'
91+
}
92+
----
93+
======
5994

6095
[[servlet-saml2login-minimalconfiguration]]
6196
== Minimal Configuration

0 commit comments

Comments
 (0)