Home | Documentation |
wstapi.c File Reference
updated Thu Apr 15 2021 by Robert van Engelen
|
#include "wstapi.h"
Functions | |
SOAP_FMAC1 int SOAP_FMAC2 | soap_wst_request_saml_token (struct soap *soap, const char *endpoint, int soapver, const char *applyto, const char *username, const char *password, saml1__AssertionType **saml1, saml2__AssertionType **saml2) |
Request SAML 1.0 or SAML 2.0 token. Verifies the SAML signature, which requires soap->cafile to be set. Does not verify the conditions of the SAML token, such as NotBefore and NotOnOrAfter, which has to be done explicitly as shown in the documentation. More... | |
SOAP_FMAC1 int SOAP_FMAC2 | soap_wst_request_psha1_token (struct soap *soap, const char *endpoint, int soapver, const char *applyto, const char *username, const char *password, char *psha1, size_t psha1len) |
Request PSHA1 token. More... | |
Variables | |
const char * | soap_wst_rst_action = SOAP_NAMESPACE_OF_wst "/RST/Issue" |
const char * | soap_wst_rstr_action = SOAP_NAMESPACE_OF_wst "/RSTR/Issue" |
const char * | soap_wst_rstc_action = SOAP_NAMESPACE_OF_wst "/RSTC/Issue" |
const char * | soap_wst_rstrc_action = SOAP_NAMESPACE_OF_wst "/RSTRC/IssueFinal" |
struct Namespace | soap11_namespaces [] |
struct Namespace | soap12_namespaces [] |
SOAP_FMAC1 int SOAP_FMAC2 soap_wst_request_psha1_token | ( | struct soap * | soap, |
const char * | endpoint, | ||
int | soapver, | ||
const char * | applyto, | ||
const char * | username, | ||
const char * | password, | ||
char * | psha1, | ||
size_t | psha1len | ||
) |
Request PSHA1 token.
soap | context |
endpoint | service endpoint URL (send to) |
soapver | SOAP version 1 = SOAP 1.1, 2 = SOAP 1.2 (recommended) |
applyto | service domain |
username | authentication or NULL |
password | authentication or NULL |
psha1 | filled with the PSHA1 result token of psa1len bytes |
psha1len | token size in bytes |
SOAP_FMAC1 int SOAP_FMAC2 soap_wst_request_saml_token | ( | struct soap * | soap, |
const char * | endpoint, | ||
int | soapver, | ||
const char * | applyto, | ||
const char * | username, | ||
const char * | password, | ||
saml1__AssertionType ** | saml1, | ||
saml2__AssertionType ** | saml2 | ||
) |
Request SAML 1.0 or SAML 2.0 token. Verifies the SAML signature, which requires soap->cafile to be set. Does not verify the conditions of the SAML token, such as NotBefore and NotOnOrAfter, which has to be done explicitly as shown in the documentation.
soap | context |
endpoint | service endpoint URL (send to) |
soapver | SOAP version 1 = SOAP 1.1, 2 = SOAP 1.2 (recommended) |
applyto | service domain |
username | authentication or NULL |
password | authentication or NULL |
saml1 | if non-NULL, requests SAML 1.0 and upon return points to a pointer that is set to the SAML 1.0 assertion received |
saml2 | if non-NULL, requests SAML 2.0 and upon return points to a pointer that is set to the SAML 2.0 assertion received |
struct Namespace soap11_namespaces[] |
struct Namespace soap12_namespaces[] |
const char* soap_wst_rst_action = SOAP_NAMESPACE_OF_wst "/RST/Issue" |
const char* soap_wst_rstc_action = SOAP_NAMESPACE_OF_wst "/RSTC/Issue" |
const char* soap_wst_rstr_action = SOAP_NAMESPACE_OF_wst "/RSTR/Issue" |
const char* soap_wst_rstrc_action = SOAP_NAMESPACE_OF_wst "/RSTRC/IssueFinal" |