Add OAuth Client on frappe server
Android - using Volley for jsonrequest (ready ApplicationController, using FrappeServerCallback to get response, ERPNextContactProvider endpoints example UTSL )
Great job! I’ve been hoping to see projects that help with integration of the Frappe framework with native mobile apps. This looks to be a good step in the right direction
Trust you’re doing great. On the issue of Mobile App Development, I’m not sure if you’re familiar with the Liferay Screens project. It’s actually a collection of fully native mobile components for rapid native app development. It’s obviously designed for the Liferay Portal but one of it’s key features is that it works with other backends too
I think it would be awesome if we could have something like this for the Frappe framework. This would cut the time and cost required to develop native mobile apps for Frappe (and ERPNext) significantly. What do you think? References:
NOTE: this is not standard TOTP mentioned here https://tools.ietf.org/html/rfc6238. This was developed specifically because enter password step needed to be dropped
Standards based OTP (pyotp) generation and 2FA is being contributed and is recommended.
Mobile OTP Authenticator Library for Android
This is Kotlin based library, can be imported in Java app.
XMLs designed are very basic, after importing the library override them with your own cool designs and keep the names same in your app.
It uses SmsVerifyCatcher to read the SMS. Login screen copies OTP into OTP input and proceeds automatically once SMS is received.
Is this android mobile app available on the android store or any other similar apps? How do I access the app in order to view the app functionality which exists? Appreciate if you can direct me on how it requires to be installed?
These are source code references and libraries. Use them to develop android apps. If you’ve android studio clone the source, build the apk and try them out.
Thanks. Is it correct to say accessing an android /ios app which connects to ErpNext does not add to the existing count of erpnext user licences?
Are there any android or ios apps on the Google or Apple store I can check out which have made use of the frappe authenticator? Alternatively, something I can install outside of the stores.
add oauth client on frappe server
enter the oauth client data on android app
to sync you need to go to apps > frappe authenticator on android phone and enable contacts and event permission
I’m sure FrappeAuthenticator#getAuthToken handles valid/invalid/refresh token and It’s attached to the Service.
Do I need to manage/call it manually? or It’s handled by AccountManager automatically?
It’s a bit weird for me that your FrappeAuthenticator look easier than OAuth2Authenticator
I learn a lot from it. I’m trying to make it works, otherwise I’ll look into OAuth2Authenticator.