Hi,
I want to implement app login for a closed group of people who are not AGOL user. Can anyone give me general step-wise process to achieve this?
Hello Pratik,
I am sharing a simple app to show you how the login and user registration workflow in an AppStudio app, reading and writing SQLite database to save user information, see attached for source code. This is based on this blog post and then converted into AppStudio apps.
Also, we have another sample that shows you how to handle social media login, for example Google and Facebook logins, see attached for source code.
Apart from having the source code of the above two apps attached in this post, they are also shared publicly and available to be tested in AppStudio Player by searching in Public apps.
And lastly, we also have a lot of individual samples such as SQL, Secure Storage and Biometric Authentication available in AppStudio Desktop and Player that you can use to enhance the login experience.
I hope this is useful,
Erwin.
Hello ErwinSoekinto, thanks for sharing, but how can I track the database that keep the data when the user register?
Erwin Soekianto, can I ask what is the point of implementing a login/user registration system like in your example above if the maps/data behind it need to be publicly shared anyway? What good is having your own login system if the data is public and the login system can therefore be bypassed.
Maybe I misunderstand something but this seems really counter intuitive and contradictory to me.
Based on the license agreement, if your data (maps) are not public, you need to login using named-users. We have OAuth Biometric Authentication and Portal User Info samples that show you how to OAuth login workflow and accessing the user info and a private map in ArcGIS Online.
Quoting from this doc, Limitations of App Login | ArcGIS for Developers
Although you cannot use an AppID with private content, if your goal is to distribute or sell an app to organizations without ArcGIS Online (no named users), it is not against the license agreement to use your own login to the app, given that the content has been shared publicly.
Thanks Erwin but how do i get access to AGOL maps using these samples?
The maps are supposed to stay private and only available to employees.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.