mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-06 10:42:33 +00:00
Update SAML docs to point to correct api url
Closes gh-9953
This commit is contained in:
parent
c2b9c0856d
commit
4440020217
@ -20,7 +20,6 @@ asciidoctorj {
|
|||||||
def ghOldSamplesUrl = "https://github.com/spring-projects/spring-security/tree/5.4.x/samples"
|
def ghOldSamplesUrl = "https://github.com/spring-projects/spring-security/tree/5.4.x/samples"
|
||||||
def ghSamplesUrl = "https://github.com/spring-projects/spring-security-samples/tree/$samplesBranch"
|
def ghSamplesUrl = "https://github.com/spring-projects/spring-security-samples/tree/$samplesBranch"
|
||||||
def securityDocsUrl = "https://docs.spring.io/spring-security/site/docs/$docsTag"
|
def securityDocsUrl = "https://docs.spring.io/spring-security/site/docs/$docsTag"
|
||||||
def oldSecurityApiUrl = "https://docs.spring.io/spring-security/site/docs/5.4.x/api/"
|
|
||||||
def securityApiUrl = "$securityDocsUrl/api/"
|
def securityApiUrl = "$securityDocsUrl/api/"
|
||||||
def securityReferenceUrl = "$securityDocsUrl/reference/html5/"
|
def securityReferenceUrl = "$securityDocsUrl/reference/html5/"
|
||||||
def springFrameworkApiUrl = "https://docs.spring.io/spring-framework/docs/$springFrameworkVersion/javadoc-api/"
|
def springFrameworkApiUrl = "https://docs.spring.io/spring-framework/docs/$springFrameworkVersion/javadoc-api/"
|
||||||
@ -31,7 +30,6 @@ asciidoctorj {
|
|||||||
'gh-url': ghUrl,
|
'gh-url': ghUrl,
|
||||||
'gh-samples-url': ghSamplesUrl,
|
'gh-samples-url': ghSamplesUrl,
|
||||||
'gh-old-samples-url': ghOldSamplesUrl,
|
'gh-old-samples-url': ghOldSamplesUrl,
|
||||||
'old-security-api-url': oldSecurityApiUrl,
|
|
||||||
'security-api-url': securityApiUrl,
|
'security-api-url': securityApiUrl,
|
||||||
'security-reference-url': securityReferenceUrl,
|
'security-reference-url': securityReferenceUrl,
|
||||||
'spring-framework-api-url': springFrameworkApiUrl,
|
'spring-framework-api-url': springFrameworkApiUrl,
|
||||||
|
@ -319,7 +319,7 @@ class MyCustomSecurityConfiguration : WebSecurityConfigurerAdapter() {
|
|||||||
The above requires the role of `USER` for any URL that starts with `/messages/`.
|
The above requires the role of `USER` for any URL that starts with `/messages/`.
|
||||||
|
|
||||||
[[servlet-saml2login-relyingpartyregistrationrepository]]
|
[[servlet-saml2login-relyingpartyregistrationrepository]]
|
||||||
The second `@Bean` Spring Boot creates is a {old-security-api-url}org/springframework/security/saml2/provider/service/registration/RelyingPartyRegistrationRepository.html[`RelyingPartyRegistrationRepository`], which represents the asserting party and relying party metadata.
|
The second `@Bean` Spring Boot creates is a {security-api-url}org/springframework/security/saml2/provider/service/registration/RelyingPartyRegistrationRepository.html[`RelyingPartyRegistrationRepository`], which represents the asserting party and relying party metadata.
|
||||||
This includes things like the location of the SSO endpoint the relying party should use when requesting authentication from the asserting party.
|
This includes things like the location of the SSO endpoint the relying party should use when requesting authentication from the asserting party.
|
||||||
|
|
||||||
You can override the default by publishing your own `RelyingPartyRegistrationRepository` bean.
|
You can override the default by publishing your own `RelyingPartyRegistrationRepository` bean.
|
||||||
@ -422,7 +422,7 @@ A relying party can be multi-tenant by registering more than one relying party i
|
|||||||
|
|
||||||
[[servlet-saml2login-relyingpartyregistration]]
|
[[servlet-saml2login-relyingpartyregistration]]
|
||||||
=== RelyingPartyRegistration
|
=== RelyingPartyRegistration
|
||||||
A {old-security-api-url}org/springframework/security/saml2/provider/service/registration/RelyingPartyRegistration.html[`RelyingPartyRegistration`]
|
A {security-api-url}org/springframework/security/saml2/provider/service/registration/RelyingPartyRegistration.html[`RelyingPartyRegistration`]
|
||||||
instance represents a link between an relying party and assering party's metadata.
|
instance represents a link between an relying party and assering party's metadata.
|
||||||
|
|
||||||
In a `RelyingPartyRegistration`, you can provide relying party metadata like its `Issuer` value, where it expects SAML Responses to be sent to, and any credentials that it owns for the purposes of signing or decrypting payloads.
|
In a `RelyingPartyRegistration`, you can provide relying party metadata like its `Issuer` value, where it expects SAML Responses to be sent to, and any credentials that it owns for the purposes of signing or decrypting payloads.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user