feat: update the default-scopes's resource's name to authentik_property_mapping_provider_scope
All checks were successful
checks / pre-commit (push) Successful in 1m2s
checks / k8s (push) Successful in 23s
checks / tflint (push) Successful in 16s
OpenTofu deployments / authentik (push) Successful in 2m7s
OpenTofu deployments / adguard (push) Successful in 58s

This commit is contained in:
cătălin 2024-09-06 19:41:05 +02:00
commit 98723d25d9
No known key found for this signature in database
4 changed files with 21 additions and 19 deletions

View file

@ -16,7 +16,8 @@ data "authentik_flow" "default-authentication-flow" {
slug = "default-authentication-flow"
}
data "authentik_scope_mapping" "default-scopes" {
data "authentik_property_mapping_provider_scope" "default-scopes" {
managed_list = [
"goauthentik.io/providers/oauth2/scope-email",
"goauthentik.io/providers/oauth2/scope-openid",
@ -33,7 +34,7 @@ resource "authentik_provider_oauth2" "provider_oidc" {
authorization_flow = data.authentik_flow.default-authorization-flow.id
authentication_flow = data.authentik_flow.default-authentication-flow.id
redirect_uris = var.redirect_uris
property_mappings = data.authentik_scope_mapping.default-scopes.ids
property_mappings = data.authentik_property_mapping_provider_scope.default-scopes.ids
sub_mode = var.sub_mode
signing_key = var.oidc_signing_key
}