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
baseUrl
stringBase URL of the Authentication API represented as a string.
clientId
stringClient ID of the application.
SamlUrlBuilder(Uri, string)
Initializes a new instance of the SamlUrlBuilder class.
public SamlUrlBuilder(Uri baseUrl, string clientId)
Parameters
baseUrl
UriBase URL of the Authentication API represented as a Uri.
clientId
stringClient ID of the application.
Methods
WithConnection(string)
Adds the connection
query string parameter specifying the connection name.
public SamlUrlBuilder WithConnection(string connectionName)
Parameters
connectionName
stringName 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
values
IDictionary<string, string>Dictionary containing key-value pairs for the
RelayState
parameter.
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
value
stringValue of
RelayState
parameter in key-value format, e.g.
.xcrf=abc&ru=/foo
Returns
- SamlUrlBuilder
Current SamlUrlBuilder to allow fluent configuration.