Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UserPropertyMappings and GroupPropertyMappings to OIDC (and other) sources #602

Open
JFrandon opened this issue Dec 10, 2024 · 0 comments · May be fixed by #605
Open

Add UserPropertyMappings and GroupPropertyMappings to OIDC (and other) sources #602

JFrandon opened this issue Dec 10, 2024 · 0 comments · May be fixed by #605

Comments

@JFrandon
Copy link

Hello,

I have a terraform file as follows:

resource "authentik_property_mapping_source_oauth" "this" {
    name = "Discord OAUTH Mapping"
    expression = file("${path.module}/discord_mapping.py")
}


resource "authentik_source_oauth" "discord" {
  name                = "discord"
  slug                = "discord"
  authentication_flow = authentik_flow.discord_auth.uuid
  enrollment_flow     = authentik_flow.discord_enrol.uuid
  additional_scopes   = "identify guilds guilds.members.read"
  provider_type   = "discord"
  consumer_key    = var.disc_consumer_key 
  consumer_secret = var.disc_consumer_secret
}

My goal is to be able to use the property mapping with the source.
After creating both resources with Terraform, i can link them in the UI (or with an API call)
image

The goauthentik/client-go supports setting those UserPropertyMappings and GroupPropertyMappings fields, so it would be a matter of updating internal/provider/resource_source_oauth.go

I am willing to contribute to a patch but I'm not sure what the contribution etiquette is for this repo.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant