Skip to content

Commit

Permalink
Add source property mappings, rename provider ones (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu authored Aug 14, 2024
2 parents b19d227 + db8828f commit 19e6a19
Show file tree
Hide file tree
Showing 74 changed files with 1,258 additions and 789 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
page_title: "authentik_property_mapping_rac Data Source - terraform-provider-authentik"
page_title: "authentik_property_mapping_provider_rac Data Source - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Get RAC Property mappings
Get RAC Provider Property mappings
---

# authentik_property_mapping_rac (Data Source)
# authentik_property_mapping_provider_rac (Data Source)

Get RAC Property mappings
Get RAC Provider Property mappings



Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
page_title: "authentik_property_mapping_radius Data Source - terraform-provider-authentik"
page_title: "authentik_property_mapping_provider_radius Data Source - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Get Radius Property mappings
Get Radius Provider Property mappings
---

# authentik_property_mapping_radius (Data Source)
# authentik_property_mapping_provider_radius (Data Source)

Get Radius Property mappings
Get Radius Provider Property mappings



Expand Down
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
---
page_title: "authentik_property_mapping_saml Data Source - terraform-provider-authentik"
page_title: "authentik_property_mapping_provider_saml Data Source - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Get SAML Property mappings
Get SAML Provider Property mappings
---

# authentik_property_mapping_saml (Data Source)
# authentik_property_mapping_provider_saml (Data Source)

Get SAML Property mappings
Get SAML Provider Property mappings

## Example Usage

```terraform
# To get the ID of a SAML Property mapping
# To get the ID of a SAML Provider Property mapping
data "authentik_property_mapping_saml" "test" {
data "authentik_property_mapping_provider_saml" "test" {
managed = "goauthentik.io/providers/saml/upn"
}
# Then use `data.authentik_property_mapping_saml.test.id`
# Then use `data.authentik_property_mapping_provider_saml.test.id`
# Or, to get the IDs of multiple mappings
data "authentik_property_mapping_saml" "test" {
data "authentik_property_mapping_provider_saml" "test" {
managed_list = [
"goauthentik.io/providers/saml/upn",
"goauthentik.io/providers/saml/name"
]
}
# Then use data.authentik_property_mapping_saml.test.ids
# Then use data.authentik_property_mapping_provider_saml.test.ids
```

<!-- schema generated by tfplugindocs -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
---
page_title: "authentik_property_mapping_scim Data Source - terraform-provider-authentik"
page_title: "authentik_property_mapping_provider_scim Data Source - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Get SCIM Property mappings
Get SCIM Provider Property mappings
---

# authentik_property_mapping_scim (Data Source)
# authentik_property_mapping_provider_scim (Data Source)

Get SCIM Property mappings
Get SCIM Provider Property mappings

## Example Usage

```terraform
# To get the ID of a SCIM Property mapping
# To get the ID of a SCIM Provider Property mapping
data "authentik_property_mapping_scim" "test" {
data "authentik_property_mapping_provider_scim" "test" {
managed = "goauthentik.io/providers/scim/user"
}
# Then use `data.authentik_property_mapping_scim.test.id`
# Then use `data.authentik_property_mapping_provider_scim.test.id`
# Or, to get the IDs of multiple mappings
data "authentik_property_mapping_scim" "test" {
data "authentik_property_mapping_provider_scim" "test" {
managed_list = [
"goauthentik.io/providers/scim/user",
"goauthentik.io/providers/scim/group"
]
}
# Then use data.authentik_property_mapping_scim.test.ids
# Then use data.authentik_property_mapping_provider_scim.test.ids
```

<!-- schema generated by tfplugindocs -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
---
page_title: "authentik_scope_mapping Data Source - terraform-provider-authentik"
page_title: "authentik_property_mapping_provider_scope Data Source - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Get OAuth Scope mappings
Get OAuth Provider Scope Property mappings
---

# authentik_scope_mapping (Data Source)
# authentik_property_mapping_provider_scope (Data Source)

Get OAuth Scope mappings
Get OAuth Provider Scope Property mappings

## Example Usage

```terraform
# To get the ID of a scope mapping
data "authentik_scope_mapping" "test" {
data "authentik_property_mapping_provider_scope" "test" {
# Search by name, by managed field or by scope_name
# name = "authentik default OAuth Mapping: Proxy outpost"
managed = "goauthentik.io/providers/proxy/scope-proxy"
}
# Then use `data.authentik_scope_mapping.test.id`
# Then use `data.authentik_property_mapping_provider_scope.test.id`
# Or, to get the IDs of multiple mappings
data "authentik_scope_mapping" "test" {
data "authentik_property_mapping_provider_scope" "test" {
managed_list = [
"goauthentik.io/providers/oauth2/scope-email",
"goauthentik.io/providers/oauth2/scope-openid"
]
}
# Then use data.authentik_scope_mapping.test.ids
# Then use data.authentik_property_mapping_provider_scope.test.ids
```

<!-- schema generated by tfplugindocs -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
---
page_title: "authentik_property_mapping_ldap Data Source - terraform-provider-authentik"
page_title: "authentik_property_mapping_source_ldap Data Source - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Get LDAP Property mappings
Get LDAP Source Property mappings
---

# authentik_property_mapping_ldap (Data Source)
# authentik_property_mapping_source_ldap (Data Source)

Get LDAP Property mappings
Get LDAP Source Property mappings

## Example Usage

```terraform
# To get the ID of a LDAP Property mapping
# To get the ID of a LDAP Source Property mapping
data "authentik_property_mapping_ldap" "test" {
data "authentik_property_mapping_source_ldap" "test" {
managed = "goauthentik.io/sources/ldap/default-name"
}
# Then use `data.authentik_property_mapping_ldap.test.id`
# Then use `data.authentik_property_mapping_source_ldap.test.id`
# Or, to get the IDs of multiple mappings
data "authentik_property_mapping_ldap" "test" {
data "authentik_property_mapping_source_ldap" "test" {
managed_list = [
"goauthentik.io/sources/ldap/default-name",
"goauthentik.io/sources/ldap/default-mail"
]
}
# Then use data.authentik_property_mapping_ldap.test.ids
# Then use data.authentik_property_mapping_source_ldap.test.ids
```

<!-- schema generated by tfplugindocs -->
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/property_mapping_notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
page_title: "authentik_property_mapping_notification Resource - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Manage Notification Property mappings
---

# authentik_property_mapping_notification (Resource)


Manage Notification Property mappings

## Example Usage

Expand Down
24 changes: 24 additions & 0 deletions docs/resources/property_mapping_provider_google_workspace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
page_title: "authentik_property_mapping_provider_google_workspace Resource - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Manage Google Workspace Provider Property mappings
---

# authentik_property_mapping_provider_google_workspace (Resource)

Manage Google Workspace Provider Property mappings



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `expression` (String)
- `name` (String)

### Read-Only

- `id` (String) The ID of this resource.
24 changes: 24 additions & 0 deletions docs/resources/property_mapping_provider_microsoft_entra.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
page_title: "authentik_property_mapping_provider_microsoft_entra Resource - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Manage Microsoft Entra Provider Property mappings
---

# authentik_property_mapping_provider_microsoft_entra (Resource)

Manage Microsoft Entra Provider Property mappings



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `expression` (String)
- `name` (String)

### Read-Only

- `id` (String) The ID of this resource.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
page_title: "authentik_property_mapping_rac Resource - terraform-provider-authentik"
page_title: "authentik_property_mapping_provider_rac Resource - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Manage RAC Provider Property mappings
---

# authentik_property_mapping_rac (Resource)

# authentik_property_mapping_provider_rac (Resource)

Manage RAC Provider Property mappings



Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
page_title: "authentik_property_mapping_microsoft_entra Resource - terraform-provider-authentik"
page_title: "authentik_property_mapping_provider_radius Resource - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Manage Radius Provider Property mappings
---

# authentik_property_mapping_microsoft_entra (Resource)

# authentik_property_mapping_provider_radius (Resource)

Manage Radius Provider Property mappings



Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
page_title: "authentik_property_mapping_saml Resource - terraform-provider-authentik"
page_title: "authentik_property_mapping_provider_saml Resource - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Manage SAML Provider Property mappings
---

# authentik_property_mapping_saml (Resource)

# authentik_property_mapping_provider_saml (Resource)

Manage SAML Provider Property mappings

## Example Usage

```terraform
# Create a custom SAML property mapping
# Create a custom SAML provider property mapping
resource "authentik_property_mapping_saml" "saml-aws-rolessessionname" {
resource "authentik_property_mapping_provider_saml" "saml-aws-rolessessionname" {
name = "SAML AWS RoleSessionName"
saml_name = "https://aws.amazon.com/SAML/Attributes/RoleSessionName"
expression = "return user.email"
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/property_mapping_provider_scim.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
page_title: "authentik_property_mapping_provider_scim Resource - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Manage SCIM Provider Property mappings
---

# authentik_property_mapping_provider_scim (Resource)


Manage SCIM Provider Property mappings



Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
page_title: "authentik_scope_mapping Resource - terraform-provider-authentik"
page_title: "authentik_property_mapping_provider_scope Resource - terraform-provider-authentik"
subcategory: "Customization"
description: |-
Manage Scope Provider Property mappings
---

# authentik_scope_mapping (Resource)

# authentik_property_mapping_provider_scope (Resource)

Manage Scope Provider Property mappings

## Example Usage

```terraform
# Create a scope mapping
resource "authentik_scope_mapping" "name" {
resource "authentik_property_mapping_provider_scope" "name" {
name = "minio"
scope_name = "minio"
expression = <<EOF
Expand Down
Loading

0 comments on commit 19e6a19

Please sign in to comment.