hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.52k stars 4.6k forks source link

Support for OpenID auth_settings in azurerm_app_service #15673

Open schmocker opened 2 years ago

schmocker commented 2 years ago

Community Note

Description

OpenID is available as Identity Provider in the Azure Portal for App Service under Authentication but not with Terraform. Please provide the corresponding settings.

This would be very helpful while using App Services with external Identity Providers like KeyCloak.

New or Affected Resource(s)

Potential Terraform Configuration

resource "azurerm_app_service" "app" {
  name = "myapp-as"
  ...

  auth_settings {
     enabled = true
     openid {
       metadata_url = "..."
       issuer_url = "..."
       authorization_endpoint = "..."
       token_endpoint = "..."
       client_id = "..."
       client_secret = "..."
       ...
     }
     unauthenticated_client_action = "RedirectToLoginPage"
     default_provider = "OpenId"
  }
}

References

schmocker commented 1 year ago

now the same issue for the new azurerm_linux_web_app @manicminer: any plans to prioritise this feature? It's on Azure quite a while and I really like the idea of supporting OpenID besides company based auth methods...