Fork me on GitHub

Auth in ArcGIS Online

Patrick Arlt

Experience Developer - ArcGIS for Developers

@patrickarlt - http://arcg.is/1BAm5cz

What is oAuth 2.0?

A standard for conveying authorization decisions.

I {username} authorize {app name} to do {whatever}

OAuth 2.0 is not an authentication protocol

OAuth 2.0 !== authentication protocol

OAuth 2.0 != authentication protocol

OAuth 2.0 is used inside of authentication protocols

OAuth 2.0 doesn't know about your users identities, it only care about authorization

OAuth 2.0 === Authorization
ArcGIS Portal/Online === Identity && Access

A Complete System

oAuth 2.0 + ArcGIS Portal/Online

User Logins vs App Authentication

User Logins

  1. User authorizes application
  2. Application can act on users behalf
  3. Usage if any is billed to that users organization

User User Logins When...

  • You have to work with private content
  • you need to create/edit content
  • want usage to be billed to your apps users

Application Authentication

  1. App exchanges credentials for token
  2. Uses token to access premium services
  3. Often implimented as a proxy

Use Application Authentication When…

  • You only need to work with public and premium content
  • You dont want your users to sign in

Whats Changed?

  • ArcGIS Portal 10.3 now supports oAuth 2.0
  • 1st class oAuth 2.0 support in the JS API
  • More support for OAuth in the ArcGIS Runtimes
  • New ways to access premium services
  • Better Authentication Docs

Demo Time!

  • Browser-based with JS API
  • Server-based with JS API + Hapi
  • App Proxies for Premium Services
Demos on GitHub

Thanks!

www.esri.com/RateMyDevSummitSession

Twitter: @patrickarlt

Slides:http://arcg.is/1BAm5cz

Esri