Keyword Replacements
Last Updated: 09 Feb 2021
The following keyword replacements can be used in implementations using the SAML Account Manager and OAuth Account Manager.
SAML Account Manager
Keyword Replacement | Information shown |
---|---|
%globals_session_saml_attributes% | The entire attributes data as a JSON array.. |
%globals_session_saml_attributes_<attrtibute_name>% | Specific value from the attributes JSON array. For example, %globals_session_saml_attributes_first_name% |
OAuth Account Manager
Keyword Replacement | Information shown |
---|---|
%globals_session_oauth_profile% | The entire profile data as a JSON array.. |
%globals_session_oauth_profile_<profile_name>% | Specific value from the profile JSON array. For example, %globals_session_oauth_profile_first_name% |
Examples
For example, if the JSON data returned for a SAML Account Manager is as follows:
{"first_name":"John", "last_name":"Doe", "email":"jd@example.com"}
We can use the following keyword to extract the first_name value of John by using:%globals_session_saml_attributes_first_name%
If a JSON key has non-alphanumeric characters in it (applies to all characters except for "_", "-", and "."), they will need to get replaced with underscores when using the SAML keyword to print the value. For example, if the JSON attribute has the following format:
{"http://www.site.com/name":"John"}
The keyword to extract that value would be: %globals_session_saml_attributes_http___www.site.com_name%
Same concept applies to the keywords for the OAuth Account Manager, just replace "saml_attributes" with "oauth_profile" in the keyword.
The Latest
Tutorials
- 02 Jul 2019
- 28 May 2019
- 30 Jul 2018
- 12 Jul 2018
-
How To Create an Upcoming Events Listing Using a Calendar Search Page
18 Jun 2018 - 19 Apr 2018
Let Us Know What You Think
Let us know if you spot any errors or if you have any ideas on how we can improve the Matrix Community Website.
Contact Squiz for Demo
Let us show you the true power of Squiz Matrix by giving you a personalised demonstration.