Can I use the hosted login widget (with customizations) to have multiple input fields for authenticatoin? Moving from a legacy system, I need to bridge and have the username made up of two separate input fields (think: RegionID, UserID). I know I can use an event to merge these before they go to Okta (Okta will only see one combined username that is RegionID+UserID), but how can I get the input captured in 2 separate fields for the username?
I don’t know that it needs to be even that hard? If I can just insert another text box (with the same Okta look’n’feel), I think I can just use transformUsername: function (username, operation) function to merge the two input fields, no?
Hello. I was able to solve by modifying the Custom Login Widget HTML code within the Okta Admin console. This was performed by basically having the following code:
Just correcting my own post if someone else sees it - I switched from using the “window.AddEventListener” to just using the afterRender event. i.e.:
This avoids the sleep (which is non-compliant with all browsers and really, was just an amateur move on my part) and integrates properly with the way Okta UI wants it…