From a5b4b69b1cd36942ed85c1c6f8ba81e16b8b8a2b Mon Sep 17 00:00:00 2001 From: Brenno Oliveira Date: Mon, 26 Aug 2024 20:00:03 +0200 Subject: [PATCH] fix: add GetConfig for Okta provider (#1914) Signed-off-by: Brenno Oliveira --- providers/okta/okta_provider.go | 10 ++++++++++ 1 file changed, 10 insertions(+) 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), + }) +}