Skip to content

Commit

Permalink
Merge pull request #18 from T-Systems-MMS/application_passwords
Browse files Browse the repository at this point in the history
add option to define redirect_uris
  • Loading branch information
michaelamattes authored Aug 28, 2024
2 parents 4da5527 + 1b77252 commit 808b2dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ resource "azuread_application" "application" {
template_id = local.application[each.key].template_id
terms_of_service_url = local.application[each.key].terms_of_service_url

dynamic "web" {
for_each = local.application[each.key].web != null ? ["true"] : []
content {
redirect_uris = local.application[each.key].web.redirect_uris
}
}

dynamic "required_resource_access" {
for_each = local.application[each.key].required_resource_access

Expand Down
6 changes: 5 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ locals {
public_client = {}
required_resource_access = {}
single_page_application = {}
web = {}
web = {
homepage_url = null
logout_url = null
redirect_uris = []
}
tags = null
}
application_password = {
Expand Down

0 comments on commit 808b2dd

Please sign in to comment.