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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -