File tree Expand file tree Collapse file tree
terraform/_modules/authentik/oauth2_app Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ resource "authentik_provider_oauth2" "oauth2" {
88 invalidation_flow = data. authentik_flow . default-provider-invalidation-flow . id
99 access_token_validity = " minutes=10"
1010 property_mappings = var. oauth2_values . property_mappings
11+ grant_types = var. oauth2_values . grant_types
1112 allowed_redirect_uris = var. oauth2_values . allowed_redirect_uris
1213 signing_key = data. authentik_certificate_key_pair . generated . id
1314 lifecycle {
Original file line number Diff line number Diff line change @@ -17,9 +17,13 @@ variable "oauth2_values" {
1717 client_secret = optional (string )
1818 client_type = optional (string )
1919 property_mappings = optional (list (string ))
20+ grant_types = optional (list (string ), [" authorization_code" , " refresh_token" ])
2021 allowed_redirect_uris = list (object ({
2122 matching_mode = string
2223 url = string
24+ # authentik's API stamps every redirect URI with this; set it so we don't
25+ # perpetually diff it back to null.
26+ redirect_uri_type = optional (string , " authorization" )
2327 }))
2428 })
2529}
You can’t perform that action at this time.
0 commit comments