POST
call.connection
parameter and the ID token.connection
parameter, creates a state
parameter for the session, and then redirects the user’s browser to the Auth0 tenant’s /authorize
endpoint./authorize
endpoint with the provided connection
and state
parameters.POST
call.state
parameter and ID token.state
parameter, parses the ID token and creates an application session for the user.connection
parameter and include it in the authentication request sent to your Auth0 tenant.
We recommend that you associate the custom login route handler with a different endpoint than the one associated with your standard login route handler. For example, if your standard login route handler is associated with the /login
endpoint, you could associate the custom login route handler with the /startlogin
endpoint.
state
parameter value to the /authorize
endpoint and validates the state
parameter in the response from the Identity Provider to protect against CSRF attacks. To learn more, read Prevent Attacks and Redirect Users with OAuth 2.0 State Parameters.redirect_uri
parameter. The parameter’s value must be URL encoded and is composed of:
connection
parameter with the value of your SAML connection name.https://exampleco.com/startlogin
and your SAML connection name is my-saml-connection
, the query string would be redirect_uri=https%3A%2F%2Fexampleco.com%2Fstartlogin%3Fconnection%3Dmy-saml-connection
.