Produces an encrypted token of session and other information that can be shared between standard SiteMinder Web Agents and custom agents. The mutual access to this information allows a custom agent to participate in a single sign-on environment with a standard SiteMinder Web Agent.
Syntax
int SM_EXTERN Sm_AgentApi_CreateSSOToken ( const void* pHandle, Sm_AgentApi_Session_t* pSession, long nNumAttributes, Sm_AgentApi_Attribute_t* pTokenAttributes, long* pNumSSOTokenLength, char* lpszSSOToken );
Parameter |
I/O |
Description |
---|---|---|
pHandle |
I |
Agent API session handle returned in parameter ppHandle of Sm_AgentApi_Init(). |
pSession |
I |
Session information returned by the Sm_AgentApi_Login() call. |
nNum |
I |
The number of attributes to include in the token. The attributes are specified in the parameter pTokenAttributes. |
pToken |
I |
The user attributes to include in the token. Valid values:
Any other attribute is ignored. The fields in the Sm_AgentApi_Attribute_t structure that apply to this function are:
|
pNumSSOToken |
I, O |
The length of the lpszSSOToken buffer passed in to receive the token. The maximum size is specified by SSO_TOKEN_MAX_SIZE, defined in SmAgentAPI.h. Allow space for the null-terminator character. On output, this parameter is set to the actual length of the returned token, including the null-terminator character. |
lpszSSOToken |
O |
The token returned from this function. Write this token to the SMSESSION cookie. |
Return Values
Remarks
This function associates the user attribute information specified in the pTokenAttributes parameter with session and other attribute information returned from the call to Sm_AgentApi_Login(). The information in the resulting token can be shared between standard SiteMinder Web Agents and custom agents, allowing single sign-on operations between the standard and custom agents.
This call does not allocate any memory.
To decode token information, call Sm_AgentApi_DecodeSSOToken().
Copyright © 2014 CA.
All rights reserved.
|
|