Merge pull request 'Set OAuth2 grant_types so authorization_code login works' (#12) from benvin/oauth2-grant-types into main
ci/woodpecker/push/apply Pipeline was successful
ci/woodpecker/push/apply Pipeline was successful
Reviewed-on: #12
This commit was merged in pull request #12.
This commit is contained in:
@@ -159,6 +159,7 @@ resource "authentik_provider_oauth2" "this" {
|
||||
signing_key = each.value.signing_key
|
||||
access_token_validity = each.value.access_token_validity
|
||||
allowed_redirect_uris = each.value.redirect_uris
|
||||
grant_types = each.value.grant_types
|
||||
}
|
||||
|
||||
resource "authentik_provider_ldap" "this" {
|
||||
|
||||
@@ -67,6 +67,12 @@ variable "providers_oauth2" {
|
||||
# Managed identifiers of scope property mappings (e.g.
|
||||
# goauthentik.io/providers/oauth2/scope-openid). Resolved to ids.
|
||||
scope_mappings = optional(list(string), [])
|
||||
# OAuth2 grant types the provider permits. Authentik 2026.5 added this as an
|
||||
# explicit allow-list on the provider (models default = empty); an empty list
|
||||
# rejects every authorize request with "invalid_request / The request is
|
||||
# otherwise malformed". Default to the standard confidential web-app set so
|
||||
# authorization_code (login) and refresh_token (offline access) work.
|
||||
grant_types = optional(list(string), ["authorization_code", "refresh_token"])
|
||||
# allowed_redirect_uris is list(map(string)); the API always stores a
|
||||
# redirect_uri_type key, so it must be set here or every plan drifts.
|
||||
redirect_uris = optional(list(object({
|
||||
|
||||
Reference in New Issue
Block a user