Class SAMLIdentityProvider
Provides Identity Provider (IdP) support for web browser single sign-on.
Inherited Members
Namespace: ComponentSpace.SAML2
Assembly: ComponentSpace.Saml2.dll
Syntax
public static class SAMLIdentityProvider
Methods
CanSLO()
Indicates whether the identity provider can single logout to one or more service providers.
To single logout, one or more service providers must have successfully completed SSO and also support SLO.
Declaration
public static bool CanSLO()
Returns
| Type | Description |
|---|---|
| bool |
|
CanSLO(string)
Indicates whether the identity provider can single logout to a service provider.
To single logout, the service provider must have successfully completed SSO and also support SLO.
Declaration
public static bool CanSLO(string partnerSP)
Parameters
| Type | Name | Description |
|---|---|---|
| string | partnerSP | The partner service provider name. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetPartnersPendingResponse()
Gets the names of the partner service providers to which a single sign-on or logout response is pending.
Declaration
public static string[] GetPartnersPendingResponse()
Returns
| Type | Description |
|---|---|
| string[] | The names of the partner service providers or |
InitiateSLO(HttpResponse, string, string)
Initiates single logout from the identity provider to the service providers (ie. IdP-initiated SLO).
A logout request is sent to the service providers that are signed in.
Declaration
public static void InitiateSLO(HttpResponse httpResponse, string logoutReason, string relayState)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response. |
| string | logoutReason | The logout reason or |
| string | relayState | The relay state or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single logout fails. |
InitiateSLO(HttpResponseBase, string, string)
Initiates single logout from the identity provider to the service providers (ie. IdP-initiated SLO).
A logout request is sent to the service providers that are signed in.
Declaration
public static void InitiateSLO(HttpResponseBase httpResponse, string logoutReason, string relayState)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response. |
| string | logoutReason | The logout reason or |
| string | relayState | The relay state or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single logout fails. |
InitiateSSO(HttpResponse, string, SAMLAttribute[], string)
Initiates single sign-on from the identity provider to the service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponse httpResponse, string userName, SAMLAttribute[] attributes, string relayState)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| SAMLAttribute[] | attributes | The attributes to include in the SAML assertion or |
| string | relayState | The relay state (eg target URL) or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponse, string, SAMLAttribute[], string, string)
Initiates single sign-on from the identity provider to the specified service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponse httpResponse, string userName, SAMLAttribute[] attributes, string relayState, string partnerSP)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| SAMLAttribute[] | attributes | The attributes to include in the SAML assertion or |
| string | relayState | The relay state (eg target URL) or |
| string | partnerSP | The partner service provider name or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponse, string, SAMLAttribute[], string, string, string, string)
Initiates single sign-on from the identity provider to the specified service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponse httpResponse, string userName, SAMLAttribute[] attributes, string authnContext, string relayState, string partnerSP, string assertionConsumerServiceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| SAMLAttribute[] | attributes | The attributes to include in the SAML assertion or |
| string | authnContext | The authentication context identifying how the user was authenticated or |
| string | relayState | The relay state (eg target URL) or |
| string | partnerSP | The partner service provider name or |
| string | assertionConsumerServiceUrl | The assertion consumer service URL or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponse, string, IDictionary<string, string>, string)
Initiates single sign-on from the identity provider to the service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponse httpResponse, string userName, IDictionary<string, string> attributes, string relayState)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| IDictionary<string, string> | attributes | The attributes to include in the SAML assertion or |
| string | relayState | The relay state (eg target URL) or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponse, string, IDictionary<string, string>, string, string)
Initiates single sign-on from the identity provider to the specified service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponse httpResponse, string userName, IDictionary<string, string> attributes, string relayState, string partnerSP)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| IDictionary<string, string> | attributes | The attributes to include in the SAML assertion or |
| string | relayState | The relay state (eg target URL) or |
| string | partnerSP | The partner service provider name or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponse, string, IDictionary<string, string>, string, string, string, string)
Initiates single sign-on from the identity provider to the specified service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponse httpResponse, string userName, IDictionary<string, string> attributes, string authnContext, string relayState, string partnerSP, string assertionConsumerServiceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| IDictionary<string, string> | attributes | The attributes to include in the SAML assertion or |
| string | authnContext | The authentication context identifying how the user was authenticated or |
| string | relayState | The relay state (eg target URL) or |
| string | partnerSP | The partner service provider name or |
| string | assertionConsumerServiceUrl | The assertion consumer service URL or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponse, string, string)
Initiates single sign-on from the identity provider to the service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponse httpResponse, string userName, string relayState)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| string | relayState | The relay state (eg target URL) or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponseBase, string, SAMLAttribute[], string)
Initiates single sign-on from the identity provider to the service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponseBase httpResponse, string userName, SAMLAttribute[] attributes, string relayState)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| SAMLAttribute[] | attributes | The attributes to include in the SAML assertion or |
| string | relayState | The relay state (eg target URL) or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponseBase, string, SAMLAttribute[], string, string)
Initiates single sign-on from the identity provider to the specified service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponseBase httpResponse, string userName, SAMLAttribute[] attributes, string relayState, string partnerSP)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| SAMLAttribute[] | attributes | The attributes to include in the SAML assertion or |
| string | relayState | The relay state (eg target URL) or |
| string | partnerSP | The partner service provider name or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponseBase, string, SAMLAttribute[], string, string, string, string)
Initiates single sign-on from the identity provider to the specified service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponseBase httpResponse, string userName, SAMLAttribute[] attributes, string authnContext, string relayState, string partnerSP, string assertionConsumerServiceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| SAMLAttribute[] | attributes | The attributes to include in the SAML assertion or |
| string | authnContext | The authentication context identifying how the user was authenticated or |
| string | relayState | The relay state (eg target URL) or |
| string | partnerSP | The partner service provider name or |
| string | assertionConsumerServiceUrl | The assertion consumer service URL or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponseBase, string, IDictionary<string, string>, string)
Initiates single sign-on from the identity provider to the service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponseBase httpResponse, string userName, IDictionary<string, string> attributes, string relayState)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| IDictionary<string, string> | attributes | The attributes to include in the SAML assertion or |
| string | relayState | The relay state (eg target URL) or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponseBase, string, IDictionary<string, string>, string, string)
Initiates single sign-on from the identity provider to the specified service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponseBase httpResponse, string userName, IDictionary<string, string> attributes, string relayState, string partnerSP)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| IDictionary<string, string> | attributes | The attributes to include in the SAML assertion or |
| string | relayState | The relay state (eg target URL) or |
| string | partnerSP | The partner service provider name or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponseBase, string, IDictionary<string, string>, string, string, string, string)
Initiates single sign-on from the identity provider to the specified service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponseBase httpResponse, string userName, IDictionary<string, string> attributes, string authnContext, string relayState, string partnerSP, string assertionConsumerServiceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| IDictionary<string, string> | attributes | The attributes to include in the SAML assertion or |
| string | authnContext | The authentication context identifying how the user was authenticated or |
| string | relayState | The relay state (eg target URL) or |
| string | partnerSP | The partner service provider name or |
| string | assertionConsumerServiceUrl | The assertion consumer service URL or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
InitiateSSO(HttpResponseBase, string, string)
Initiates single sign-on from the identity provider to the service provider (ie. IdP-initiated SSO).
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void InitiateSSO(HttpResponseBase httpResponse, string userName, string relayState)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response. |
| string | userName | The user name to include in the SAML assertion. |
| string | relayState | The relay state (eg target URL) or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
IsSLOCompletionPending()
Indicates whether a single logout response to a service provider is pending.
Single logout is pending if a logout request has been received from a service provider and a logout response is pending or a logout request has been sent to a service provider and a logout response is pending.
Declaration
public static bool IsSLOCompletionPending()
Returns
| Type | Description |
|---|---|
| bool |
|
IsSLOCompletionPending(string)
Indicates whether a single logout response to a service provider is pending.
Single logout is pending if a logout request has been received from a service provider and a logout response is pending or a logout request has been sent to a service provider and a logout response is pending.
Declaration
public static bool IsSLOCompletionPending(string partnerSP)
Parameters
| Type | Name | Description |
|---|---|---|
| string | partnerSP | The partner service provider name. |
Returns
| Type | Description |
|---|---|
| bool |
|
IsSSO()
Indicates whether the identity provider is currently single signed-on to a service provider.
Declaration
public static bool IsSSO()
Returns
| Type | Description |
|---|---|
| bool |
|
IsSSO(string)
Indicates whether the identity provider is currently single signed-on to a service provider.
Declaration
public static bool IsSSO(string partnerSP)
Parameters
| Type | Name | Description |
|---|---|---|
| string | partnerSP | The partner service provider name. |
Returns
| Type | Description |
|---|---|
| bool |
|
IsSSOCompletionPending()
Indicates whether single sign-on to a service provider is pending.
Single sign-on is pending if an authn request has been received from a service provider and a SAML response is pending.
Declaration
public static bool IsSSOCompletionPending()
Returns
| Type | Description |
|---|---|
| bool |
|
IsSSOCompletionPending(string)
Indicates whether single sign-on to a service provider is pending.
Single sign-on is pending if an authn request has been received from the service provider and a SAML response is pending.
Declaration
public static bool IsSSOCompletionPending(string partnerSP)
Parameters
| Type | Name | Description |
|---|---|---|
| string | partnerSP | The partner service provider name. |
Returns
| Type | Description |
|---|---|
| bool |
|
ReceiveSLO(HttpRequest, HttpResponse, out bool, out bool, out string, out string, out string)
Receives a single logout request (ie. SP-initiated SLO) or single logout response (ie. IdP-initiated SLO) from a service provider.
Declaration
public static void ReceiveSLO(HttpRequest httpRequest, HttpResponse httpResponse, out bool isRequest, out bool hasCompleted, out string logoutReason, out string partnerSP, out string relayState)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequest | httpRequest | The HTTP request. |
| HttpResponse | httpResponse | The HTTP response. |
| bool | isRequest |
|
| bool | hasCompleted |
|
| string | logoutReason | The reason associated with the logout request or |
| string | partnerSP | The partner service provider name. |
| string | relayState | The relay state or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single logout fails. |
ReceiveSLO(HttpRequestBase, HttpResponseBase, out bool, out bool, out string, out string, out string)
Receives a single logout request (ie. SP-initiated SLO) or single logout response (ie. IdP-initiated SLO) from a service provider.
Declaration
public static void ReceiveSLO(HttpRequestBase httpRequest, HttpResponseBase httpResponse, out bool isRequest, out bool hasCompleted, out string logoutReason, out string partnerSP, out string relayState)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequestBase | httpRequest | The HTTP request. |
| HttpResponseBase | httpResponse | The HTTP response. |
| bool | isRequest |
|
| bool | hasCompleted |
|
| string | logoutReason | The reason associated with the logout request or |
| string | partnerSP | The partner service provider name. |
| string | relayState | The relay state or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single logout fails. |
ReceiveSSO(HttpRequest, out string)
Receives a single sign-on request from a service provider (ie. SP-initiated SSO).
An authn request is received from the service provider.
Declaration
public static void ReceiveSSO(HttpRequest httpRequest, out string partnerSP)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequest | httpRequest | The HTTP request. |
| string | partnerSP | The partner service provider name. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
ReceiveSSO(HttpRequest, out string, out SSOOptions)
Receives a single sign-on request from a service provider (ie. SP-initiated SSO).
An authn request is received from the service provider.
Declaration
public static void ReceiveSSO(HttpRequest httpRequest, out string partnerSP, out SSOOptions ssoOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequest | httpRequest | The HTTP request. |
| string | partnerSP | The partner service provider name. |
| SSOOptions | ssoOptions | The SSO options. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
ReceiveSSO(HttpRequestBase, out string)
Receives a single sign-on request from a service provider (ie. SP-initiated SSO).
An authn request is received from the service provider.
Declaration
public static void ReceiveSSO(HttpRequestBase httpRequest, out string partnerSP)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequestBase | httpRequest | The HTTP request. |
| string | partnerSP | The partner service provider name. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
ReceiveSSO(HttpRequestBase, out string, out SSOOptions)
Receives a single sign-on request from a service provider (ie. SP-initiated SSO).
An authn request is received from the service provider.
Declaration
public static void ReceiveSSO(HttpRequestBase httpRequest, out string partnerSP, out SSOOptions ssoOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequestBase | httpRequest | The HTTP request. |
| string | partnerSP | The partner service provider name. |
| SSOOptions | ssoOptions | The SSO options. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSLO(HttpResponse, string)
Sends a single logout message to a service provider (ie. SP-initiated SLO).
Declaration
public static void SendSLO(HttpResponse httpResponse, string errorMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response. |
| string | errorMessage | The error message or |
SendSLO(HttpResponseBase, string)
Sends a single logout message to a service provider (ie. SP-initiated SLO).
Declaration
public static void SendSLO(HttpResponseBase httpResponse, string errorMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response. |
| string | errorMessage | The error message or |
SendSSO(HttpResponse, Status)
Sends a single sign-on error response as part of SP-initiated SSO.
A SAML error response is sent to the service provider.
Declaration
public static void SendSSO(HttpResponse httpResponse, Status status)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response |
| Status | status | The error status. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponse, Status, string)
Sends a single sign-on error response as part of SP-initiated SSO.
A SAML error response is sent to the service provider.
Declaration
public static void SendSSO(HttpResponse httpResponse, Status status, string assertionConsumerServiceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response |
| Status | status | The error status. |
| string | assertionConsumerServiceUrl | The assertion consumer service URL or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponse, string)
Sends a single sign-on response as part of SP-initiated SSO.
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void SendSSO(HttpResponse httpResponse, string userName)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response |
| string | userName | The user name to include in the SAML assertion. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponse, string, SAMLAttribute[])
Sends a single sign-on response as part of SP-initiated SSO.
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void SendSSO(HttpResponse httpResponse, string userName, SAMLAttribute[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response |
| string | userName | The user name to include in the SAML assertion. |
| SAMLAttribute[] | attributes | The attributes to include in the SAML assertion or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponse, string, SAMLAttribute[], string, string)
Sends a single sign-on response as part of SP-initiated SSO.
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void SendSSO(HttpResponse httpResponse, string userName, SAMLAttribute[] attributes, string authnContext, string assertionConsumerServiceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response |
| string | userName | The user name to include in the SAML assertion. |
| SAMLAttribute[] | attributes | The attributes to include in the SAML assertion or |
| string | authnContext | The authentication context identifying how the user was authenticated or |
| string | assertionConsumerServiceUrl | The assertion consumer service URL or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponse, string, IDictionary<string, string>)
Sends a single sign-on response as part of SP-initiated SSO.
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void SendSSO(HttpResponse httpResponse, string userName, IDictionary<string, string> attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response |
| string | userName | The user name to include in the SAML assertion. |
| IDictionary<string, string> | attributes | The attributes to include in the SAML assertion or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponse, string, IDictionary<string, string>, string, string)
Sends a single sign-on response as part of SP-initiated SSO.
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void SendSSO(HttpResponse httpResponse, string userName, IDictionary<string, string> attributes, string authnContext, string assertionConsumerServiceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response |
| string | userName | The user name to include in the SAML assertion. |
| IDictionary<string, string> | attributes | The attributes to include in the SAML assertion or |
| string | authnContext | The authentication context identifying how the user was authenticated or |
| string | assertionConsumerServiceUrl | The assertion consumer service URL or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponse, string, string)
Sends a single sign-on error response as part of SP-initiated SSO.
A SAML error response is sent to the service provider.
Declaration
public static void SendSSO(HttpResponse httpResponse, string statusCode, string statusMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response |
| string | statusCode | The error status code. |
| string | statusMessage | The status message or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponse, string, string, string)
Sends a single sign-on error response as part of SP-initiated SSO.
A SAML error response is sent to the service provider.
Declaration
public static void SendSSO(HttpResponse httpResponse, string statusCode, string statusMessage, string assertionConsumerServiceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponse | httpResponse | The HTTP response |
| string | statusCode | The error status code. |
| string | statusMessage | The status message or |
| string | assertionConsumerServiceUrl | The assertion consumer service URL or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponseBase, Status)
Sends a single sign-on error response as part of SP-initiated SSO.
A SAML error response is sent to the service provider.
Declaration
public static void SendSSO(HttpResponseBase httpResponse, Status status)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response |
| Status | status | The error status. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponseBase, Status, string)
Sends a single sign-on error response as part of SP-initiated SSO.
A SAML error response is sent to the service provider.
Declaration
public static void SendSSO(HttpResponseBase httpResponse, Status status, string assertionConsumerServiceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response |
| Status | status | The error status. |
| string | assertionConsumerServiceUrl | The assertion consumer service URL or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponseBase, string)
Sends a single sign-on response as part of SP-initiated SSO.
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void SendSSO(HttpResponseBase httpResponse, string userName)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response |
| string | userName | The user name to include in the SAML assertion. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponseBase, string, SAMLAttribute[])
Sends a single sign-on response as part of SP-initiated SSO.
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void SendSSO(HttpResponseBase httpResponse, string userName, SAMLAttribute[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response |
| string | userName | The user name to include in the SAML assertion. |
| SAMLAttribute[] | attributes | The attributes to include in the SAML assertion or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponseBase, string, SAMLAttribute[], string, string)
Sends a single sign-on response as part of SP-initiated SSO.
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void SendSSO(HttpResponseBase httpResponse, string userName, SAMLAttribute[] attributes, string authnContext, string assertionConsumerServiceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response |
| string | userName | The user name to include in the SAML assertion. |
| SAMLAttribute[] | attributes | The attributes to include in the SAML assertion or |
| string | authnContext | The authentication context identifying how the user was authenticated or |
| string | assertionConsumerServiceUrl | The assertion consumer service URL or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponseBase, string, IDictionary<string, string>)
Sends a single sign-on response as part of SP-initiated SSO.
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void SendSSO(HttpResponseBase httpResponse, string userName, IDictionary<string, string> attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response |
| string | userName | The user name to include in the SAML assertion. |
| IDictionary<string, string> | attributes | The attributes to include in the SAML assertion or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponseBase, string, IDictionary<string, string>, string, string)
Sends a single sign-on response as part of SP-initiated SSO.
A SAML response containing a SAML assertion is sent to the service provider.
Declaration
public static void SendSSO(HttpResponseBase httpResponse, string userName, IDictionary<string, string> attributes, string authnContext, string assertionConsumerServiceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response |
| string | userName | The user name to include in the SAML assertion. |
| IDictionary<string, string> | attributes | The attributes to include in the SAML assertion or |
| string | authnContext | The authentication context identifying how the user was authenticated or |
| string | assertionConsumerServiceUrl | The assertion consumer service URL or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponseBase, string, string)
Sends a single sign-on error response as part of SP-initiated SSO.
A SAML error response is sent to the service provider.
Declaration
public static void SendSSO(HttpResponseBase httpResponse, string statusCode, string statusMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response |
| string | statusCode | The error status code. |
| string | statusMessage | The status message or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |
SendSSO(HttpResponseBase, string, string, string)
Sends a single sign-on error response as part of SP-initiated SSO.
A SAML error response is sent to the service provider.
Declaration
public static void SendSSO(HttpResponseBase httpResponse, string statusCode, string statusMessage, string assertionConsumerServiceUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response |
| string | statusCode | The error status code. |
| string | statusMessage | The status message or |
| string | assertionConsumerServiceUrl | The assertion consumer service URL or |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the single sign-on fails. |