Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
df8c25e2
Commit
df8c25e2
authored
Mar 15, 2020
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20527 from dreis2211
* pr/20527: Fix some deprecation warnings Closes gh-20527
parents
b3c73487
5975e7bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Saml2RelyingPartyRegistrationConfiguration.java
...ity/saml2/Saml2RelyingPartyRegistrationConfiguration.java
+3
-3
Saml2RelyingPartyAutoConfigurationTests.java
...curity/saml2/Saml2RelyingPartyAutoConfigurationTests.java
+3
-3
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/saml2/Saml2RelyingPartyRegistrationConfiguration.java
View file @
df8c25e2
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -69,8 +69,8 @@ class Saml2RelyingPartyRegistrationConfiguration {
RelyingPartyRegistration
.
Builder
builder
=
RelyingPartyRegistration
.
withRegistrationId
(
id
);
builder
.
assertionConsumerServiceUrlTemplate
(
"{baseUrl}"
+
Saml2WebSsoAuthenticationFilter
.
DEFAULT_FILTER_PROCESSES_URI
);
builder
.
idpWebSsoUrl
(
properties
.
getIdentityprovider
().
getSsoUrl
(
));
builder
.
remoteIdpEntityId
(
properties
.
getIdentityprovider
().
getEntityId
(
));
builder
.
providerDetails
((
details
)
->
details
.
webSsoUrl
(
properties
.
getIdentityprovider
().
getSsoUrl
()
));
builder
.
providerDetails
((
details
)
->
details
.
entityId
(
properties
.
getIdentityprovider
().
getEntityId
()
));
builder
.
credentials
((
credentials
)
->
credentials
.
addAll
(
asCredentials
(
properties
)));
return
builder
.
build
();
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/saml2/Saml2RelyingPartyAutoConfigurationTests.java
View file @
df8c25e2
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -79,9 +79,9 @@ public class Saml2RelyingPartyAutoConfigurationTests {
this
.
contextRunner
.
withPropertyValues
(
getPropertyValues
()).
run
((
context
)
->
{
RelyingPartyRegistrationRepository
repository
=
context
.
getBean
(
RelyingPartyRegistrationRepository
.
class
);
RelyingPartyRegistration
registration
=
repository
.
findByRegistrationId
(
"foo"
);
assertThat
(
registration
.
get
Idp
WebSsoUrl
())
assertThat
(
registration
.
get
ProviderDetails
().
get
WebSsoUrl
())
.
isEqualTo
(
"https://simplesaml-for-spring-saml.cfapps.io/saml2/idp/SSOService.php"
);
assertThat
(
registration
.
get
RemoteIdp
EntityId
())
assertThat
(
registration
.
get
ProviderDetails
().
get
EntityId
())
.
isEqualTo
(
"https://simplesaml-for-spring-saml.cfapps.io/saml2/idp/metadata.php"
);
assertThat
(
registration
.
getAssertionConsumerServiceUrlTemplate
())
.
isEqualTo
(
"{baseUrl}"
+
Saml2WebSsoAuthenticationFilter
.
DEFAULT_FILTER_PROCESSES_URI
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment