-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Hello !
On version 2025.2.0 for both Authentik + Terraform provider
In my terraform deployment, when i try to get existing OAuth2 provider configuration:
data "authentik_provider_oauth2_config" "portainer_oauth" {
name = "portainer"
}
I get the following error:
Possible fix:
While getting a look at the code of data_source_provider_oauth_config2.go, i see a naming convention mismatch between the file & the methods that could cause that issue (datasource Provider not found because filename doesn't match method name):
- filename: data_source_provider_oauth_config2.go
- method: dataSourceProviderOAuth2Config
Again, in provider init,provider.go#L184
We can see the same mismatch, refering to probably wrong datasource (file or method) name
Maybe just fix that line would be necessary to fix the issue...
NB: code of this data provider didn't change between 2025.2.0 & 2025.4.0
Thx a lot for your work on Authentik projects !!!
Metadata
Metadata
Assignees
Labels
No labels