A custom provider button doesn't work
Question
The button for my custom provider appears in the Hosted Login sign-in screen, but nothing happens when I click that button. Obviously something went wrong, but what?
Answer
We know exactly what you mean. Your sign-in screen and your custom provider (Okta) look just fine:
However, when you click the Okta button you donāt get redirected to the Okta login page; you donāt trigger an error message; you donāt do anything but just sit there. What gives?
Nine times out of 10 (or maybe 9,999 times out of 10,000), thereās a simple answer to the question āWhat gives?ā If youāre used to working with social login in Hosted Login, and if youāre used to working with the standard identity providers, then youāre used to specifying the names of your IdPs in the authentication.providers setting:
With that in mind, you might have entered the name of your custom provider in that setting as well:
And thatās the problem: you canāt enter the name of a custom provider in the authentication.providers setting.Ā
Well, OK, obviously you can, but the provider wonāt work: thatās because Hosted Login doesnāt know what to do with a provider named Okta.
Instead, you need to use an identifier for the custom provider, an identifier comprised of the following:
-
Your Akamai customer ID (3cc14467-fd4f-437d-a0c0-0b3888dd2ee4).
-
A period (.).
-
The custom providerās id (d284e861-d7f9-426e-93b0-56e01cf6d0ea). This is the ID assigned to the provider when it was created.
In Console, your identifier should look similar to this:
Now when you click the Okta button youāll be redirected to the Okta login page:
By the way, hereās a tip that might help you debug an issue like this. You might have noticed that, in our original sign-in screen, thereās no icon for Okta:
This is often (although not always) a clue that the authentication.providers setting has been incorrectly configured.
Updated 19 days ago
