Skip to content

Commit

Permalink
Update to newest spec and event hook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bretterer committed Apr 27, 2020
1 parent e86bf93 commit 2b15ccf
Show file tree
Hide file tree
Showing 17 changed files with 284 additions and 38 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module github.com/okta/okta-sdk-golang/v2

require (
github.com/go-yaml/yaml v2.1.0+incompatible
github.com/google/uuid v1.1.1
github.com/jarcoal/httpmock v1.0.5
github.com/kelseyhightower/envconfig v1.4.0
github.com/okta/okta-sdk-golang v1.1.0
Expand Down
2 changes: 1 addition & 1 deletion okta/callUserFactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type CallUserFactor struct {
FactorType string `json:"factorType,omitempty"`
Id string `json:"id,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty"`
Profile *CallUserFactorProfile `json:"profile,omitempty"`
Provider string `json:"provider,omitempty"`
Status string `json:"status,omitempty"`
Verify *VerifyFactorRequest `json:"verify,omitempty"`
Profile *CallUserFactorProfile `json:"profile,omitempty"`
}

func NewCallUserFactor() *CallUserFactor {
Expand Down
2 changes: 1 addition & 1 deletion okta/emailUserFactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type EmailUserFactor struct {
FactorType string `json:"factorType,omitempty"`
Id string `json:"id,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty"`
Profile *EmailUserFactorProfile `json:"profile,omitempty"`
Provider string `json:"provider,omitempty"`
Status string `json:"status,omitempty"`
Verify *VerifyFactorRequest `json:"verify,omitempty"`
Profile *EmailUserFactorProfile `json:"profile,omitempty"`
}

func NewEmailUserFactor() *EmailUserFactor {
Expand Down
2 changes: 1 addition & 1 deletion okta/eventHookChannelConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ import ()
type EventHookChannelConfig struct {
AuthScheme *EventHookChannelConfigAuthScheme `json:"authScheme,omitempty"`
Headers []*EventHookChannelConfigHeader `json:"headers,omitempty"`
Url string `json:"url,omitempty"`
Uri string `json:"uri,omitempty"`
}
2 changes: 1 addition & 1 deletion okta/hardwareUserFactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type HardwareUserFactor struct {
FactorType string `json:"factorType,omitempty"`
Id string `json:"id,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty"`
Profile *HardwareUserFactorProfile `json:"profile,omitempty"`
Provider string `json:"provider,omitempty"`
Status string `json:"status,omitempty"`
Verify *VerifyFactorRequest `json:"verify,omitempty"`
Profile *HardwareUserFactorProfile `json:"profile,omitempty"`
}

func NewHardwareUserFactor() *HardwareUserFactor {
Expand Down
2 changes: 1 addition & 1 deletion okta/okta.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/kelseyhightower/envconfig"
)

const Version = "2.0.0-rc.3"
const Version = "2.0.0-rc.1"

type Client struct {
config *config
Expand Down
2 changes: 1 addition & 1 deletion okta/pushUserFactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type PushUserFactor struct {
FactorType string `json:"factorType,omitempty"`
Id string `json:"id,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty"`
Profile *PushUserFactorProfile `json:"profile,omitempty"`
Provider string `json:"provider,omitempty"`
Status string `json:"status,omitempty"`
Verify *VerifyFactorRequest `json:"verify,omitempty"`
Profile *PushUserFactorProfile `json:"profile,omitempty"`
}

func NewPushUserFactor() *PushUserFactor {
Expand Down
2 changes: 1 addition & 1 deletion okta/securityQuestionUserFactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type SecurityQuestionUserFactor struct {
FactorType string `json:"factorType,omitempty"`
Id string `json:"id,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty"`
Profile *SecurityQuestionUserFactorProfile `json:"profile,omitempty"`
Provider string `json:"provider,omitempty"`
Status string `json:"status,omitempty"`
Verify *VerifyFactorRequest `json:"verify,omitempty"`
Profile *SecurityQuestionUserFactorProfile `json:"profile,omitempty"`
}

func NewSecurityQuestionUserFactor() *SecurityQuestionUserFactor {
Expand Down
2 changes: 1 addition & 1 deletion okta/smsUserFactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type SmsUserFactor struct {
FactorType string `json:"factorType,omitempty"`
Id string `json:"id,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty"`
Profile *SmsUserFactorProfile `json:"profile,omitempty"`
Provider string `json:"provider,omitempty"`
Status string `json:"status,omitempty"`
Verify *VerifyFactorRequest `json:"verify,omitempty"`
Profile *SmsUserFactorProfile `json:"profile,omitempty"`
}

func NewSmsUserFactor() *SmsUserFactor {
Expand Down
2 changes: 1 addition & 1 deletion okta/tokenUserFactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type TokenUserFactor struct {
FactorType string `json:"factorType,omitempty"`
Id string `json:"id,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty"`
Profile *TokenUserFactorProfile `json:"profile,omitempty"`
Provider string `json:"provider,omitempty"`
Status string `json:"status,omitempty"`
Verify *VerifyFactorRequest `json:"verify,omitempty"`
Profile *TokenUserFactorProfile `json:"profile,omitempty"`
}

func NewTokenUserFactor() *TokenUserFactor {
Expand Down
2 changes: 1 addition & 1 deletion okta/totpUserFactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type TotpUserFactor struct {
FactorType string `json:"factorType,omitempty"`
Id string `json:"id,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty"`
Profile *TotpUserFactorProfile `json:"profile,omitempty"`
Provider string `json:"provider,omitempty"`
Status string `json:"status,omitempty"`
Verify *VerifyFactorRequest `json:"verify,omitempty"`
Profile *TotpUserFactorProfile `json:"profile,omitempty"`
}

func NewTotpUserFactor() *TotpUserFactor {
Expand Down
2 changes: 1 addition & 1 deletion okta/u2fUserFactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type U2fUserFactor struct {
FactorType string `json:"factorType,omitempty"`
Id string `json:"id,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty"`
Profile *U2fUserFactorProfile `json:"profile,omitempty"`
Provider string `json:"provider,omitempty"`
Status string `json:"status,omitempty"`
Verify *VerifyFactorRequest `json:"verify,omitempty"`
Profile *U2fUserFactorProfile `json:"profile,omitempty"`
}

func NewU2fUserFactor() *U2fUserFactor {
Expand Down
1 change: 0 additions & 1 deletion okta/userFactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ type UserFactor struct {
FactorType string `json:"factorType,omitempty"`
Id string `json:"id,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty"`
Profile *UserFactorProfile `json:"profile,omitempty"`
Provider string `json:"provider,omitempty"`
Status string `json:"status,omitempty"`
Verify *VerifyFactorRequest `json:"verify,omitempty"`
Expand Down
24 changes: 0 additions & 24 deletions okta/userFactorProfile.go

This file was deleted.

2 changes: 1 addition & 1 deletion okta/webUserFactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ type WebUserFactor struct {
FactorType string `json:"factorType,omitempty"`
Id string `json:"id,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty"`
Profile *WebUserFactorProfile `json:"profile,omitempty"`
Provider string `json:"provider,omitempty"`
Status string `json:"status,omitempty"`
Verify *VerifyFactorRequest `json:"verify,omitempty"`
Profile *WebUserFactorProfile `json:"profile,omitempty"`
}

func NewWebUserFactor() *WebUserFactor {
Expand Down
2 changes: 1 addition & 1 deletion openapi/generator/createdFiles.json

Large diffs are not rendered by default.

Loading

0 comments on commit 2b15ccf

Please sign in to comment.