Class UsernameClaimMapping

    • Constructor Detail

      • UsernameClaimMapping

        public UsernameClaimMapping()
        No args constructor for use in serialization
    • Method Detail

      • getClaim

        public String getClaim()
        claim is a required field that configures the JWT token claim whose value is assigned to the cluster identity field associated with this mapping.


        claim must not be an empty string ("") and must not exceed 256 characters.

      • setClaim

        public void setClaim​(String claim)
        claim is a required field that configures the JWT token claim whose value is assigned to the cluster identity field associated with this mapping.


        claim must not be an empty string ("") and must not exceed 256 characters.

      • getPrefixPolicy

        public String getPrefixPolicy()
        prefixPolicy is an optional field that configures how a prefix should be applied to the value of the JWT claim specified in the 'claim' field.


        Allowed values are 'Prefix', 'NoPrefix', and omitted (not provided or an empty string).


        When set to 'Prefix', the value specified in the prefix field will be prepended to the value of the JWT claim. The prefix field must be set when prefixPolicy is 'Prefix'.


        When set to 'NoPrefix', no prefix will be prepended to the value of the JWT claim.


        When omitted, this means no opinion and the platform is left to choose any prefixes that are applied which is subject to change over time. Currently, the platform prepends `{issuerURL}#` to the value of the JWT claim when the claim is not 'email'. As an example, consider the following scenario:

        `prefix` is unset, `issuerURL` is set to `https://myoidc.tld`,

        the JWT claims include "username":"userA" and "email":"userA@myoidc.tld",

        and `claim` is set to:

        - "username": the mapped value will be "https://myoidc.tld#userA"

        - "email": the mapped value will be "userA@myoidc.tld"

      • setPrefixPolicy

        public void setPrefixPolicy​(String prefixPolicy)
        prefixPolicy is an optional field that configures how a prefix should be applied to the value of the JWT claim specified in the 'claim' field.


        Allowed values are 'Prefix', 'NoPrefix', and omitted (not provided or an empty string).


        When set to 'Prefix', the value specified in the prefix field will be prepended to the value of the JWT claim. The prefix field must be set when prefixPolicy is 'Prefix'.


        When set to 'NoPrefix', no prefix will be prepended to the value of the JWT claim.


        When omitted, this means no opinion and the platform is left to choose any prefixes that are applied which is subject to change over time. Currently, the platform prepends `{issuerURL}#` to the value of the JWT claim when the claim is not 'email'. As an example, consider the following scenario:

        `prefix` is unset, `issuerURL` is set to `https://myoidc.tld`,

        the JWT claims include "username":"userA" and "email":"userA@myoidc.tld",

        and `claim` is set to:

        - "username": the mapped value will be "https://myoidc.tld#userA"

        - "email": the mapped value will be "userA@myoidc.tld"

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)