Sm_PolicyApi_AddAttributeToSAMLScheme()
The function adds an attribute that can be requested from the configured Attribute Service to a SAML 2.0 authentication scheme.
casso127
The function adds an attribute that can be requested from the configured Attribute Service to a SAML 2.0 authentication scheme.
Syntax
int SM_EXTERN Sm_PolicyApi_AddAttributeToSAMLScheme(void*pHandle,const Sm_PolicyApi_Scheme_t* pstructScheme,const Sm_PolicyApi_SAMLRequesterAttr_t*pAttr);
Parameter | I/O | Description |
pHandle
| I | A pointer to an internal Policy Management API data structure. The structure holds information about the administrator session and the client session. |
pstructScheme
| I | A pointer to a completely filled-in structure for a SAML 2.0 Scheme. |
pAttr
| I | A pointer to the Sm_PolicyApi_SAMLRequesterAttr_t structure containing the attribute to be added. |
Returns
- Sm_PolicyApi_SuccessThe attribute was added successfully
- Sm_PolicyApi_FailureThe attribute was not added successfully
- Sm_PolicyApi_InvalidHandleNo valid initialization before this call
- Sm_PolicyApi_NoSessionNo valid administrator session
- Sm_PolicyApi_NoPrivilegeThe administrator does not have the permission to add an attribute to a SAML Requester
- Sm_PolicyApi_SAMLIDP_IncorrectParametersSupplies SAML provided properties are incomplete or incorrect
- Sm_PolicyApi_DuplicateAttributeAn attribute already exists with the same Name and NameFormat.