Skip to content

Commit 4fabf5e

Browse files
committed
fix(authentik): grant_types
1 parent 6ecb560 commit 4fabf5e

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

terraform/_modules/authentik/oauth2_app/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 {

terraform/_modules/authentik/oauth2_app/vars.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)