auth0-samples / auth0-cordova-samples Goto Github PK
View Code? Open in Web Editor NEWIntegrate Auth0 with Cordova apps
License: MIT License
Integrate Auth0 with Cordova apps
License: MIT License
(AUTH-4231)
Sample uses outdated version of @auth0/cordova
, auth0-js
and other dependencies.
As you may have seen some time ago, we communicated the fact that we are gradually working on improving your developer experience inside any repo in this org!
If you go to the readme file of this repository, in the first section you can see a note that this repo is supported and maintained by Community Developers, not Auth0. Despite the fact that we have limited bandwidth inside Auth0 Community Team and are not able to effectively review issues and PRs you submit, we want to improve your experience here one step at a time! That's why you should keep reading!
If you feel like joining us on a mission to make other developers contributions here more comfortable, here are the links you should visit!
We're aiming at your successful developer experience in the long term that's why we introduced a few improvements in the meantime and are looking forward to make even more impact!
Think it's all?! Nah! We ain't stoppin here! โจ
Let us know what you think! We're super stoked for your feedback! You can share it here or email us at [email protected]. We know there's a long way ahead of us to make this environment friendly and sustainable but we strongly believe that getting aboard together will let us reach the final destination!
how to import auth-0 and auth0-cordova without using webpack?
I downloaded the project, changed the settings to match my account, and launch the iOS simulator. App appears correctly and I was able to fill out a new user sign-up. but on submit the app hangs. It must have worked though because I did receive an email. So I shut down the app and started again, and tried to login. The app shows the email of the last login and when I click it the app hangs again. However, on the Auth0 dashboard for my account I see a successful login. Seems like a problem with redirect back to the native app. The xcode log for the simulator shows:
2018-08-22 08:28:18.999675-0400 Auth0 Example[8052:85075] Finished load of: file:///Users/user144153/Library/Developer/CoreSimulator/Devices/22D61218-4545-4AD9-A227-B279FAA11A36/data/Containers/Bundle/Application/70AF2BF1-BCA2-42FB-A870-7D0CFB6A29CC/Auth0%20Example.app/www/index.html
2018-08-22 08:31:32.414319-0400 Auth0 Example[8052:85075] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/user144153/Library/Developer/CoreSimulator/Devices/22D61218-4545-4AD9-A227-B279FAA11A36/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-08-22 08:31:32.414797-0400 Auth0 Example[8052:85075] [MC] Reading from private effective user settings.
2018-08-22 08:31:33.465856-0400 Auth0 Example[8052:85075] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2018-08-22 08:31:41.194758-0400 Auth0 Example[8052:93757] CredStore - performQuery - Error copying matching creds. Error=-25300, query={
class = inet;
"m_Limit" = "m_LimitAll";
ptcl = htps;
"r_Attributes" = 1;
sdmn = Users;
srvr = "mycustomaccountname.auth0.com";
sync = syna;
}
2018-08-22 08:31:41.196190-0400 Auth0 Example[8052:85075] CredStore - performQuery - Error copying matching creds. Error=-25300, query={
class = inet;
"m_Limit" = "m_LimitAll";
ptcl = htps;
"r_Attributes" = 1;
sdmn = Users;
srvr = "mycustomaccountname.auth0.com";
sync = syna;
}
Tried running this login sample on cordova android but it says index.js not found.
Then I manually configured the index.js path.. then the error was require is not a function.
Followed basic Auth0 sample app instructions (shown below) and it leads to a blank screen.
I would expect after following the auth0 instructions that I should have a basic cordova app which allows for login into my auth0 application.
Emulator stuck on white screen.
Followed these exact instructions...
Ran npm install -g such that most recent versions of NPM and Cordova were used.
#8 Description
After updating cordova project to use WKWebView instead of UIWebView (to avoid app store rejection by apple, see https://developer.apple.com/documentation/uikit/uiwebview), auth0cordova does not redirect back to app after login.
User should be re-directed back to app after login (i.e safari view controller should close).
Instead, login page stays open and the login flow is restarted.
Blank screen is coming in iOS simulator after clicking login button
Blank Screen in iOS simulator . No error Found
I've followed the instructions for downloading the pre-configured sample as described here: https://auth0.com/docs/quickstart/native/cordova/01-login
I've deployed to the ios simulator iPhone-X, 11.
I needed to install the latest ios sim options, else get no simulator.
Running it works up until the point where it should redirect.
It doesn't redirect and I get the following error:
[Log] Error: Response state does not match expected state (index.js, line 7)
(anonymous function) โ index.js:142
onRedirectUri โ session.js:18
onRedirectUri โ index.js:179
e โ index.js:9
(anonymous function) โ index.html:1:109
subscribe โ cordova.js:730
addEventListener โ cordova.js:133
Global Code โ index.html:1
When using this plugin with "Sign in With Apple" on an iPhone without biometrics or with a user that is not the primary user of the iPhone, panel does not redirect after signing in (ends up at a blank panel) making this plugin not function properly on the iPhone simulator and in some use cases on real iPhone devices when a user selects to sign in with a different user than the iPhone user.
I believe this bug is either with Auth0 responses to the /login/callback redirect or a defect in the SFSafariViewController itself.
The behavior requires use of the iOS simulator or an iPhone, an Apple developers account, Auth0 tenant with Apple sign in configured appropriately, and an Application configured in Auth0 with access to the Apple sign in functionality.
I will provide more detailed information.
(AUTH-3913)
Lock options must include audience and oidcConformant: true
(AUTH-3849)
There is no button or function to logout.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.