The Crowdsource Reporter application allows users to sign in with social media credentials (Twitter and Google+) and track the status of problems or observations they have reported.
To fully enable social media authentication, you must establish a connection between your application and your organization's and Google+ account. In addition, you must configure a valid Reporter Name Field in the Crowdsource Reporter application to store the user ID associated with the users social media account. This field must be large enough to hold strings of at least 20 characters to accommodate the identifiers generated by all supported sign in options.
Configure Google+ credentials
Complete the following steps to set up a connection between your Crowdsourcing Reporter application and your organization's (or personal) Google+ account:
- If you do not have a Google+ account for your organization, create a new one.
- Use your Google+ credentials to sign into the Google Developer Console and click Create Project from the Select a project drop-down menu.
- Type the name of your project in the Project Name space and click Create.
- If the project does not open when it is done building, click the Projects link in the upper left corner of the console and choose your new project.
- Click APIs & auth > Credentials in the menu on the left side of the console, then choose to add credentials using OAuth 2.0 client ID.
- Click the Configure consent screen button and set up the window that will appear when users provide their Google+ credentials. The provided email address will be used to contact you when users have issues signing into your app with their credentials.
- Click Save and choose the application type Web application.
- In the Authorized Redirect URIs parameter type the URL of your application. If your application will be public and your organization does not allow anonymous access, you may also want to include the public URL of the application. The public URL will start with http://www.arcgis.com instead of your organization URL.
- Copy the Client ID value into the Google+ Client ID parameter in the app configuration panel in ArcGIS Online or Portal for ArcGIS and save the configuration change.
- Click APIs in the menu on the left side of the console.
Enable the following APIs:
- Google+ API
- Google+ Domains API
- Return to configuring your application, which should now be set up to allow users to sign in using their Google+ credentials.