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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for token issuance policies #1364

Open
smokedlinq opened this issue May 2, 2024 · 0 comments
Open

Add support for token issuance policies #1364

smokedlinq opened this issue May 2, 2024 · 0 comments

Comments

@smokedlinq
Copy link

smokedlinq commented May 2, 2024

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritise this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritise the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Add support for the tokenIssuancePolicies API so that SAML applications can configure how tokens are signed. This may require the ability to create these policies to be assigned to the application as it looks like each application gets its own instance of a policies/tokenIssuancePolicies.

New or Affected Resource(s)

  • azuread_service_principal

Potential Terraform Configuration

resource "azuread_service_principal" "example" {
  token_issuance_policy {
    signing_algorithm             = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
    token_response_signing_policy = "ResponseAndToken"
  }
}

# Alternative adding it to the saml_single_sign_on block
resource "azuread_service_principal" "example" {
  saml_single_sign_on {
    token_issuance_policy = {
      signing_algorithm             = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
      token_response_signing_policy = "ResponseAndToken"
    }
  }
}

# Alternative as a separate resource, though you can only have one I believe so this may not make sense
resource "azuread_service_principal_token_issuance_policy" "example" {
  id                            = azuread_service_principal.example.id
  signing_algorithm             = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
  token_response_signing_policy = "ResponseAndToken"
}

References

@smokedlinq smokedlinq changed the title Add support for application token issuance policies Add support for token issuance policies May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants