auth0-cordova | Auth0 integration for Cordova apps | Mobile Application library
kandi X-RAY | auth0-cordova Summary
kandi X-RAY | auth0-cordova Summary
Library to make it easy to integrate Auth0 login in your Cordova applications.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of auth0-cordova
auth0-cordova Key Features
auth0-cordova Examples and Code Snippets
Community Discussions
Trending Discussions on auth0-cordova
QUESTION
So after having trouble integrating the auth0 in my cordova app I decided to run the official provided sample app. But after following the provided instructions I am still not able to make it work. I get the error that
...ANSWER
Answered 2017-Oct-10 at 13:14It sounds like you may not have installed the necessary Cordova plugins. Taken from the readme with the quickstart sample:
Install Cordova PluginsSeveral Cordova plugins are required for use with @auth0/cordova
. Install safariviewcontroller
and customurlscheme
with the following commands.
cordova plugin add cordova-plugin-safariviewcontroller
cordova plugin add cordova-plugin-customurlscheme --variable URL_SCHEME={YOUR_PACKAGE_ID} --variable ANDROID_SCHEME={YOUR_PACKAGE_ID} --variable ANDROID_HOST={YOUR_AUTH0_DOMAIN} --variable ANDROID_PATHPREFIX=/cordova/{YOUR_PACKAGE_ID}/callback
The variables used when installing cordova-plugin-customurlscheme
are the same as those used to set up the Callback URL in your Auth0 Dashboard.
In other words, just run those two commands above in your favourite commant prompt / terminal. That second instruction looks a bit overwhelming - but if you are using the default package id (that comes with the quickstart) - then just use:
cordova plugin add cordova-plugin-customurlscheme --variable URL_SCHEME=com.auth0.cordova.example --variable ANDROID_SCHEME=com.auth0.cordova.example --variable ANDROID_HOST={YOUR_TENANT}.auth0.com --variable ANDROID_PATHPREFIX=/cordova/com.auth0.cordova.example/callback
and replace {YOUR_TENANT} with your own Auth0 Tenant.
By the way, the allowed callback URL in your Auth0 dashboard should also look like this (again, assuming you are using the default package identifier):
com.auth0.cordova.example://{YOUR_TENANT}.auth0.com/cordova/com.auth0.cordova.example/callback
Of course, let me know if this does not solve your issue by leaving comments below. Good luck.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install auth0-cordova
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page