Returns the single sign-on token from the specified Security Assertion Markup Language (SAML) assertion.
am_web_get_token_from_assertion() is used to retrieve the cookie sent by OpenSSO Enterprise in a SAML assertion.
#include "am_web.h" AM_WEB_EXPORT am_status_t am_web_get_token_from_assertion(char *assertion, char **token, void* agent_config);
This function takes the following parameters:
Pointer to the SAML assertion as an XML string.
Pointer to a pointer containing the single sign-on token identifier.
An agent configuration instance returned by am_web_get_agent_configuration(). This parameter should not be NULL.
This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):
If successful.
Otherwise.
The returned identifier should be freed using am_web_free().