Skip to content

Commit 2745c42

Browse files
authored
Fix: Read provider clientId instead of clientSecret (#23)
1 parent 85929bc commit 2745c42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/provider/provider.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ type CrowdStrikeProvider struct {
3838
// CrowdStrikeProviderModel describes the provider data model.
3939
type CrowdStrikeProviderModel struct {
4040
Cloud types.String `tfsdk:"cloud"`
41-
ClientSecret types.String `tfsdk:"client_id"`
42-
ClientId types.String `tfsdk:"client_secret"`
41+
ClientSecret types.String `tfsdk:"client_secret"`
42+
ClientId types.String `tfsdk:"client_id"`
4343
}
4444

4545
func (p *CrowdStrikeProvider) Metadata(
@@ -145,7 +145,7 @@ func (p *CrowdStrikeProvider) Configure(
145145
}
146146

147147
if !config.ClientId.IsNull() {
148-
clientId = config.ClientSecret.ValueString()
148+
clientId = config.ClientId.ValueString()
149149
}
150150

151151
if !config.ClientSecret.IsNull() {

0 commit comments

Comments
 (0)