Skip to content

Commit

Permalink
add option to define redirect_uris
Browse files Browse the repository at this point in the history
  • Loading branch information
rndmh3ro committed Jan 22, 2024
1 parent 4da5527 commit 1b77252
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 1b77252

Please sign in to comment.