diff --git a/providers/okta/okta_provider.go b/providers/okta/okta_provider.go index 1e1f7b163..1f9c11812 100644 --- a/providers/okta/okta_provider.go +++ b/providers/okta/okta_provider.go @@ -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 @@ -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), + }) +}