Problem statement
How can a connection parameter be added to the authorize request made with the auth0-angular SDK?
Solution
The release of V2 of auth0-angular came with the introduction of authorizationParams,
which is a more structured approach to providing parameters - including the connection parameter as well as any other custom parameters - to Auth0.
Here is an example of adding the connection parameter by specifying it in authorizationParams with loginWithRedirect:
this.auth.loginWithRedirect({
authorizationParams: {
connection: 'connection_name'
}
});
Related References: