User Agent Flow Sample

The user-agent authentication flow is used by client applications residing in the user's device.
This could be implemented in a browser using a scripting language such as JavaScript, or from a mobile device or a desktop application.
In this flow, the client application opens popup window to requests the authorization page and redirects the user back to parent window with results of authentication.
Then user can send REST request from JavaScript using received token.
In this flow client side JS is responsible for all requests handling.

Please enter StreamScape HTTPAcceptor URL:

The following URL will be used to request authorization page and token:
/security/oauth2/authorize?response_type=token&client_id=restclient&redirect_uri=http://localhost/OAuthSample/displayauthorizepage/code/cb&state=http://localhost:9999&scope=somescope&display=page

Press button below and you will be redirected to StremScape oauth2 authorization page in popup window


Authorization failed

Response:

Please try again
Authorization successful
Response:

token:
Now you can use this token

OR
OR

Unknown authentication response:

Response:

Please try again