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

issue with onelogin_saml_apps parameters block #45

Open
pmoosh opened this issue Apr 6, 2021 · 0 comments
Open

issue with onelogin_saml_apps parameters block #45

pmoosh opened this issue Apr 6, 2021 · 0 comments

Comments

@pmoosh
Copy link

pmoosh commented Apr 6, 2021

I am trying to set a parameter for a saml app:

resource onelogin_saml_apps this {
  connector_id = 110016 # SAML 2.0 Advanced connector ID
  name =  "testonelogin"
  description = "test"

  configuration = {
      signature_algorithm = null
      saml_notonorafter = "3"
      consumer_url = "${local.base_url}/saml2/acs/"
      login = "${local.base_url}/saml2/acs/"
      audience        = "http://test.com/"
      generate_attribute_value_tags = "0"
      saml_initiater_id = "0"
      saml_notbefore = "3"
      saml_issuer_type = "0"
      saml_sign_element = "0"
      encrypt_assertion = "0"

      saml_sessionnotonorafter = "1440"
      saml_encryption_method_id = "0"
      recipient = "${local.base_url}/saml2/acs/"
      validator = ".*"
      relaystate = "${local.base_url}/"
      saml_nameid_format_id = 0
  }
  parameters {
      include_in_saml_assertion = true
      param_key_name = "urn:mace:dir:attribute-def:cn"
      user_attribute_mappings = "firstname"
    }
}

I might be doing it wrong but for some reason it does not set the user_attribute_mappings
Also when I run apply twice terraform crashes ( I guess it is not supported - just wish it wouldn't crash)....
terraform version used: 0.14.3 and 0.14.9

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

No branches or pull requests

1 participant