Amster create SAML2 entity using env variables

This topic contains 1 voice and has 0 replies.

  • Author
  • #24719

    I am trying to create a amster script to create a saml2entity for different environments were i can substitute the various urls and the entity id in the metadata with values in a env config file. I created a json envconfig file with the values and then in the amster create statement i reference the env variables with &{entityId} example below

    create Saml2Entity --realm / --id entityId --body '{"metadata" : "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\" standalone=\\"yes\\"?><EntityDescriptor entityID=\\"&{entityId}\\"..........

    It looks like it creates it but i get an error when trying to access the metadata

    Entity config "amIdp" under realm "/" has invalid syntax.

    I think it isn’t working because of the ampersand in &{entityId} in the xml, i tried encoding the ampersand but that doesn’t work either . I have set the env file using envconfig <envConfigFileName>

    Any ideas how else i can pass the env variables to the create statement?

    • This topic was modified 5 months, 1 week ago by  jm89.
    • This topic was modified 5 months, 1 week ago by  jm89.
    • This topic was modified 5 months, 1 week ago by  jm89.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

©2019 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?