Configure authentication service

Adopta uses a geoprocessing model and tool to authenticate users and communicate asset maintenance program updates. To configure the tool, run the authentication model and publish the geoprocessing service, follow the steps below.

Configure AuthGP model

The Auth GP model is designed to simplify the publication of the AuthGP service by saving parameters in a model. To configure the Auth GP model, complete the following steps:

  1. If necessary, open the CatchBasin.mxd.
  2. In the ArcCatalog window, browse to <your directory>\Application\ToolBox\AdoptaGP.tbx.
  3. Right-click on the AuthGP model and choose Edit to open the model for editing.
  4. Double click the AuthGPScript tool.
  5. In the User table parameter, browse to the UserTable in your Enterprise Geodatabase and click Add.
  6. In the User email field parameter, choose the EMAIL field from the drop-down. This field will store the email address.
  7. In the Team field parameter, choose the TEAMNAME field from the drop-down. This field will store team names.
  8. In the User token field parameter, choose the USERTOKEN field from the drop-down. This field will store user tokens generated by the Adopta application.
  9. In the Token date field parameter, choose the TOKENDATE field from the drop-down. This field will store user token dates generated by the Adopta application.
  10. In the Token validity time parameter, type in a time into the text box. Time (in minutes) for the expiration of the user token.
  11. In the Asset layer URL parameter, type the full URL to feature service (with index number, which is located at the end of the service REST endpoint) containing the assets. For example, http://yourserver.yourdomain.com/arcgis/rest/services/CatchBasins/FeatureService/0
  12. In the Asset layer username parameter, type your server user name to access the feature service if secured.
  13. In the Asset layer password parameter, type the password for the user name you provided above.
  14. In the Asset layer portal url parameter, type the URL of the server or ArcGIS Online organization hosting the service. For example, www.arcgis.com or yourorganizations.maps.arcgis.com
  15. In the From email address parameter, type the email address from which emails will be sent to users.
  16. In the Signup email subject line parameter, type the subject line to be used for sign up emails.
  17. In the Signup email template parameter, browse to <your directory>\Application\EmailTemplates folder. Choose the signup_template and click Open. The HTML template to be used for sign up emails.
  18. In the Login email subject line parameter, type the subject line to be used for sign up emails.
  19. In the Login email template parameter, browse to <your directory>\Application\EmailTemplates folder. Choose the login_template and click Open. The HTML template to be used for login emails.
  20. In the SMTP Server parameter, type the server hostname and port of the SMTP server.
  21. In the SMTP Username parameter, type in the SMTP server username, only if your SMTP requires authentication.
  22. In the SMTP Password parameter, type in the SMTP server password, only if your SMTP requires authentication.
  23. Check the Use TLS check box if your SMTP server requires TLS.
  24. Click OK, then save the model and close it.

Run the AuthGP model

The AuthGP model is used to set up and test the authentication service. To run the AuthGP model, complete the following steps:

  1. Double click the AuthGP model.
  2. In the Input user email parameter, type in your email address.
  3. In the Action parameter, choose a Signin from the drop-down in the sign up as the action for testing.
  4. In the App URL parameter, type in any URL for testing, for example www.arcgis.com.
  5. Click OK.
  6. Review the email you receive to verify the text specified.

Publish service

The AuthGP service is used by the Adopta application to verify users and send email notifications. To publish the AuthGP service, complete the following steps:

  1. Click the Geoprocessing menu > Results and expand Current session (if it is collapsed).
  2. Right-click on the result and click Share As > Geoprocessing Service.
  3. Click Publish a Service and click Next.
  4. From the Choose a connection drop-down choose a ArcGIS server connection to publish the service.
  5. Name the service and click Next.
  6. From Use existing folder drop-down choose a folder for the service, if necessary create a new one and click Continue.
  7. In the Parameters tab, set the Execution mode to Synchronous and Message Level to Info.
  8. Click on Publish to publish it on specified server.
Top