benschubert.infrastructure.authentik_propertymappings_scope module – Allows administration of Authentik scope propertymappings
Note
This module is part of the benschubert.infrastructure collection (version 0.0.1).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install benschubert.infrastructure
.
To use it in a playbook, specify: benschubert.infrastructure.authentik_propertymappings_scope
.
Synopsis
This module allows the administration of Authentik scope propertymappings via the Authentik API.
See https://docs.goauthentik.io/docs/add-secure-apps/providers/property-mappings/
Parameters
Parameter |
Comments |
---|---|
The token used to authenticate against the Authentik server |
|
The URL at which to contact the Authentik server |
|
PEM formatted file that contains a CA certificate to be used for validation |
|
The configuration for the specified group |
|
Describe what this scope is for |
|
The actual implementation |
|
The name of the scope as shown in Authentik |
|
The name of the scope as claimed by the client |
|
Whether the entity should exist or not Choices:
|
|
The timeout to set when contacting the Authentik Server. If your server is slow to respond, it might be necessary to bump this Default: |
|
If false, SSL certificates will not be validated. This should only set to false used on personally controlled sites using self-signed certificates. Choices:
|
Examples
- name: Create a scope named 'nextcloud_quota'
benschubert.infrastructure.authentik_propertymappings_scope:
authentik_token: <my-secret-token>
authentik_url: https://authentik.test/
scope:
name: Nextcloud quota
scope_name: nextcloud_quota
description: Scope representing available quota for Nextcloud usage
expression: "return {'quota': user.group_attributes().get('nextcloud_quota', '10 GB')}"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The information returned by the Authentik API Returned: always Sample: |