Creating an OAuth2.0 Authorization Code

From Active911 Documentation Wiki
Jump to: navigation, search

The authorization code has a lifetime of 5 minutes before it expires.


Personal Authorization Code

Users can generate Authorization codes for personal use in the Edit Agency permission from the Agency Tab.

This does not require pre-registration of a developer account.

The authorization code has a lifetime of 5 minutes before it expires.

Self-generated codes can be used with the Google OAuth2.0 Playground to retrieve an access token and a refresh token.

Developer Tokens

3rd party applications should always use the Authorization Code workflow, starting with a request to https://access.active911.com/open_api/authorize_agency.php

ParameterRequiredDescription
client_idyesThe client_id given to your application when you registered it with us
response_typeyesCurrently we only support the Authorization Code workflow, so this must be set to "code"
redirection_uriyesThe url you want the user to be redirected to after they authorize your request
scopeyesThe permissions you are requesting access for
statenoYou may set this to a particular value, and that value will be resent upon redirection after authorization

Upon authorization by the user, this will redirect to the redirection uri specified with the authorization code included as a query parameter: <REDIRECTION URI>/?code=<your new authorization code>