Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. values: Used when defining fixed strings or values. In this case the attribute_source item will must be either a string or an array of strings

    Tip
    titleExample


    Setting a single fixed value attribute:

    Code Block
    {
      "my_fixed_attribute": {
        "values": "this is a fixed value"
      }
    }
    Setting a
    multi
    -value attribute:
    Code Block
    {
      "my_multi_value_attribute": {
        "values": ["this is value 1", "this is value 2"]
      }
    }



  2. copy_from: Used when copying values from either SAML or RADIUS attributes in the Moonshot reply. The attribute_source item will be either a string that contains the OID-based name of the attribute, or an array of strings denoting multiple attributes in the Moonshot reply in order of precedence

    Tip
    titleExample

    Copying a single attribute value from the RADIUS User-Name attribute:

    Code Block
    {
      "user_name": {
        "copy_from": "urn:ietf:params:gss:radius-attribute 1"
      }
    }

    Copying an attribute value from a series of attributes in declining precedence (RADIUS User-Name first, then the SAML attribute uid):

    Code Block
    {
      "user_name": {
        "copy_from": ["urn:ietf:params:gss:radius-attribute 1", 
          "urn:ietf:params:gss:federated-saml-attribute urn:oasis:names:tc:SAML:2.0:attrname-format:uri urn:oid:0.9.2342.19200300.100.1.1"]
      }
    }



...