Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data authentik_flow always errors #205

Closed
jtcarnes opened this issue Jul 3, 2022 · 2 comments
Closed

data authentik_flow always errors #205

jtcarnes opened this issue Jul 3, 2022 · 2 comments

Comments

@jtcarnes
Copy link

jtcarnes commented Jul 3, 2022

The example given in for data authentik_flow always errors when used, ie

data "authentik_flow" "default-authorization-flow" {
  slug = "default-provider-authorization-implicit-consent"
}

it returns:

│ Error: No matching flows found
│ 
│   with data.authentik_flow.default-authorization-flow,
│   on authentik.tf line 47, in data "authentik_flow" "default-authorization-flow":
│   47: data "authentik_flow" "default-authorization-flow" {

I can query the api by hand on my fresh instance and know its there. The openapi gui even finds it when submitting by hand. I can I can communicate with authentik fine as I can create the rest of the resources using tf.

Versions:
TF provider: 2022.6.3
Authentik instance: 2022.5.2

@BeryJu
Copy link
Member

BeryJu commented Jul 4, 2022

Hmmm, I'm not able to reproduce this, the datasource works both in the acceptance tests and my terraform setup. You can try setting TF_LOG=trace to see the HTTP request being sent

This exact snippet is used in tests https://github.com/goauthentik/terraform-provider-authentik/blob/main/internal/provider/data_source_flow_test.go, where the found flow's designation is checked

@jtcarnes
Copy link
Author

jtcarnes commented Jul 4, 2022

I tried it again today and it worked fine. No change between yesterday and today. Very odd, but its resolved.

@jtcarnes jtcarnes closed this as completed Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants