Skip to content

Commit cfe13c7

Browse files
ngocnhan-tran1996jzheaux
authored andcommitted
Fix typos
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
1 parent 3336f5f commit cfe13c7

10 files changed

Lines changed: 17 additions & 17 deletions

File tree

docs/modules/ROOT/pages/reactive/oauth2/client/authorization-grants.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ spring:
7474
----
7575

7676
Public Clients are supported using https://tools.ietf.org/html/rfc7636[Proof Key for Code Exchange] (PKCE).
77-
If the client is running in an untrusted environment (eg. native application or web browser-based application) and therefore incapable of maintaining the confidentiality of it's credentials, PKCE will automatically be used when the following conditions are true:
77+
If the client is running in an untrusted environment (e.g. native application or web browser-based application) and therefore incapable of maintaining the confidentiality of its credentials, PKCE will automatically be used when the following conditions are true:
7878

7979
. `client-secret` is omitted (or empty)
8080
. `client-authentication-method` is set to "none" (`ClientAuthenticationMethod.NONE`)

docs/modules/ROOT/pages/reactive/oauth2/client/core.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ The primary responsibilities include:
250250
* Delegating to a `ReactiveOAuth2AuthorizationFailureHandler` when an OAuth 2.0 Client fails to authorize (or re-authorize).
251251

252252
A `ReactiveOAuth2AuthorizedClientProvider` implements a strategy for authorizing (or re-authorizing) an OAuth 2.0 Client.
253-
Implementations will typically implement an authorization grant type, eg. `authorization_code`, `client_credentials`, etc.
253+
Implementations will typically implement an authorization grant type, e.g. `authorization_code`, `client_credentials`, etc.
254254

255255
The default implementation of `ReactiveOAuth2AuthorizedClientManager` is `DefaultReactiveOAuth2AuthorizedClientManager`, which is associated with a `ReactiveOAuth2AuthorizedClientProvider` that may support multiple authorization grant types using a delegation-based composite.
256256
The `ReactiveOAuth2AuthorizedClientProviderBuilder` may be used to configure and build the delegation-based composite.
@@ -306,7 +306,7 @@ fun authorizedClientManager(
306306
======
307307

308308
When an authorization attempt succeeds, the `DefaultReactiveOAuth2AuthorizedClientManager` will delegate to the `ReactiveOAuth2AuthorizationSuccessHandler`, which (by default) will save the `OAuth2AuthorizedClient` via the `ServerOAuth2AuthorizedClientRepository`.
309-
In the case of a re-authorization failure, eg. a refresh token is no longer valid, the previously saved `OAuth2AuthorizedClient` will be removed from the `ServerOAuth2AuthorizedClientRepository` via the `RemoveAuthorizedClientReactiveOAuth2AuthorizationFailureHandler`.
309+
In the case of a re-authorization failure, e.g. a refresh token is no longer valid, the previously saved `OAuth2AuthorizedClient` will be removed from the `ServerOAuth2AuthorizedClientRepository` via the `RemoveAuthorizedClientReactiveOAuth2AuthorizationFailureHandler`.
310310
The default behaviour may be customized via `setAuthorizationSuccessHandler(ReactiveOAuth2AuthorizationSuccessHandler)` and `setAuthorizationFailureHandler(ReactiveOAuth2AuthorizationFailureHandler)`.
311311

312312
The `DefaultReactiveOAuth2AuthorizedClientManager` is also associated with a `contextAttributesMapper` of type `Function<OAuth2AuthorizeRequest, Mono<Map<String, Object>>>`, which is responsible for mapping attribute(s) from the `OAuth2AuthorizeRequest` to a `Map` of attributes to be associated to the `OAuth2AuthorizationContext`.

docs/modules/ROOT/pages/reactive/oauth2/login/advanced.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ The ID Token is represented as a https://tools.ietf.org/html/rfc7519[JSON Web To
675675
The `ReactiveOidcIdTokenDecoderFactory` provides a `ReactiveJwtDecoder` used for `OidcIdToken` signature verification. The default algorithm is `RS256` but may be different when assigned during client registration.
676676
For these cases, a resolver may be configured to return the expected JWS algorithm assigned for a specific client.
677677

678-
The JWS algorithm resolver is a `Function` that accepts a `ClientRegistration` and returns the expected `JwsAlgorithm` for the client, eg. `SignatureAlgorithm.RS256` or `MacAlgorithm.HS256`
678+
The JWS algorithm resolver is a `Function` that accepts a `ClientRegistration` and returns the expected `JwsAlgorithm` for the client, e.g. `SignatureAlgorithm.RS256` or `MacAlgorithm.HS256`
679679

680680
The following code shows how to configure the `OidcIdTokenDecoderFactory` `@Bean` to default to `MacAlgorithm.HS256` for all `ClientRegistration`:
681681

docs/modules/ROOT/pages/reactive/oauth2/resource-server/jwt.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ class AudienceValidator : OAuth2TokenValidator<Jwt> {
10171017
----
10181018
======
10191019

1020-
Then, to add into a resource server, you can specifying the `ReactiveJwtDecoder` instance:
1020+
Then, to add into a resource server, you can specify the `ReactiveJwtDecoder` instance:
10211021

10221022
[tabs]
10231023
======

docs/modules/ROOT/pages/servlet/appendix/database-schema.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ create table group_members (
7676
);
7777
----
7878

79-
Remember that these tables are required only if you us the provided JDBC `UserDetailsService` implementation.
79+
Remember that these tables are required only if you use the provided JDBC `UserDetailsService` implementation.
8080
If you write your own or choose to implement `AuthenticationProvider` without a `UserDetailsService`, you have complete freedom over how you store the data, as long as the interface contract is satisfied.
8181

8282

docs/modules/ROOT/pages/servlet/appendix/namespace/http.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Optional attribute that specifies the bean name of a `CorsConfigurationSource` t
248248

249249
[[nsa-headers]]
250250
== <headers>
251-
This element allows for configuring additional (security) headers to be send with the response.
251+
This element allows for configuring additional (security) headers to be sent with the response.
252252
It enables easy configuration for several headers and also allows for setting custom headers through the <<nsa-header,header>> element.
253253
Additional information, can be found in the xref:features/exploits/headers.adoc#headers[Security Headers] section of the reference.
254254

docs/modules/ROOT/pages/servlet/authentication/kerberos/appendix.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ data with its own key.
5252
When `KDC` receives this authentication package from a client it
5353
checks who this `client` claims to be from an unencrypted part and based
5454
on that information it uses `client` decryption key it already have in
55-
its database. If this decryption is succesfull `KDC` knows that this
55+
its database. If this decryption is successful `KDC` knows that this
5656
`client` is the one it claims to be.
5757

5858
What KDC returns to a client is a ticket called `Ticket Granting
5959
Ticket` which is signed by a KDC's own private key. Later when
6060
`client` sends back this ticket it can try to decrypt it and if that
61-
operation is succesfull it knows that it was a ticket it itself
61+
operation is successful it knows that it was a ticket it itself
6262
originally signed and gave to a `client`.
6363

6464
image::{figures}/drawio-kerb-cc3.png[]
@@ -75,7 +75,7 @@ When `client` is authenticating with a service it sends previously
7575
received service ticket to a service which then thinks that I don't
7676
know anything about this guy but he gave me an authentication ticket.
7777
What `service` can do next is try to decrypt that ticket and if that
78-
operation is succesfull it knows that only other party who knows my
78+
operation is successful it knows that only other party who knows my
7979
credentials is the `KDC` and because I trust him I can also trust that
8080
this client is a one he claims to be.
8181

@@ -394,7 +394,7 @@ Valid starting Expires Service principal
394394

395395
Above you can see what happened if query was successful by looking
396396
kerberos tickets. Now you can experiment with further query commands
397-
i.e. if you working with `KerberosLdapContextSource`.
397+
i.e. if you are working with `KerberosLdapContextSource`.
398398

399399
[source,text]
400400
----
@@ -435,7 +435,7 @@ order to white list servers with Chrome will negotiate.
435435
Internet Explorer so if all changes were applied to IE (as described
436436
in E.3), nothing has to be passed via command-line parameters.
437437
- on Linux/Mac OS machines (clients): the command-line parameter
438-
`--auth-negotiate-delegate-whitelist` should only used if Kerberos
438+
`--auth-negotiate-delegate-whitelist` should only be used if Kerberos
439439
delegation is required (otherwise do not set this parameter).
440440
- It is recommended to use `https` for all communication.
441441

docs/modules/ROOT/pages/servlet/authentication/kerberos/samples.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ In above we simply set `app.user-principal` and `app.keytab-location`
189189
to empty values which disables a use of keytab file.
190190
====
191191

192-
If operation is succesfull you should see below output with `user1@EXAMPLE.ORG`.
192+
If operation is successful you should see below output with `user1@EXAMPLE.ORG`.
193193
[source,text]
194194
----
195195
<html xmlns="https://www.w3.org/1999/xhtml"
@@ -209,7 +209,7 @@ Or use a `user2` with a keytab file.
209209
$ java -jar sec-client-rest-template-{spring-security-version}.jar
210210
----
211211

212-
If operation is succesfull you should see below output with `user2@EXAMPLE.ORG`.
212+
If operation is succesful you should see below output with `user2@EXAMPLE.ORG`.
213213
[source,text]
214214
----
215215
<html xmlns="https://www.w3.org/1999/xhtml"

docs/modules/ROOT/pages/servlet/configuration/java.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ A top level `HttpSecurity` `Customizer` type can be summarized as any `Customize
697697
This translates to any `Customizer<T>` that is a single argument to a public method on javadoc:org.springframework.security.config.annotation.web.builders.HttpSecurity[].
698698

699699
A few examples can help to clarify.
700-
If `Customizer<ContentTypeOptionsConfig>` is published as a Bean, it will not be be automatically applied because it is an argument to javadoc:org.springframework.security.config.annotation.web.configurers.HeadersConfigurer#contentTypeOptions(org.springframework.security.config.Customizer)[] which is not a method defined on `HttpSecurity`.
700+
If `Customizer<ContentTypeOptionsConfig>` is published as a Bean, it will not be automatically applied because it is an argument to javadoc:org.springframework.security.config.annotation.web.configurers.HeadersConfigurer#contentTypeOptions(org.springframework.security.config.Customizer)[] which is not a method defined on `HttpSecurity`.
701701
However, if `Customizer<HeadersConfigurer<HttpSecurity>>` is published as a Bean, it will be automatically applied because it is an argument to javadoc:org.springframework.security.config.annotation.web.builders.HttpSecurity#headers(org.springframework.security.config.Customizer)[].
702702

703703
For example, the following configuration will ensure that the xref:servlet/exploits/headers.adoc#servlet-headers-csp[Content Security Policy] is set to `object-src 'none'`:
@@ -710,7 +710,7 @@ include-code::./TopLevelCustomizerBeanConfiguration[tag=headersCustomizer,indent
710710
First each xref:#httpsecurity-customizer-bean[Customizer<HttpSecurity> Bean] is applied using https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/ObjectProvider.html#orderedStream()[ObjectProvider#orderedStream()].
711711
This means that if there are multiple `Customizer<HttpSecurity>` Beans, the https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/annotation/Order.html[@Order] annotation can be added to the Bean definitions to control the ordering.
712712

713-
Next every xref:#top-level-customizer-bean[Top Level HttpSecurity Customizer Beans] type is looked up and each is is applied using `ObjectProvider#orderedStream()`.
713+
Next every xref:#top-level-customizer-bean[Top Level HttpSecurity Customizer Beans] type is looked up and each is applied using `ObjectProvider#orderedStream()`.
714714
If there is are two `Customizer<HeadersConfigurer<HttpSecurity>>` beans and two `Customizer<HttpsRedirectConfigurer<HttpSecurity>>` instances, the order that each `Customizer` type is invoked is undefined.
715715
However, the order that each instance of `Customizer<HttpsRedirectConfigurer<HttpSecurity>>` is defined by `ObjectProvider#orderedStream()` and can be controlled using `@Order` on the Bean the definitions.
716716

docs/modules/ROOT/pages/servlet/configuration/kotlin.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ Second, each xref:#httpsecuritydsl-bean[HttpSecurityDsl.() -> Unit Beans] is app
399399
This means that if there are multiple `HttpSecurity.() -> Unit` Beans, the https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/annotation/Order.html[@Order] annotation can be added to the Bean definitions to control the ordering.
400400

401401
Next, every xref:#top-level-dsl-bean[Top Level Security Dsl Beans] type is looked up and each is is applied using `ObjectProvider#orderedStream()`.
402-
If there is are different types of top level security Beans (.e.g. `HeadersDsl.() -> Unit` and `HttpsRedirectDsl.() -> Unit`), then the order that each Dsl type is invoked is undefined.
402+
If there is are different types of top level security Beans (e.g. `HeadersDsl.() -> Unit` and `HttpsRedirectDsl.() -> Unit`), then the order that each Dsl type is invoked is undefined.
403403
However, the order that each instance of of the same top level security Bean type is defined by `ObjectProvider#orderedStream()` and can be controlled using `@Order` on the Bean the definitions.
404404

405405
Finally, the `HttpSecurityDsl` Bean is injected as a Bean.

0 commit comments

Comments
 (0)