Interface ISamlServiceProvider
- Namespace
- ComponentSpace.Saml2
- Assembly
- ComponentSpace.Saml2.dll
Provides Service Provider (SP) support for web browser single sign-on.
public interface ISamlServiceProvider : ISamlProvider, IArtifactResolver
- Inherited Members
Properties
Events
Gets or sets the optional events associated with SAML SSO and SLO.
ISamlServiceProviderEvents Events { get; set; }
Property Value
- ISamlServiceProviderEvents
The optional events associated with SAML SSO and SLO.
Methods
InitiateSloAsync(string, string, string)
Initiates single logout from the service provider to the identity provider (ie. SP-initiated SLO).
An logout request is sent to the identity provider.
Task InitiateSloAsync(string partnerName = null, string logoutReason = null, string relayState = null)
Parameters
partnerNamestringThe partner identity provider name or
nullto specify the default.logoutReasonstringThe logout reason or
nullif none.relayStatestringThe relay state or
nullif none.
Returns
- Task
A task that represents the operation.
Exceptions
- SamlException
Thrown when the single logout fails.
InitiateSsoAsync(string, string, ISsoOptions)
Initiates single sign-on from the service provider to the identity provider (ie. SP-initiated SSO).
An authn request is sent to the identity provider.
Task InitiateSsoAsync(string partnerName = null, string relayState = null, ISsoOptions ssoOptions = null)
Parameters
partnerNamestringThe partner identity provider name or
nullto specify the default.relayStatestringThe relay state or
nullif none.ssoOptionsISsoOptionsThe SSO options or
nullif none.
Returns
- Task
A task that represents the operation.
Exceptions
- SamlException
Thrown when the single sign-on fails.
ReceiveSloAsync()
Receives a single logout request (ie. IdP-initiated SLO) or single logout response (ie. SP-initiated SLO) from an identity provider.
Task<ISloResult> ReceiveSloAsync()
Returns
- Task<ISloResult>
A task that represents the operation and returns the SLO result.
Exceptions
- SamlException
Thrown when the single logout fails.
ReceiveSsoAsync()
Receives a single sign-on response from the identity provider (ie. IdP-initiated or SP-initiated SSO).
Task<ISpSsoResult> ReceiveSsoAsync()
Returns
- Task<ISpSsoResult>
A task that represents the operation and returns the SSO result.
Exceptions
- SamlException
Thrown when the single sign-on fails.
SendSloAsync(string, string)
Sends a single logout response to the identity provider (ie IdP-initiated SLO).
Task SendSloAsync(string errorMessage = null, string correlationID = null)
Parameters
errorMessagestringThe error message or
nullif logout was successful.correlationIDstringThe correlation ID identifying the logout request to respond to.
Returns
- Task
A task that represents the operation.
Exceptions
- SamlException
Thrown when the single logout fails.