Skip to content

Datasource "authentik_provider_oauth2_config" not found #689

@lightisright

Description

@lightisright

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:

Image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions