Skip to content

Commit dff5780

Browse files
ronodhirSoumikjzheaux
authored andcommitted
Removed deprecated class ServiceAuthenticationDetails
Issue gh-17309 Signed-off-by: Soumik Sarker <[email protected]>
1 parent 465d46c commit dff5780

File tree

6 files changed

+7
-49
lines changed

6 files changed

+7
-49
lines changed

cas/src/main/java/org/springframework/security/cas/web/CasAuthenticationFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@
3434
import org.springframework.security.authentication.event.InteractiveAuthenticationSuccessEvent;
3535
import org.springframework.security.cas.ServiceProperties;
3636
import org.springframework.security.cas.authentication.CasServiceTicketAuthenticationToken;
37-
import org.springframework.security.cas.web.authentication.ServiceAuthenticationDetails;
37+
import org.springframework.security.cas.authentication.ServiceAuthenticationDetails;
3838
import org.springframework.security.cas.web.authentication.ServiceAuthenticationDetailsSource;
3939
import org.springframework.security.core.Authentication;
4040
import org.springframework.security.core.AuthenticationException;

cas/src/main/java/org/springframework/security/cas/web/authentication/DefaultServiceAuthenticationDetails.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import jakarta.servlet.http.HttpServletRequest;
2424

25+
import org.springframework.security.cas.authentication.ServiceAuthenticationDetails;
2526
import org.springframework.security.web.authentication.WebAuthenticationDetails;
2627
import org.springframework.security.web.util.UrlUtils;
2728
import org.springframework.util.Assert;
@@ -60,7 +61,7 @@ final class DefaultServiceAuthenticationDetails extends WebAuthenticationDetails
6061

6162
/**
6263
* Returns the current URL minus the artifact parameter and its value, if present.
63-
* @see org.springframework.security.cas.web.authentication.ServiceAuthenticationDetails#getServiceUrl()
64+
* @see org.springframework.security.cas.authentication.ServiceAuthenticationDetails#getServiceUrl()
6465
*/
6566
@Override
6667
public String getServiceUrl() {

cas/src/main/java/org/springframework/security/cas/web/authentication/ServiceAuthenticationDetails.java

Lines changed: 0 additions & 44 deletions
This file was deleted.

cas/src/main/java/org/springframework/security/cas/web/authentication/ServiceAuthenticationDetailsSource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2011-2023 the original author or authors.
2+
* Copyright 2011-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@
2323

2424
import org.springframework.security.authentication.AuthenticationDetailsSource;
2525
import org.springframework.security.cas.ServiceProperties;
26+
import org.springframework.security.cas.authentication.ServiceAuthenticationDetails;
2627
import org.springframework.util.Assert;
2728

2829
/**

cas/src/test/java/org/springframework/security/cas/authentication/CasAuthenticationProviderTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.springframework.security.authentication.TestingAuthenticationToken;
3131
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
3232
import org.springframework.security.cas.ServiceProperties;
33-
import org.springframework.security.cas.web.authentication.ServiceAuthenticationDetails;
3433
import org.springframework.security.core.Authentication;
3534
import org.springframework.security.core.AuthenticationException;
3635
import org.springframework.security.core.authority.AuthorityUtils;

cas/src/test/java/org/springframework/security/cas/web/authentication/DefaultServiceAuthenticationDetailsTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.springframework.context.support.GenericXmlApplicationContext;
2727
import org.springframework.mock.web.MockHttpServletRequest;
2828
import org.springframework.security.cas.ServiceProperties;
29+
import org.springframework.security.cas.authentication.ServiceAuthenticationDetails;
2930
import org.springframework.security.web.util.UrlUtils;
3031

3132
import static org.assertj.core.api.Assertions.assertThat;

0 commit comments

Comments
 (0)