Okta Javascript Auth API fails on Android -


i'm implementing sso product using okta authentication javascript api. code (i use aurelia front-end framework):

  login() {     var oktaauth = require('@okta/okta-auth-js');     this.authclient = new oktaauth({url: 'https://myurl.okta.com'});     var $this = this;     $this.authclient.signin({         username: this.username,         password: this.password       })       .then(function(transaction) {         if (transaction.status === 'success') {           $this.authclient.session.setcookieandredirect(transaction.sessiontoken, 'https://myredirecturl.com');          } else {           alert(transaction.status);           console.error('error status: ' + transaction.status);         }       })       .fail(function(err) {         alert(err + ' ' + err.errorsummary + ' ' + err.errorcode);         console.error(err);       });   } 

it works on desktop windows 7, when test same application on android mobile device authapierror errorsummary , errorcode undefined. know if there issues okta auth working on android (other mobile devices) , can done here?

that issue cors. used special url connect app via mobile - when added trusted domains in okta admin dashboard isseu resolved.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -