git.iko.soy/typeable/oauth2-proxy
on master help sign in
Some typos (#1222)

* Some typos * Also corrected the typo's in the src code Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>

commitcfd82daaf09efc4111d02482f5208d0a02d4e72d authorFrederic Pape <frederic@papevdc.be> dateWed 2 Jun 2021, 20:41 (5 years ago) parentf648c54
11 files changed+19−19
docs/docs/configuration/alpha_config.md+4−4 docs/docs/configuration/sessions.md+1−1 docs/versioned_docs/version-6.1.x/configuration/sessions.md+1−1 docs/versioned_docs/version-7.0.x/configuration/alpha_config.md+1−1 docs/versioned_docs/version-7.0.x/configuration/sessions.md+1−1 docs/versioned_docs/version-7.1.x/configuration/alpha_config.md+4−4 docs/versioned_docs/version-7.1.x/configuration/sessions.md+1−1 pkg/apis/options/header.go+1−1 pkg/apis/options/server.go+3−3 pkg/app/pagewriter/error_page.go+1−1 pkg/requests/result.go+1−1
docs/docs/configuration/alpha_config.md+4−4
@@ -212,7 +212,7 @@ response header.
212212| Field | Type | Description |
213213| ----- | ---- | ----------- |
214214| `name` | _string_ | Name is the header name to be used for this set of values.<br/>Names should be unique within a list of Headers. |
215−| `preserveRequestValue` | _bool_ | PreserveRequestValue determines whether any values for this header<br/>should be preserved for the request to the upstream server.<br/>This option only takes effet on injected request headers.<br/>Defaults to false (headers that match this header will be stripped). |
215+| `preserveRequestValue` | _bool_ | PreserveRequestValue determines whether any values for this header<br/>should be preserved for the request to the upstream server.<br/>This option only applies to injected request headers.<br/>Defaults to false (headers that match this header will be stripped). |
216216| `values` | _[[]HeaderValue](#headervalue)_ | Values contains the desired values for this header |
217217
218218### HeaderValue
@@ -335,8 +335,8 @@ Server represents the configuration for an HTTP(S) server
335335
336336| Field | Type | Description |
337337| ----- | ---- | ----------- |
338−| `BindAddress` | _string_ | BindAddress is the the address on which to serve traffic.<br/>Leave blank or set to "-" to disable. |
339−| `SecureBindAddress` | _string_ | SecureBindAddress is the the address on which to serve secure traffic.<br/>Leave blank or set to "-" to disable. |
338+| `BindAddress` | _string_ | BindAddress is the address on which to serve traffic.<br/>Leave blank or set to "-" to disable. |
339+| `SecureBindAddress` | _string_ | SecureBindAddress is the address on which to serve secure traffic.<br/>Leave blank or set to "-" to disable. |
340340| `TLS` | _[TLS](#tls)_ | TLS contains the information for loading the certificate and key for the<br/>secure traffic. |
341341
342342### TLS
@@ -347,7 +347,7 @@ TLS contains the information for loading a TLS certifcate and key.
347347
348348| Field | Type | Description |
349349| ----- | ---- | ----------- |
350−| `Key` | _[SecretSource](#secretsource)_ | Key is the the TLS key data to use.<br/>Typically this will come from a file. |
350+| `Key` | _[SecretSource](#secretsource)_ | Key is the TLS key data to use.<br/>Typically this will come from a file. |
351351| `Cert` | _[SecretSource](#secretsource)_ | Cert is the TLS certificate data to use.<br/>Typically this will come from a file. |
352352
353353### Upstream
docs/docs/configuration/sessions.md+1−1
@@ -33,7 +33,7 @@ users to re-authenticate
3333### Redis Storage
3434
3535The Redis Storage backend stores sessions, encrypted, in redis. Instead sending all the information
36−back the the client for storage, as in the [Cookie storage](#cookie-storage), a ticket is sent back
36+back the client for storage, as in the [Cookie storage](#cookie-storage), a ticket is sent back
3737to the user as the cookie value instead.
3838
3939A ticket is composed as the following:
docs/versioned_docs/version-6.1.x/configuration/sessions.md+1−1
@@ -33,7 +33,7 @@ users to re-authenticate
3333### Redis Storage
3434
3535The Redis Storage backend stores sessions, encrypted, in redis. Instead sending all the information
36−back the the client for storage, as in the [Cookie storage](#cookie-storage), a ticket is sent back
36+back the client for storage, as in the [Cookie storage](#cookie-storage), a ticket is sent back
3737to the user as the cookie value instead.
3838
3939A ticket is composed as the following:
docs/versioned_docs/version-7.0.x/configuration/alpha_config.md+1−1
@@ -151,7 +151,7 @@ response header.
151151| Field | Type | Description |
152152| ----- | ---- | ----------- |
153153| `name` | _string_ | Name is the header name to be used for this set of values.<br/>Names should be unique within a list of Headers. |
154−| `preserveRequestValue` | _bool_ | PreserveRequestValue determines whether any values for this header<br/>should be preserved for the request to the upstream server.<br/>This option only takes effet on injected request headers.<br/>Defaults to false (headers that match this header will be stripped). |
154+| `preserveRequestValue` | _bool_ | PreserveRequestValue determines whether any values for this header<br/>should be preserved for the request to the upstream server.<br/>This option only applies to injected request headers.<br/>Defaults to false (headers that match this header will be stripped). |
155155| `values` | _[[]HeaderValue](#headervalue)_ | Values contains the desired values for this header |
156156
157157### HeaderValue
docs/versioned_docs/version-7.0.x/configuration/sessions.md+1−1
@@ -33,7 +33,7 @@ users to re-authenticate
3333### Redis Storage
3434
3535The Redis Storage backend stores sessions, encrypted, in redis. Instead sending all the information
36−back the the client for storage, as in the [Cookie storage](#cookie-storage), a ticket is sent back
36+back the client for storage, as in the [Cookie storage](#cookie-storage), a ticket is sent back
3737to the user as the cookie value instead.
3838
3939A ticket is composed as the following:
docs/versioned_docs/version-7.1.x/configuration/alpha_config.md+4−4
@@ -153,7 +153,7 @@ response header.
153153| Field | Type | Description |
154154| ----- | ---- | ----------- |
155155| `name` | _string_ | Name is the header name to be used for this set of values.<br/>Names should be unique within a list of Headers. |
156−| `preserveRequestValue` | _bool_ | PreserveRequestValue determines whether any values for this header<br/>should be preserved for the request to the upstream server.<br/>This option only takes effet on injected request headers.<br/>Defaults to false (headers that match this header will be stripped). |
156+| `preserveRequestValue` | _bool_ | PreserveRequestValue determines whether any values for this header<br/>should be preserved for the request to the upstream server.<br/>This option only applies to injected request headers.<br/>Defaults to false (headers that match this header will be stripped). |
157157| `values` | _[[]HeaderValue](#headervalue)_ | Values contains the desired values for this header |
158158
159159### HeaderValue
@@ -193,8 +193,8 @@ Server represents the configuration for an HTTP(S) server
193193
194194| Field | Type | Description |
195195| ----- | ---- | ----------- |
196−| `BindAddress` | _string_ | BindAddress is the the address on which to serve traffic.<br/>Leave blank or set to "-" to disable. |
197−| `SecureBindAddress` | _string_ | SecureBindAddress is the the address on which to serve secure traffic.<br/>Leave blank or set to "-" to disable. |
196+| `BindAddress` | _string_ | BindAddress is the address on which to serve traffic.<br/>Leave blank or set to "-" to disable. |
197+| `SecureBindAddress` | _string_ | SecureBindAddress is the address on which to serve secure traffic.<br/>Leave blank or set to "-" to disable. |
198198| `TLS` | _[TLS](#tls)_ | TLS contains the information for loading the certificate and key for the<br/>secure traffic. |
199199
200200### TLS
@@ -205,7 +205,7 @@ TLS contains the information for loading a TLS certifcate and key.
205205
206206| Field | Type | Description |
207207| ----- | ---- | ----------- |
208−| `Key` | _[SecretSource](#secretsource)_ | Key is the the TLS key data to use.<br/>Typically this will come from a file. |
208+| `Key` | _[SecretSource](#secretsource)_ | Key is the TLS key data to use.<br/>Typically this will come from a file. |
209209| `Cert` | _[SecretSource](#secretsource)_ | Cert is the TLS certificate data to use.<br/>Typically this will come from a file. |
210210
211211### Upstream
docs/versioned_docs/version-7.1.x/configuration/sessions.md+1−1
@@ -33,7 +33,7 @@ users to re-authenticate
3333### Redis Storage
3434
3535The Redis Storage backend stores sessions, encrypted, in redis. Instead sending all the information
36−back the the client for storage, as in the [Cookie storage](#cookie-storage), a ticket is sent back
36+back the client for storage, as in the [Cookie storage](#cookie-storage), a ticket is sent back
3737to the user as the cookie value instead.
3838
3939A ticket is composed as the following:
pkg/apis/options/header.go+1−1
@@ -9,7 +9,7 @@ type Header struct {
99
1010 // PreserveRequestValue determines whether any values for this header
1111 // should be preserved for the request to the upstream server.
12− // This option only takes effet on injected request headers.
12+ // This option only applies to injected request headers.
1313 // Defaults to false (headers that match this header will be stripped).
1414 PreserveRequestValue bool `json:"preserveRequestValue,omitempty"`
1515
pkg/apis/options/server.go+3−3
@@ -2,11 +2,11 @@ package options
22
33// Server represents the configuration for an HTTP(S) server
44type Server struct {
5− // BindAddress is the the address on which to serve traffic.
5+ // BindAddress is the address on which to serve traffic.
66 // Leave blank or set to "-" to disable.
77 BindAddress string
88
9− // SecureBindAddress is the the address on which to serve secure traffic.
9+ // SecureBindAddress is the address on which to serve secure traffic.
1010 // Leave blank or set to "-" to disable.
1111 SecureBindAddress string
1212
@@ -17,7 +17,7 @@ type Server struct {
1717
1818// TLS contains the information for loading a TLS certifcate and key.
1919type TLS struct {
20− // Key is the the TLS key data to use.
20+ // Key is the TLS key data to use.
2121 // Typically this will come from a file.
2222 Key *SecretSource
2323
pkg/app/pagewriter/error_page.go+1−1
@@ -9,7 +9,7 @@ import (
99 "github.com/oauth2-proxy/oauth2-proxy/v7/pkg/logger"
1010)
1111
12−// errorMessages are default error messages for each of the the different
12+// errorMessages are default error messages for each of the different
1313// http status codes expected to be rendered in the error page.
1414var errorMessages = map[int]string{
1515 http.StatusInternalServerError: "Oops! Something went wrong. For more information contact your server administrator.",
pkg/requests/result.go+1−1
@@ -50,7 +50,7 @@ func (r *result) Body() []byte {
5050 return r.body
5151}
5252
53−// UnmarshalInto attempts to unmarshal the response into the the given interface.
53+// UnmarshalInto attempts to unmarshal the response into the given interface.
5454// The response body is assumed to be JSON.
5555// The response must have a 200 status otherwise an error will be returned.
5656func (r *result) UnmarshalInto(into interface{}) error {