Skip to content

Commit 3fb28d6

Browse files
committed
fix: Correct multiple instances of 'stragegy' typo
This commit addresses several occurrences where 'strategy' was misspelled as 'stragegy' throughout the codebase. Additionally, a similar issue was found and corrected in the Ory documentation repository (ory/docs), with a corresponding pull request submitted.
1 parent 63736ba commit 3fb28d6

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ type Client struct {
304304
//
305305
// AccessTokenStrategy is the strategy used to generate access tokens.
306306
// Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens
307-
// Setting the stragegy here overrides the global setting in `strategies.access_token`.
307+
// Setting the strategy here overrides the global setting in `strategies.access_token`.
308308
AccessTokenStrategy string `json:"access_token_strategy,omitempty" db:"access_token_strategy" faker:"-"`
309309

310310
// SkipConsent skips the consent screen for this client. This field can only

internal/httpclient/api/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2625,7 +2625,7 @@ components:
26252625
26262626
AccessTokenStrategy is the strategy used to generate access tokens.
26272627
Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens
2628-
Setting the stragegy here overrides the global setting in `strategies.access_token`.
2628+
Setting the strategy here overrides the global setting in `strategies.access_token`.
26292629
type: string
26302630
allowed_cors_origins:
26312631
items:

internal/httpclient/docs/OAuth2Client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**AccessTokenStrategy** | Pointer to **string** | OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens Setting the stragegy here overrides the global setting in `strategies.access_token`. | [optional]
7+
**AccessTokenStrategy** | Pointer to **string** | OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens Setting the strategy here overrides the global setting in `strategies.access_token`. | [optional]
88
**AllowedCorsOrigins** | Pointer to **[]string** | | [optional]
99
**Audience** | Pointer to **[]string** | | [optional]
1010
**AuthorizationCodeGrantAccessTokenLifespan** | Pointer to **string** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional]

internal/httpclient/model_o_auth2_client.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@
612612
"description": "OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are\ngenerated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.",
613613
"properties": {
614614
"access_token_strategy": {
615-
"description": "OAuth 2.0 Access Token Strategy\n\nAccessTokenStrategy is the strategy used to generate access tokens.\nValid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens\nSetting the stragegy here overrides the global setting in `strategies.access_token`.",
615+
"description": "OAuth 2.0 Access Token Strategy\n\nAccessTokenStrategy is the strategy used to generate access tokens.\nValid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens\nSetting the strategy here overrides the global setting in `strategies.access_token`.",
616616
"type": "string"
617617
},
618618
"allowed_cors_origins": {

spec/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2632,7 +2632,7 @@
26322632
"title": "OAuth 2.0 Client",
26332633
"properties": {
26342634
"access_token_strategy": {
2635-
"description": "OAuth 2.0 Access Token Strategy\n\nAccessTokenStrategy is the strategy used to generate access tokens.\nValid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens\nSetting the stragegy here overrides the global setting in `strategies.access_token`.",
2635+
"description": "OAuth 2.0 Access Token Strategy\n\nAccessTokenStrategy is the strategy used to generate access tokens.\nValid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens\nSetting the strategy here overrides the global setting in `strategies.access_token`.",
26362636
"type": "string"
26372637
},
26382638
"allowed_cors_origins": {

0 commit comments

Comments
 (0)