Class SamlUrlBuilder
- Namespace
- Auth0.AuthenticationApi.Builders
- Assembly
- Auth0.AuthenticationApi.dll
Builder class used to fluently construct a SAML authorization URL.
public class SamlUrlBuilder : UrlBuilderBase<SamlUrlBuilder>
- Inheritance
-
SamlUrlBuilder
- Inherited Members
Remarks
See https://auth0.com/docs/api/authentication#accept-request for more details.
Constructors
SamlUrlBuilder(string, string)
Initializes a new instance of the SamlUrlBuilder class.
public SamlUrlBuilder(string baseUrl, string clientId)
Parameters
baseUrlstringBase URL of the Authentication API represented as a string.
clientIdstringClient ID of the application.
SamlUrlBuilder(Uri, string)
Initializes a new instance of the SamlUrlBuilder class.
public SamlUrlBuilder(Uri baseUrl, string clientId)
Parameters
baseUrlUriBase URL of the Authentication API represented as a Uri.
clientIdstringClient ID of the application.
Methods
WithConnection(string)
Adds the connection query string parameter specifying the connection name.
public SamlUrlBuilder WithConnection(string connectionName)
Parameters
connectionNamestringName of the connection.
Returns
- SamlUrlBuilder
Current SamlUrlBuilder to allow fluent configuration.
WithRelayState(IDictionary<string, string>)
Adds the RelayState query string parameter.
public SamlUrlBuilder WithRelayState(IDictionary<string, string> values)
Parameters
valuesIDictionary<string, string>Dictionary containing key-value pairs for the
RelayStateparameter.
Returns
- SamlUrlBuilder
Current SamlUrlBuilder to allow fluent configuration.
Remarks
See https://auth0.com/docs/protocols/saml/saml-configuration/special-configuration-scenarios/idp-initiated-sso#auth0-as-identity-provider-where-idp-initiates-sso for more details on RelayState.
WithRelayState(string)
Adds the RelayState query string parameter.
public SamlUrlBuilder WithRelayState(string value)
Parameters
valuestringValue of
RelayStateparameter in key-value format, e.g.
.xcrf=abc&ru=/foo
Returns
- SamlUrlBuilder
Current SamlUrlBuilder to allow fluent configuration.