What is the suggested way to authenticate users through a pure HTML5/Javascript client application? Skip to main content
https://support.okta.com/help/answers?id=906f0000000blqyiai&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Patrick KurzPatrick Kurz 

What is the suggested way to authenticate users through a pure HTML5/Javascript client application?

We have a number of ASP MVC applications hooked up to OKTA, but we're unsure of the best way to connect a pure HTML5/Javascript application that's currently in development.

This application could be hosted as a website, but also compiled into a hybrid app to run on mobile phones (using Cordova most likely)...

So in a situation like this, what would be the BEST way to authenticate users with OKTA? 

Do I need to setup an endpoint on a server somewhere that can turn SAMLrequests into Oauth tokens? 
 
ThomasThomas (Okta, Inc.) 
Original Author: Patrick Kurz

We’ve temporarily solved the issue by wrapping the HTML5/JavaScript code in an ASP.NET MVC wrapper… so the ASP.NET code authenticates users via WS-FED in OKTA and then the HTML5 code takes over.

However, we’d like to eventually use this HTML5/JavaScript code as a Mobile Application by wrapping it with Cordova and it’s at that point that we’re not sure the best approach to integrate with OKTA since we won’t have the ASP.NET wrapper there.

We’re open to any suggestions and I’ve cc’d in one of the main developers on that project.

Patrick Kurz, Solution Architect
Christopher StormsChristopher Storms
Any updates on this in the last year and a half?