fix
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
data "kubernetes_secret_v1" "authentik" {
|
||||
metadata {
|
||||
name = "authentik"
|
||||
namespace = "${var.domain}-auth"
|
||||
}
|
||||
}
|
||||
|
||||
data "authentik_property_mapping_scim" "user" {
|
||||
managed = "goauthentik.io/providers/scim/user"
|
||||
}
|
||||
@@ -14,6 +21,16 @@ resource "authentik_provider_scim" "scim" {
|
||||
property_mappings_group = [data.authentik_property_mapping_scim.group.id]
|
||||
}
|
||||
|
||||
|
||||
// Work-around missing features in the provider
|
||||
locals {
|
||||
authentik-token = data.kubernetes_secret_v1.authentik.data["AUTHENTIK_BOOTSTRAP_TOKEN"]
|
||||
request_headers = {
|
||||
"Content-Type" = "application/json"
|
||||
Authorization = "Bearer ${local.authentik-token}"
|
||||
}
|
||||
}
|
||||
|
||||
provider "restapi" {
|
||||
uri = "http://authentik.${var.domain}-auth.svc/api/v3/"
|
||||
headers = local.request_headers
|
||||
|
||||
Reference in New Issue
Block a user