Sm_PolicyApi_AddRedirectURLToSAML1xScheme()

The function adds and updates a redirect URL setting in a SAML 1.x authentication scheme.
sm1252sp1
The function adds and updates a redirect URL setting in a SAML 1.x authentication scheme.
Syntax
int SM_EXTERN Sm_PolicyApi_AddRedirectURLToSAML1xScheme(
        void*        pSessionHandle,
        const char*  pszSchemeOid,
        int          iTypeURL,
        char*        URL,
        int          redirectMode
);
Parameters
  • pSessionHandle
    [in] A pointer to an internal Policy Management API data structure
    The structure holds information about the administrator session and the client session.
  • pszSchemeOid
    [in] A null-terminated string containing the object identifier of the authentication scheme being updated
  • iTypeUrl
    [in] An integer specifying the type of redirect URL, defined in Sm_PolicyAPI_SAML1_STATUS_REDIRECT_URL_TYPE_t as follows:
    • Sm_PolicyAPI_SAML1_STATUS_REDIRECT_URL_USER_NOT_FOUND_TYPE = 0
    • Sm_PolicyAPI_SAML1_STATUS_REDIRECT_URL_INVALID_SSO = 1
    • Sm_PolicyAPI_SAML1_STATUS_REDIRECT_URL_UNACCEPTABLE_USER_CREDENTIALS = 2
  • URL
    [in] A pointer to the input redirect URL
  • redirectMode
    [in] An integer specifying the input redirect mode, which is either 0 for 302 No Data, or 1 for Http-Post.
Return Values
  • Sm_PolicyApi_Success The action was completed successfully
  • Sm_PolicyApi_Failure The action was unsuccessful
  • Sm_PolicyApi_InvalidHandle
    No valid initialization before this call
  • Sm_PolicyApi_SchemeNotFound The authentication scheme corresponding to the OID was not found, or was not a SAML 1.x authentication scheme
  • Sm_PolicyApi_InvalidOid The OID of the authentication scheme is NULL