Skip to content

Commit

Permalink
fix: add GetConfig for Okta provider (#1914)
Browse files Browse the repository at this point in the history
Signed-off-by: Brenno Oliveira <[email protected]>
  • Loading branch information
brennoo authored Aug 26, 2024
1 parent f3e9ae7 commit a5b4b69
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions providers/okta/okta_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (

"github.com/GoogleCloudPlatform/terraformer/terraformutils"
"github.com/GoogleCloudPlatform/terraformer/terraformutils/providerwrapper"
"github.com/zclconf/go-cty/cty"
)

type OktaProvider struct { //nolint
Expand Down Expand Up @@ -128,3 +129,12 @@ func (p *OktaProvider) GetSupportedService() map[string]terraformutils.ServiceGe
"okta_app_user_schema": &AppUserSchemaPropertyGenerator{},
}
}

// GetConfig returns the provider configuration for Okta
func (p *OktaProvider) GetConfig() cty.Value {
return cty.ObjectVal(map[string]cty.Value{
"base_url": cty.StringVal(p.baseURL),
"api_token": cty.StringVal(p.apiToken),
"org_name": cty.StringVal(p.orgName),
})
}

0 comments on commit a5b4b69

Please sign in to comment.