Skip to content

Commit 661050a

Browse files
authored
Merge pull request #289 from okta/v2.12.0
Updates to 2.12
2 parents 09f6594 + 9c8514a commit 661050a

21 files changed

Lines changed: 272 additions & 77 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.okta
33
.idea
44
.okta.yaml
5+
.vscode/settings.json

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
# Changelog
22
Running changelog of releases since `2.0.0-rc.4`
33

4+
## v2.12.0
5+
6+
### Updates
7+
- Update code generation to v2.12.0 of Okta's openapi spec
8+
- Update to use trusted origins IFRAME_EMBED - IframeEmbedScopeAllowedApps in Scope
9+
- Completed missing code generation of Policy related models
10+
- Policy related models implement a `Policies` interface
11+
- Correctly handle pass by reference in `CreatePolicy`, `UpdatePolicy`
12+
13+
### Bug fixes
14+
- Corrected env var typo on `OKTA_CLIENT_REQUEST_TIMEOUT` in README
15+
- Corrected code generation pass by referrence of a Factor instance in `EnrollFactor`, `ActivateFactor`, and `VerifyFactor`
16+
- Provider query parameter can be boolean or string
17+
- Corrected out of order method and API parameters
18+
- `AuthorizationServerResource`
19+
- `DeleteAuthorizationServerPolicyRule(ctx context.Context, authServerId string, policyId string, ruleId string)`
20+
- `GetAuthorizationServerPolicyRule(ctx context.Context, authServerId string, policyId string, ruleId string)`
21+
- `UpdateAuthorizationServerPolicyRule(ctx context.Context, authServerId string, policyId string, ruleId string, body AuthorizationServerPolicyRule)`
22+
- `AuthorizationServerPolicyRuleResource`
23+
- `UpdateAuthorizationServerPolicyRule(ctx context.Context, authServerId string, policyId string, ruleId string, body AuthorizationServerPolicyRule)`
24+
- `DeleteAuthorizationServerPolicyRule(ctx context.Context, authServerId string, policyId string, ruleId string)`
25+
426
## v2.11.2
527

628
### Updates

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ test\:integration:
6767

6868
test\:unit:
6969
@echo "$(COLOR_OK)Running unit tests...$(COLOR_NONE)"
70-
go test -failfast -race ./tests/unit -test.v
70+
go test -failfast -race ./tests/unit ./okta/query -test.v
7171

7272
test\:integration\:all:
7373
@echo "$(COLOR_OKTA)Running integration tests...$(COLOR_NONE)"
7474
go test -race ./tests/integration -test.v
7575

7676
test\:unit\:all:
7777
@echo "$(COLOR_OK)Running unit tests...$(COLOR_NONE)"
78-
go test -race ./tests/unit -test.v
78+
go test -race ./tests/unit ./okta/query -test.v
7979

8080
.PHONY: fmt
8181
fmt: check-fmt # Format the code

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ memory cache configure the client with `WithCache(false)`.
143143
## Connection Retry / Rate Limiting
144144
145145
By default this SDK retries requests that are returned with a 429 exception. To
146-
disable this functionality set `OKTA_CLIENT_REQUESTTIMEOUT` and
146+
disable this functionality set `OKTA_CLIENT_REQUEST_TIMEOUT` and
147147
`OKTA_CLIENT_RATELIMIT_MAXRETRIES` to `0`.
148148
149149
Setting only one of the values to zero disables that check. Meaning, by
150150
default, four retry attempts will be made. If you set
151-
`OKTA_CLIENT_REQUESTTIMEOUT` to 45 seconds and
151+
`OKTA_CLIENT_REQUEST_TIMEOUT` to 45 seconds and
152152
`OKTA_CLIENT_RATELIMIT_MAXRETRIES` to `0`. This SDK will continue to retry
153153
indefinitely for 45 seconds. If both values are non zero, this SDK attempts to
154154
retry until either of the conditions are met (not both).

okta/application.go

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

okta/authorizationServer.go

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

okta/authorizationServerPolicyRule.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

okta/iframeEmbedScopeAllowedApps.go

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

okta/okta.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.

okta/policy.go

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)