You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web/src/main/java/org/springframework/security/web/authentication/preauth/RequestAttributeAuthenticationFilter.java
+22-21Lines changed: 22 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -20,52 +20,53 @@
20
20
importorg.springframework.util.Assert;
21
21
22
22
/**
23
-
* A simple pre-authenticated filter which obtains the username from an environment variable, for
24
-
* use with SSO systems such as Stanford WebAuth or Shibboleth.
23
+
* A simple pre-authenticated filter which obtains the username from request attributes,
24
+
* for use with SSO systems such as Stanford WebAuth or Shibboleth.
25
25
* <p>
26
26
* As with most pre-authenticated scenarios, it is essential that the external
27
27
* authentication system is set up correctly as this filter does no authentication
28
28
* whatsoever.
29
29
* <p>
30
-
* The property {@code principalEnvironmentVariable} is the name of the request environment variable
31
-
* that contains the username. It defaults to "REMOTE_USER" for compatibility with WebAuth and Shibboleth.
30
+
* The property {@code principalEnvironmentVariable} is the name of the request attribute
31
+
* that contains the username. It defaults to "REMOTE_USER" for compatibility with WebAuth
32
+
* and Shibboleth.
32
33
* <p>
33
-
* If the environment variable is missing from the request, {@code getPreAuthenticatedPrincipal} will
34
-
* throw an exception. You can override this behaviour by setting the
35
-
* {@code exceptionIfVariableMissing} property.
34
+
* If the environment variable is missing from the request,
35
+
* {@code getPreAuthenticatedPrincipal} will throw an exception. You can override this
36
+
* behaviour by setting the {@code exceptionIfVariableMissing} property.
Copy file name to clipboardExpand all lines: web/src/test/java/org/springframework/security/web/authentication/preauth/RequestAttributeAuthenticationFilterTests.java
+24-17Lines changed: 24 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
* See the License for the specific language governing permissions and
0 commit comments