Overview
This article will explain how to add a default connection from the New Universal Login inside an SDK.
Applies To
- Connections
- Applications
Cause
There are multiple connections, and user Home realm discovery needs to be circumvented, or a “Show connection as a button” is required in a user login scenario.
Solution
In the SDK or Application, set the authorizationParams
with any connection name required
- This will allow the user to log in to said connection without the need to press the Connection button that is or is not displayed on the Universal login screen
Example:
loginWithRedirect() {
this.auth.loginWithRedirect({
authorizationParams:{
connection:'OktaSaml'
}
});
}
For the example above, OktaSaml represents the SAML connection that has been set up on the tenant.