I'm adding authentication using Auth0 using oauth2 to a desktop app built with Livecode. I didn't have any issues getting Auth0 configured and sending back valid jwt tokens. Only issue I found was that Auth0's ui was too tall for the default Livecode oauth2 stack. This resulted in a scrollbar being displayed and the user having to scroll down in some cases to access needed items.
Thanks to a tip from Bernd on the Livecode email list, I've been able to modify the oauth2 stack for Auth0 so it looks great! Here's what you need to do.
(LC 9.6.3, macOS 11.5 but honestly should work on any platform)
note: I presume you already have configured/tested using oauth2 with Auth0 in a desktop app
- in script editor, enable View->Show IDE Stacks in Lists
- Tools->Project Browser
- find com.livecode.library.oauth2 and click the number on the right of the row to open the stack script
- modify the following lines to increase the height of the stack and position the cancel button
- line 174: set the height of stack tUniqueRef to 760
- line 175: put 0,0,640,720 into tBrowserRect
- line 180: set the rect of it to 8,728,78,751
note: this changes Livecode's oauth2 library stack. This change affects any stack using the oauth2 command in Livecode.
note: this change we are making is not permanent. When a new version of Livecode is installed, these changes will be lost.
note: any standalone built after this modification will display a taller oauth2 window.
caution: be sure you understand security implications of having a client secret in your app when using Auth0 for jwt's.
Bob Hall
Manchester, NH
Auth0 oauth2 stack height
LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Return to “Getting Started with LiveCode - Experienced Developers”
Jump to
- LiveCode Community
- ↳ Announcements
- ↳ Developer Services Marketplace
- ↳ User Groups and Events
- ↳ SoCal LiveCode Group
- ↳ Greater Toronto Area LiveCode Users Group
- ↳ Off-Topic
- ↳ Made With LiveCode
- Getting Started With LiveCode
- ↳ Getting Started with LiveCode - Complete Beginners
- ↳ Getting Started with LiveCode - Experienced Developers
- ↳ Converting to LiveCode
- ↳ App Building Course
- ↳ Simple Messages
- ↳ Calculator
- ↳ Notes
- ↳ Clock
- ↳ Web Browser
- ↳ Weather
- ↳ Compass
- ↳ Photos
- Developing With LiveCode
- ↳ Talking LiveCode
- ↳ Databases
- ↳ Games
- ↳ Internet
- ↳ Multimedia
- ↳ Software Engineering
- ↳ Version Control
- ↳ Feature Proposals
- ↳ Bug Triage
- ↳ Legacy Project: MetaCard
- Extending LiveCode
- ↳ Using Plugins for Customizing the LiveCode IDE
- ↳ Using Externals
- ↳ Making IDE Plugins
- ↳ Building Externals
- ↳ LiveCode Builder
- Platform Specific
- ↳ Windows
- ↳ Mac OS
- ↳ Linux
- ↳ iOS Deployment
- ↳ Android Deployment
- ↳ CGIs and the Server
- ↳ HTML5
- ↳ Raspberry Pi
- Academic Endeavors
- ↳ Teaching with LiveCode
- ↳ Research and Post Secondary
- ↳ LiveCode University
- ↳ Educational Outreach
- Livecode Open Source Archived Forum- closed to posting
- ↳ Engine Contributors
- ↳ IDE Contributors
- ↳ Documentation and Tutorials
- ↳ Brainstorms
- ↳ Community Projects
- ↳ rIDE
- Third Party Extension Support
- ↳ Marketing Your Products
- ↳ Animation Engine
- ↳ chartsEngine
- ↳ MobGUI
- ↳ lcTaskList
- ↳ SQL Yoga
- ↳ MergEXT
- ↳ Data Grid Helper
- ↳ idea2app and Coding School
- ↳ Admin Archive
- LiveCode Hosting
- Forum Archives
- ↳ Archived: Third Party Extension Support
- ↳ rTree
- ↳ rGrid
- ↳ Data Tree
- ↳ Archived: LiveCode Open Source
- ↳ LiveCode Global Jam
- ↳ Testing Support
- ↳ Archived: Academic Endeavors
- ↳ September Academy
- ↳ Summer School 2013
- ↳ Archived: Project Specific
- ↳ Business and Kiosks
- ↳ Digital Art and Portfolios