Running changelog of releases since 2.0.0-rc.4
- Fix object that does not have additional properties (#466) Thanks [@duytiennguyen-okta]
- Update newest spec (#463) Thanks [@duytiennguyen-okta]
- Fix panic issue when using access token is empty (#466) Thanks [@duytiennguyen-okta]
- Fix object that does not have additional properties (#466) Thanks [@duytiennguyen-okta]
- Fix panic issue when using bearer token (#463) Thanks [@duytiennguyen-okta]
- Fix object that does not have additional properties (#463) Thanks [@duytiennguyen-okta]
- Add support for dpop (#454) Thanks [@duytiennguyen-okta]
- Fix object that does not have additional properties (#456) Thanks [@duytiennguyen-okta]
- Fix header accept issue that only accept application/json (#457) Thanks [@duytiennguyen-okta]
- Release v4 version of the sdk base on openapi spec v3 (#4) Thanks [@duytiennguyen-okta]
- Upgrade dependency (#378) Thanks [@duytiennguyen-okta]
- Added
WithHttpInterceptorAndHttpClientPtr
(#371) Thanks @dnelson27 - Handle network errors and don't cancel context in request before reading response (#369) Thanks @ttimonen
- Revert integer values representation as integer pointers
- Original change was too agreesive for a minor release
- All integer fields have a parallel pointer field that can be used as an alternative to deal with 0 values during JSON marshaling
- Example
PasswordPolicy
model has fields int64Priority
and *int64PriorityPtr
- This change will not break code from release v2.15.0 and earlier
- Example
- New models
MultifactorEnrollmentPolicy
MultifactorEnrollmentPolicyAuthenticatorSettings
MultifactorEnrollmentPolicyAuthenticatorStatus
MultifactorEnrollmentPolicyAuthenticatorType
MultifactorEnrollmentPolicySettings
MultifactorEnrollmentPolicySettingsType
- New methods / endpoints
Application
hasPreviewSAMLAppMetadata
method forGET /api/v1/apps/{applicationId}/sso/saml/metadata
endpoint.
- Added parameters
Default
bool onAuthorizationServer
model
- All API integers, which previously had been typed as
int64
, are now typed*int64
so that serialization of actual0
values are not ignored when omitempty tags are present for serialization.
- Added
POST /api/v1/authenticators
forCreateAuthenticator
method toAuthenticatorResource
model by @monde in okta/okta-management-openapi-spec#154 - Added
/api/v1/apps/${applicationId}/credentials/secrets
endpoints andClientSecret
model by @monde in okta/okta-management-openapi-spec#146 - Added property
pkce_required
to theApplicationCredentialsOAuthClient
model by @monde in okta/okta-management-openapi-spec#145 - Added
uiSchemaId
property to theProfileEnrollmentPolicyRuleAction
model by @emanor-okta in okta/okta-management-openapi-spec#144
- Corrected parameters order
/api/v1/authorizationServers/{authServerId}/policies/{policyId}/rules
/api/v1/authorizationServers/{authServerId}/policies/{policyId}/rules/{ruleId}
- By @monde okta/okta-management-openapi-spec#131
- Added property
inactivityPeriod
toVerificationMethod
model openapi-2.14.0 - OAuth tokens are cached regardless of what request cache manager is utilized on the client.
Okta SDK Golang release in conjunction with v2.13.0 of the Okta OpenAPI Specification (Management APIs)
- Added properties
host
,integrationKey
, andsecretKey
toAuthenticatorProviderConfiguration
model to support Duo Authenticator openapi-2.13.0 - Renamed query parameter
search
tofilter
onGET /api/v1/groups
endpoint openapi-2.13.0 - New feature, SDK client can authenticate with Bearer token orienting the SDK client to the security scope of a specific application #310
- Added ability to specify JWT kid header #308
- Schema API calls with one of / enum values will have correct type when calling API #312
- Corrected out of order method and API parameters
AuthorizationServerResource
ListAuthorizationServerPolicyRules(ctx context.Context, authServerId string, policyId string)
CreateAuthorizationServerPolicyRule(ctx context.Context, authServerId string, policyId string, body AuthorizationServerPolicyRule)
- Corrected
ListPolicies
generation for newPolicies
interface.
- Update code generation to v2.12.0 of Okta's openapi spec
- Update to use trusted origins IFRAME_EMBED - IframeEmbedScopeAllowedApps in Scope
- Completed missing code generation of Policy related models
- Policy related models implement a
Policies
interface - Correctly handle pass by reference in
CreatePolicy
,UpdatePolicy
- Policy related models implement a
- Corrected env var typo on
OKTA_CLIENT_REQUEST_TIMEOUT
in README - Corrected code generation pass by referrence of a Factor instance in
EnrollFactor
,ActivateFactor
, andVerifyFactor
- Provider query parameter can be boolean or string
- Corrected out of order method and API parameters
AuthorizationServerResource
DeleteAuthorizationServerPolicyRule(ctx context.Context, authServerId string, policyId string, ruleId string)
GetAuthorizationServerPolicyRule(ctx context.Context, authServerId string, policyId string, ruleId string)
UpdateAuthorizationServerPolicyRule(ctx context.Context, authServerId string, policyId string, ruleId string, body AuthorizationServerPolicyRule)
AuthorizationServerPolicyRuleResource
UpdateAuthorizationServerPolicyRule(ctx context.Context, authServerId string, policyId string, ruleId string, body AuthorizationServerPolicyRule)
DeleteAuthorizationServerPolicyRule(ctx context.Context, authServerId string, policyId string, ruleId string)
- Added missing
_links
property toResponseLinks
model
- Changes
sendTestEmail
response to a204 no content
instead of200 success
- Adds
privateKey
andteamId
properties toIdentityProviderCredentialsSigning
to support Apple devices - Adds to
APPLE
to the enums inFactorProvider' and
LogCredentialProvider
- New models
EmailTemplate
EmailTemplateContent
EmailTemplateCustomization
EmailTemplateCustomizationRequest
EmailTemplateResource
EmailTemplateTestRequest
EmailTemplateTouchPointVariant
IdpPolicyRuleAction
IdpPolicyRuleActionProvider
- Policy is first class parent with child policy types.
- Special case unmarshal for SocialAuthToken nullable expiresAt being blank from Okta API
Release of openapispec 2.10.0
- /api/v1/apps/{appId}/connections/default
- /api/v1/apps/{appId}/connections/default/lifecycle/activate
- /api/v1/apps/{appId}/connections/default/lifecycle/deactivate
- /api/v1/apps/{appId}/features
- /api/v1/apps/{appId}/features/{name}
- /api/v1/apps/{appId}/logo
- /api/v1/policies/{policyId}/rules/{ruleId}/lifecycle/activate
- /api/v1/policies/{policyId}/rules/{ruleId}/lifecycle/deactivate
- /api/v1/roles/{roleTypeOrRoleId}/subscriptions
- /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}
- /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/subscribe
- /api/v1/roles/{roleTypeOrRoleId}/subscriptions/{notificationType}/unsubscribe
- /api/v1/users/{userId}/subscriptions
- /api/v1/users/{userId}/subscriptions/{notificationType}
- /api/v1/users/{userId}/subscriptions/{notificationType}/subscribe
- /api/v1/users/{userId}/subscriptions/{notificationType}/unsubscribe
- ActivateDefaultProvisioningConnectionForApplication
- DeactivateDefaultProvisioningConnectionForApplication
- GetDefaultProvisioningConnectionForApplication
- GetFeatureForApplication
- ListFeaturesForApplication
- SetDefaultProvisioningConnectionForApplication
- UpdateFeatureForApplication
- UploadApplicationLogo
- UploadBrandThemeBackgroundImage
- UploadBrandThemeFavicon
- UploadBrandThemeLogo
- UpdateOrgLogo
- GetRoleSubscriptionByNotificationType(ctx context.Context, roleTypeOrRoleId string, notificationType string) (*Subscription, *Response, error) {
- ListRoleSubscriptions
- SubscribeRoleSubscriptionByNotificationType
- SubscribeUserSubscriptionByNotificationType
- UnsubscribeRoleSubscriptionByNotificationType
- UnsubscribeUserSubscriptionByNotificationType
- GetUserSubscriptionByNotificationType
- ListUserSubscriptions
- NewApplicationFeature
- NewCapabilitiesCreateObject
- NewCapabilitiesObject
- NewCapabilitiesUpdateObject
- NewLifecycleCreateSettingObject
- NewLifecycleDeactivateSettingObject
- NewOrg2OrgApplication
- NewOrg2OrgApplicationSettings
- NewOrg2OrgApplicationSettingsApp
- NewPasswordSettingObject
- NewProfileSettingObject
- NewProvisioningConnection
- NewProvisioningConnectionProfile
- NewProvisioningConnectionRequest
- ApplicationFeature
- CapabilitiesCreateObject
- CapabilitiesObject
- CapabilitiesUpdateObject
- ChangeEnum
- LifecycleCreateSettingObject
- LifecycleDeactivateSettingObject
- NotificationType
- Org2OrgApplication
- Org2OrgApplicationSettings
- Org2OrgApplicationSettingsApp
- PasswordSettingObject
- ProfileSettingObject
- ProvisioningConnection
- ProvisioningConnectionAuthScheme
- ProvisioningConnectionProfile
- ProvisioningConnectionRequest
- ProvisioningConnectionStatus
- SeedEnum
- Subscription
- SubscriptionStatus
- Adjustments were made the attributes on the
DeviceAccessPolicyRuleCondition
type. - Adding
GroupProfileMap
attribute toGroupProfile
struct to support additional properties. See #268
AccessPolicy
AccessPolicyConstraint
AccessPolicyConstraints
AccessPolicyRule
AccessPolicyRuleActions
AccessPolicyRuleApplicationSignOn
AccessPolicyRuleConditions
AccessPolicyRuleCustomCondition
AuthenticatorProvider
AuthenticatorProviderConfiguration
AuthenticatorProviderConfigurationUserNamePlate
BrandResource
Brand
ChannelBinding
Compliance
DeviceAccessPolicyRuleCondition
EmailTemplateTouchPointVariant
EndUserDashboardTouchPointVariant
ErrorPageTouchPointVariant
FipsEnum
ImageUploadResponse
KnowledgeConstraint
PossessionConstraint
PreRegistrationInlineHook
ProfileEnrollmentPolicy
ProfileEnrollmentPolicyRule
ProfileEnrollmentPolicyRuleAction
ProfileEnrollmentPolicyRuleActions
ProfileEnrollmentPolicyRuleActivationRequirement
ProfileEnrollmentPolicyRuleProfileAttribute
RequiredEnum
SignInPageTouchPointVariant
ThemeResource
Theme
ThemeResponse
UserTypeCondition
UserVerificationEnum
VerificationMethod
AuthenticatorResource
GetAuthenticator
UpdateAuthenticator
ListAuthenticators
BrandResource
GetBrand
UpdateBrand
ListBrands
ListBrandThemes
GetBrandTheme
UpdateBrandTheme
DeleteBrandThemeBackgroundImage
UploadBrandThemeBackgroundImage
DeleteBrandThemeFavicon
UploadBrandThemeFavicon
DeleteBrandThemeLogo
UploadBrandThemeLogo
OrgSettingResource
UpdateOrgLogo
GetOrgPreferences
HideOktaUIFooter
ShowOktaUIFooter
OptInUsersToOktaCommunicationEmails
OptOutUsersFromOktaCommunicationEmails
GetOrgOktaSupportSettings
ExtendOktaSupport
GrantOktaSupport
RevokeOktaSupport
ThemeResource
GetBrandTheme
UpdateBrandTheme
- Updated Authenticators integration tests
- Integration tests on
IdentityProviderResource
- methods on client's Authenticator resource for
/api/v1/authenticators
endpoints and their integration tests - methods on client's OrgSetting resource for
/api/v1/org
endpoints and their integration tests - edge case type fixes in golang code generator
make pull-spec
pulls from https://github.com/okta/okta-management-openapi-spec master or branch set byOPENAPI_SPEC_BRANCH
env variable- golang generator sets api version from spec.json or by env variable override
OKTA_SDK_GOLANG_VERISON
- integration test improvements
- Okta API Group Schema support #256 thanks @bogdanprodan-okta
- Fix race condition #257 thanks @bogdanprodan-okta, @maxkondr
- Pass previous query parameters to the NextPage URL #252 @bogdanprodan-okta
- Corrected UserSchemaBase properties field as UserSchemaAttribute #248 @bogdanprodan-okta
- Added ApplicationSettingsNotes to all apps
- Added more fields to the error struct for different error response patterns from API #246 @bogdanprodan-okta
- Fixed error handling for 400/401/403 errors
- Hardcode to version 2.5.1 off of main branch of Okta's openapi spec https://github.com/okta/okta-management-openapi-spec
- Fixed code generation inconsistencies from Okta's open API spec #243 @bogdanprodan-okta
- Fixed/improved app instances interface implementations, removed 'omitemty' tags #241 @bogdanprodan-okta
- Fixed failed access token requests are not retried. #194 @adw1n
- Fixed
client.User.CreateUser
example in README. #231 @Sanil2108
- Update generated code to version 2.5.0 of Okta's openapi spec https://github.com/okta/okta-management-openapi-spec
- Refine Makefile's flexibility
- Support opaque private keys (#225) @aborrello
- Improve OAuth 2.0 servapp doc (#221) @juanmatias
- Removed omitempty from ApplicationGroupAssignment priority field (#218) @bogdanprodan-okta
- Added
WithHttpClientPtr
,WithHttpClientPtr
(#214) @bogdanprodan-okta - Remove omitempty of 'default_scope' field (#212) @bogdanprodan-okta
- Add exported OKTA_ACCESS_TOKEN constant (#213) @bretterer
- Adds Stalebot workflow (#210) @bretterer
- Fixed typo in error message of "too many requests" #230 @halmai
- AuthorizationServerPolicy
- AuthorizationServerPolicyRule
- Fixed response body parsing
- Fix error handling for 401 error
- Retry on EOF errors from HTTP client
- Update
SamlApplicationSettingsSignOn
properties to includeSingleLogout
andSpCertificate
- Update
InlineHookChannelConfig
properties to includeMethod
- Update
OpenIdConnectApplicationSettingsClient
properties to includeIdpInitiatedLogin
- Update default connection Timeout to
60
seconds (#185) - Http Client now uses
Timeout
setting for connection timeout (#185) - SDK no longer cancels context (#185)
OpenIdConnectApplicationSettingsClientKeys
OpenIdConnectApplicationSettingsRefreshToken
OpenIdConnectRefreshTokenRotationType
- Updates
okta/OpenIdConnectApplicationSettingsClient
properties to includejwks []JsonWebKey
(Resolves #176) NewCustomHotpUserFactor
sets factor type totoken:htop
- Removes vendor directory
- Updates
OpenIdConnectApplicationSettingsClient
properties to includeRefreshToken *OpenIdConnectApplicationSettingsRefreshToken
AcsEndpoint
CatalogApplication
CatalogApplicationStatus
CustomHotpUserFactor
CustomHotpUserFactorProfile
InlineHookStatus
InlineHookType
WebAuthnUserFactor
WebAuthnUserFactorProfile
- Updates
okta/config.go
to usegit.luolix.top/okta/okta-sdk-golang/v2/okta/cache
(#167, Resolves #149) - Updates
okta/config.go
to useint64
forConnectionTimeout
andRequestTimeout
(#166) ListApplicationTargetsForApplicationAdministratorRoleForGroup
now returns correct[]CatalogApplication
ListApplicationTargetsForApplicationAdministratorRoleForUser
now returns correct[]CatalogApplication
JsonWebKey.ExpiresAt
changed to correctly use*time.Time
verifyUserFactorResponse.ExpiresAt
changed to correctly use*time.Time
- Correctly reads
.okta.yaml
from project root directory - Updated typo in
PasswordCredentialHash
struct and changedWorkerFactor
to the correctWorkFactor
- Updates to @okta/openapi 2.1.1 (And associated Generator Updates)
- Added
UserId
toOAuth2ScopeConsentGrant
struct - Now Returns error instead of panic from config in
okta.go
(Resolves #122) RequestExecutor
returns error ifprivPem
is null when using PrivateKey authentication- Added
AcsEndpoints
andAllowMultipleAcsEndpoints
properties toSamlApplicationSettingsSignOn
- Added
FilterType
andFilterValue
toSamlAttributeStatement
(Resolves #76) - Generated file header in line with Go standard (Resolves #118)
- Official Release of v2 Okta Golang SDK (June 4, 2020)
CSR
Model has been renamed toCsr
CSRMetadata
Model has been renamed toCsrMetadata
CSRMetadataSubject
Model has been renamed toCsrMetadataSubject
CSRMetadataSubjectAltNames
Model has been renamed toCsrMetadataSubjectAltNames
GenerateCsrForIdentityProvider
now sets accept header correctly toapplication/json
- Remove
PreviewSamlMetadataForApplication
method fromApplicationResource
Kid
Query Param removedKeepCurrent
Query Param removedActivateFactorRequest
struct added- New Method
GenerateApplicationKey
added toApplicationResource
FactorResultType
struct addedOpenIdConnectApplicationIssuerMode
struct addedInitiateLoginUri
property (type string) added toOpenIdConnectApplicationSettingsClient
structIssuerMode
property (type string) added toOpenIdConnectApplicationSettingsClient
structFormat
property (type []string) added toPolicySubject
structExpiresAt
property (type *time.Time) added toPushUserFactor
structFactorResult
property (type string) added toPushUserFactor
struct- Remove
ClearCurrentUserSession
fromUserResource
UserFactorResource
methodActivateFactor
now takesActivateFactorRequest
as thebody
param instead ofVerifyFactorRequest
NextPassCode
property (type string) added toVerifyFactorRequest
struct- Update Readme to show how to access
RequestExecutor
(Fixes #83) - Fixes Cache EOF (Fixes #103 and Fixes #36)
- Update all enum objects to
type string
(Fixes #95) - Implement Pagination
- Updated Resource Executor to handle nil pointer dereference (#125, fix suggested by @johanbrandhorst)
- Updates JWT Signer Package issues (#121, fix suggested by @Jmainguy)