Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ayfchan committed Sep 30, 2014
1 parent c2300cb commit 275024d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
@@ -1,7 +1,7 @@
OANDA client side OAuth javascript demo
=========================

A simple JavaScript application to demonstrate the OANDA's client side OAuth flow
A simple JavaScript application to demonstrate the OANDA client side OAuth flow

To run this, you will need a webserver to host 'clientSide_demo.html' that is included in this package.
'clientSide_demo.html' should be served at where your 'redirect uri' was registered as.
Expand All @@ -18,8 +18,7 @@ Once 'clientSide_demo.html' is loaded in the browser, two bottons will be displa

1. Begin OANDA Client-Side OAuth Flow
Once clicked, this button will redirect the user to OANDA's OAuth page to begin the client side OAuth process.
The user will then be asked to log into OANDA, and grant/deny the client application access to their account. Once the grant/deny step is completed, the user will be redirected back to the 'redirect uri' (Which for this demo's sake, it should be where 'clientSide_demo.html' is being hosted).
The user will then be asked to sign in to grant/deny the client application access to their account. Once the grant/deny step is completed, the user will be redirected back to the 'redirect uri' (For this demo's sake, it should be where 'clientSide_demo.html' is being hosted).

2. Get Account Information
Once access has been granted (access token returned), clicking this button will return the information about this
user's accounts. This button will invoke an authenticated call to OANDA's /v1/accounts endpoint.
Once access has been granted (access token returned), clicking this button will return the information about the user's first account. This button will invoke an authenticated call to OANDA's /v1/accounts endpoint.

0 comments on commit 275024d

Please sign in to comment.