Select to view content in your preferred language

How to Register a Social Login to ArcGIS Hub using AppStudio

551
2
08-09-2018 01:47 PM
MapEnglish
Frequent Contributor

From AppStudio we'd like to take the user through the process of registering their facebook/google account with ArcGIS Hub. What's the best approach for doing this? Opening a web viewer control and pointing it to a Hub Initiative page and going through the browser-based process? Or is there an alternative approach?

Thanks

Matt English

0 Kudos
2 Replies
ErwinSoekianto
Esri Alum

Matt, 

Yes, webView would be a way to go. 

Most of the social login workflow are using OAuth workflow, which should be similar to log in to ArcGIS Online. 

You can see how the OAuth workflow sample code in one of our templates or in the sample page (OAuth + Biometric Authentication)

Thank you,

Erwin. 

0 Kudos
MapEnglish
Frequent Contributor

Can you confirm the OAuth workflow will prompt you to enter an email address + username to join the org as a social user (with a role of type 'citizen')? I guess the only way to test this is to remove all accounts on ArcGIS Online that are associated with my facebook credentials an run the sample you mentioned. What I need clarity on is the prompt in the screenshot below - does Oauth and AppStudio's AuthenticationView provide for this:

0 Kudos