Skip to content

Commit

Permalink
Fix enum strings for OpenID application
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor403 committed Oct 7, 2019
1 parent 3ee0834 commit 793d794
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion okta/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (m *ApplicationResource) ListApplications(qp *query.Params) ([]App, *Respon
newApp = NewAutoLoginApplication()
case "OPENID_CONNECT":
//TODO: fix grant_type Unmarshal issue
newApp = NewApplication()
newApp = NewOpenIdConnectApplication()
}

err = json.Unmarshal(body, &newApp)
Expand Down
7 changes: 2 additions & 5 deletions okta/oAuthGrantType.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@

package okta

import ()

type OAuthGrantType struct {
}
type OAuthGrantType string

func NewOAuthGrantType() *OAuthGrantType {
return &OAuthGrantType{}
return new(OAuthGrantType)
}

func (a *OAuthGrantType) IsApplicationInstance() bool {
Expand Down
7 changes: 2 additions & 5 deletions okta/oAuthResponseType.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@

package okta

import ()

type OAuthResponseType struct {
}
type OAuthResponseType string

func NewOAuthResponseType() *OAuthResponseType {
return &OAuthResponseType{}
return new(OAuthResponseType)
}

func (a *OAuthResponseType) IsApplicationInstance() bool {
Expand Down

0 comments on commit 793d794

Please sign in to comment.