Implicit Flow
This implicit grant flow can be used by both web-based and native applications.
- The flow starts by redirecting the user to the authorize endpoint using a URL.
- The URL contains the client ID, requested scopes, and redirection URI to which the authorization web service sends the user after access is granted or denied.
- The URL is in the following format:
https://auth.agsync.com/core/connect/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&response_mode=form_post&response_type=id_token+token&scope=openid+profile+email+agsync+roles&state=STATE&nonce=NONCE
- The user is prompted for his or her sign-in credentials and grants or denies the client's access request.
- If the user has granted access, the token server redirects the user to the client by using the redirection URI that was provided in the initial request.
- The redirection is done via a form post to the redirection URI. The access token, identity token, scope and expiration are included in the form POST.
- For example:
<formmethod="post"action="REDIRECT_URI"><inputtype="hidden"name="id_token"value="TOKEN"/><inputtype="hidden"name="access_token"value="TOKEN"/><inputtype="hidden"name="token_type"value="Bearer"/><inputtype="hidden"name="expires_in"value="43200"/><inputtype="hidden"name="scope"value="openid profile email agsync roles"/><inputtype="hidden"name="state"value="STATE"/><inputtype="hidden"name="session_state"value="SESSION_STATE"/></form>