okta-auth-js
okta-auth-js copied to clipboard
sample: render IDP buttons and support flow in popup
Using embedded SIW.
https://user-images.githubusercontent.com/47947204/169926486-d6d4294d-97a4-42a9-b242-2f5febc6bb36.mov
Custom code added:
signIn.on('afterRender', function() {
document.querySelectorAll('.okta-idps-container .social-auth-button').forEach(function (el) {
el.onclick = function(event) {
event.preventDefault();
openPopup(el.href, {
popupTitle: el.innerText
});
}
});
});
Using AuthJS (direct auth, custom form)
https://user-images.githubusercontent.com/47947204/169638350-0b514837-8f28-44e9-8be5-c37ce02d6cf4.mov
Add workaround for OKTA-509099
https://user-images.githubusercontent.com/47947204/177840087-77c4522a-54b2-40dd-9c86-e0e2d8a87846.mov