Skip to content

Commit ec61462

Browse files
committed
Remove Duplicate Docs
1 parent f4d032a commit ec61462

File tree

10 files changed

+21
-136
lines changed

10 files changed

+21
-136
lines changed

docs/manual/src/docs/asciidoc/_includes/servlet/appendix/namespace.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The positions of the standard filters are fixed (see
2727
You can, of course, still do this if you need full control of the configuration.
2828

2929

30-
All filters which require a reference to the `AuthenticationManager` will be automatically injected with the internal instance created by the namespace configuration (see the <<ns-auth-manager,introductory chapter>> for more on the `AuthenticationManager`).
30+
All filters which require a reference to the <<servlet-authentication-authenticationmanager,`AuthenticationManager`>> will be automatically injected with the internal instance created by the namespace configuration.
3131

3232
Each `<http>` namespace block always creates an `SecurityContextPersistenceFilter`, an `ExceptionTranslationFilter` and a `FilterSecurityInterceptor`.
3333
These are fixed and cannot be replaced with alternatives.
@@ -2033,7 +2033,6 @@ All elements which create `AuthenticationProvider` instances should be children
20332033
[[nsa-authentication-manager-alias]]
20342034
* **alias**
20352035
This attribute allows you to define an alias name for the internal instance for use in your own configuration.
2036-
Its use is described in the <<ns-auth-manager,namespace introduction>>.
20372036

20382037

20392038
[[nsa-authentication-manager-erase-credentials]]
@@ -2062,7 +2061,7 @@ It is the same as the alias element, but provides a more consistent experience w
20622061
Unless used with a `ref` attribute, this element is shorthand for configuring a <<core-services-dao-provider,DaoAuthenticationProvider>>.
20632062
`DaoAuthenticationProvider` loads user information from a `UserDetailsService` and compares the username/password combination with the values supplied at login.
20642063
The `UserDetailsService` instance can be defined either by using an available namespace element (`jdbc-user-service` or by using the `user-service-ref` attribute to point to a bean defined elsewhere in the application context).
2065-
You can find examples of these variations in the <<ns-auth-providers,namespace introduction>>.
2064+
20662065

20672066

20682067
[[nsa-authentication-provider-parents]]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[[servlet-authentication-authenticationprovider]]
2+
= AuthenticationProvider
3+
4+
Multiple {security-api-url}org/springframework/security/authentication/AuthenticationProvider.html[``AuthenticationProvider``s] can be injected into <<servlet-authentication-providermanager,`ProviderManager`>>.
5+
Each `AuthenticationProvider` performs a specific type of authentication.
6+
For example, `DaoAuthenticationProvider` supports username/password based authentication while `JwtAuthenticationProvider` supports authenticating a JWT token.

docs/manual/src/docs/asciidoc/_includes/servlet/authentication/architecture/index.adoc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ include::authentication.adoc[leveloffset=+1]
66

77
include::granted-authority.adoc[leveloffset=+1]
88

9-
include::authentication-entry-point.adoc[leveloffset=+1]
10-
11-
include::abstract-authentication-processing-filter.adoc[leveloffset=+1]
12-
139
include::authentication-manager.adoc[leveloffset=+1]
1410

1511
include::provider-manager.adoc[leveloffset=+1]
1612

17-
// authenticationprovider
13+
include::authentication-provider.adoc[leveloffset=+1]
14+
15+
include::authentication-entry-point.adoc[leveloffset=+1]
16+
17+
// FIXME: authenticationsuccesshandler
18+
// FIXME: authenticationfailurehandler
19+
20+
include::abstract-authentication-processing-filter.adoc[leveloffset=+1]
1821

1922
// daoauthenticationprovider (goes in username/password)

docs/manual/src/docs/asciidoc/_includes/servlet/authentication/architecture/provider-manager.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
:figures: images/servlet/authentication/architecture
44

55
{security-api-url}org/springframework/security/authentication/ProviderManager.html[`ProviderManager`] is the most commonly used implementation of <<servlet-authentication-authenticationmanager,`AuthenticationManager`>>.
6-
`ProviderManager` delegates to a `List` of ``AuthenticationProvider``s.
6+
`ProviderManager` delegates to a `List` of <<servlet-authentication-authenticationprovider,``AuthenticationProvider``s>>.
77
// FIXME: link to AuthenticationProvider
88
Each `AuthenticationProvider` has an opportunity to indicate that authentication should be successful, fail, or indicate it cannot make a decision and allow a downstream `AuthenticationProvider` to decide.
99
If none of the configured ``AuthenticationProvider``s can authenticate, then authentication will fail with a `ProviderNotFoundException` which is a special `AuthenticationException` that indicates the `ProviderManager` was not configured support the type of `Authentication` that was passed into it.

docs/manual/src/docs/asciidoc/_includes/servlet/authentication/authentication-entry-point.adoc

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

docs/manual/src/docs/asciidoc/_includes/servlet/authentication/authentication-manager.adoc

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

docs/manual/src/docs/asciidoc/_includes/servlet/authentication/authentication-provider.adoc

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

docs/manual/src/docs/asciidoc/_includes/servlet/authentication/cas.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ The following beans should be configured to commence the CAS authentication proc
139139
----
140140

141141
For CAS to operate, the `ExceptionTranslationFilter` must have its `authenticationEntryPoint` property set to the `CasAuthenticationEntryPoint` bean.
142-
This can easily be done using <<ns-entry-point-ref,entry-point-ref>> as is done in the example above.
142+
This can easily be done using <<nsa-http-entry-point-ref,entry-point-ref>> as is done in the example above.
143143
The `CasAuthenticationEntryPoint` must refer to the `ServiceProperties` bean (discussed above), which provides the URL to the enterprise's CAS login server.
144144
This is where the user's browser will be redirected.
145145

docs/manual/src/docs/asciidoc/_includes/servlet/authentication/index.adoc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ If you need concrete flows that explain how these pieces fit together, look in s
1515
* <<servlet-authentication-securitycontext>> - is obtained from the `SecurityContextHolder` and contains the `Authentication` of the currently authenticated user.
1616
* <<servlet-authentication-authentication>> - Can be the input to `AuthenticationManager` to provide the credentials a user has provided to authenticate or the current user from the `SecurityContext`.
1717
* <<servlet-authentication-granted-authority>> - An authority that is granted to the principal on the `Authentication` (i.e. roles, scopes, etc.)
18+
* <<servlet-authentication-authenticationmanager>> - the API that defines how Spring Security's Filters perform <<authentication,authentication>>.
19+
* <<servlet-authentication-providermanager>> - the most common implementation of `AuthenticationManager`.
20+
* <<servlet-authentication-authenticationprovider>> - used by `ProviderManager` to perform a specific type of authentication.
1821
* <<servlet-authentication-authenticationentrypoint>> - used for requesting credentials from a client (i.e. redirecting to a log in page, sending a `WWW-Authenticate` response, etc.)
1922
* <<servlet-authentication-abstractprocessingfilter>> - a base `Filter` used for authentication.
2023
This also gives a good idea of the high level flow of authentication and how pieces work together.
21-
* <<servlet-authentication-authenticationmanager>> - the API that defines how Spring Security's Filters perform <<authentication,authentication>>.
22-
* <<servlet-authentication-providermanager>> - the most common implementation of `AuthenticationManager`.
2324

2425
[[servlet-authentication-mechanisms]]
2526
*Authentication Mechanisms*
@@ -34,10 +35,6 @@ include::architecture/index.adoc[]
3435

3536
include::unpwd/index.adoc[leveloffset=+1]
3637

37-
include::authentication-provider.adoc[]
38-
39-
include::authentication-manager.adoc[]
40-
4138
include::session-management.adoc[]
4239

4340
include::rememberme.adoc[]
@@ -58,4 +55,3 @@ include::runas.adoc[]
5855

5956
include::logout.adoc[]
6057

61-
include::authentication-entry-point.adoc[]

docs/manual/src/docs/asciidoc/_includes/servlet/authentication/openid.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ You should then register yourself with an OpenID provider (such as myopenid.com)
1919

2020
You should be able to login using the `myopenid.com` site to authenticate.
2121
It is also possible to select a specific `UserDetailsService` bean for use OpenID by setting the `user-service-ref` attribute on the `openid-login` element.
22-
See the previous section on <<ns-auth-providers,authentication providers>> for more information.
2322
Note that we have omitted the password attribute from the above user configuration, since this set of user data is only being used to load the authorities for the user.
2423
A random password will be generated internally, preventing you from accidentally using this user data as an authentication source elsewhere in your configuration.
2524

0 commit comments

Comments
 (0)