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
5975e7bd
Commit
5975e7bd
authored
Mar 14, 2020
by
dreis2211
Committed by
Stephane Nicoll
Mar 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some deprecation warnings
See gh-20527
parent
b3c73487
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 @
5975e7bd
/*
/*
* 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");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -69,8 +69,8 @@ class Saml2RelyingPartyRegistrationConfiguration {
...
@@ -69,8 +69,8 @@ class Saml2RelyingPartyRegistrationConfiguration {
RelyingPartyRegistration
.
Builder
builder
=
RelyingPartyRegistration
.
withRegistrationId
(
id
);
RelyingPartyRegistration
.
Builder
builder
=
RelyingPartyRegistration
.
withRegistrationId
(
id
);
builder
.
assertionConsumerServiceUrlTemplate
(
builder
.
assertionConsumerServiceUrlTemplate
(
"{baseUrl}"
+
Saml2WebSsoAuthenticationFilter
.
DEFAULT_FILTER_PROCESSES_URI
);
"{baseUrl}"
+
Saml2WebSsoAuthenticationFilter
.
DEFAULT_FILTER_PROCESSES_URI
);
builder
.
idpWebSsoUrl
(
properties
.
getIdentityprovider
().
getSsoUrl
(
));
builder
.
providerDetails
((
details
)
->
details
.
webSsoUrl
(
properties
.
getIdentityprovider
().
getSsoUrl
()
));
builder
.
remoteIdpEntityId
(
properties
.
getIdentityprovider
().
getEntityId
(
));
builder
.
providerDetails
((
details
)
->
details
.
entityId
(
properties
.
getIdentityprovider
().
getEntityId
()
));
builder
.
credentials
((
credentials
)
->
credentials
.
addAll
(
asCredentials
(
properties
)));
builder
.
credentials
((
credentials
)
->
credentials
.
addAll
(
asCredentials
(
properties
)));
return
builder
.
build
();
return
builder
.
build
();
}
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/saml2/Saml2RelyingPartyAutoConfigurationTests.java
View file @
5975e7bd
/*
/*
* 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");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -79,9 +79,9 @@ public class Saml2RelyingPartyAutoConfigurationTests {
...
@@ -79,9 +79,9 @@ public class Saml2RelyingPartyAutoConfigurationTests {
this
.
contextRunner
.
withPropertyValues
(
getPropertyValues
()).
run
((
context
)
->
{
this
.
contextRunner
.
withPropertyValues
(
getPropertyValues
()).
run
((
context
)
->
{
RelyingPartyRegistrationRepository
repository
=
context
.
getBean
(
RelyingPartyRegistrationRepository
.
class
);
RelyingPartyRegistrationRepository
repository
=
context
.
getBean
(
RelyingPartyRegistrationRepository
.
class
);
RelyingPartyRegistration
registration
=
repository
.
findByRegistrationId
(
"foo"
);
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"
);
.
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"
);
.
isEqualTo
(
"https://simplesaml-for-spring-saml.cfapps.io/saml2/idp/metadata.php"
);
assertThat
(
registration
.
getAssertionConsumerServiceUrlTemplate
())
assertThat
(
registration
.
getAssertionConsumerServiceUrlTemplate
())
.
isEqualTo
(
"{baseUrl}"
+
Saml2WebSsoAuthenticationFilter
.
DEFAULT_FILTER_PROCESSES_URI
);
.
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