Fix authentik config
This commit is contained in:
parent
979a386831
commit
424e1db07f
9 changed files with 17 additions and 7 deletions
modules/services
|
@ -2,10 +2,14 @@ data "authentik_flow" "default_authorization_flow" {
|
|||
slug = "default-provider-authorization-implicit-consent"
|
||||
}
|
||||
|
||||
data "authentik_certificate_key_pair" "default" {
|
||||
data "authentik_certificate_key_pair" "ecdsa" {
|
||||
name = "auth.serguzim.me"
|
||||
}
|
||||
|
||||
data "authentik_certificate_key_pair" "rsa" {
|
||||
name = "authentik Self-signed Certificate"
|
||||
}
|
||||
|
||||
data "authentik_property_mapping_provider_scope" "default_scopes" {
|
||||
managed_list = [
|
||||
"goauthentik.io/providers/oauth2/scope-email",
|
||||
|
@ -58,7 +62,9 @@ resource "authentik_provider_oauth2" "service_providers" {
|
|||
data.authentik_property_mapping_provider_scope.default_scopes.ids,
|
||||
each.key == "minio" ? [authentik_property_mapping_provider_scope.minio.id] : []
|
||||
])
|
||||
signing_key = data.authentik_certificate_key_pair.default.id
|
||||
signing_key = (each.value.auth_cert == "rsa" ?
|
||||
data.authentik_certificate_key_pair.rsa.id :
|
||||
data.authentik_certificate_key_pair.ecdsa.id)
|
||||
}
|
||||
|
||||
resource "authentik_application" "service_applications" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue