Skip to content

Latest commit

 

History

History
58 lines (26 loc) · 2.78 KB

WALKTHROUGH.md

File metadata and controls

58 lines (26 loc) · 2.78 KB

Walkthrough

Let's go through all of the steps necessary to create a new application, authenticate and authorize it, and access user and token information.

First, we log in to the IEX Cloud Console and navigate to the OAuth tab on the left side navigator.

Now let's bring up the dialog to create a new OAuth application by clicking the button on the top right

This dialog includes the required field for any OAuth application. These include a name, description, redirect url, and one or more scopes of user information.

Let's fill these in based on what this repo expects for the demo application, and click "Add new OAuth App"

We should see our new OAuth application in the top table.

IEX Cloud uses the client_secret_post authentication method for token endpoints, so you will need the client id and client secret which you can reveal by clicking.

Copy and paste these values into either the js server file...

...or the python app file

Now lets run our sample application. From the js folder you can run yarn start, or from the python folder run python -m iexcloud_openid_client_example. Once started, navigate to http://localhost:3001 in your browser.

Note: these examples are configured to ignore TLS, which should be reenabled when deployed.

We should see our web page, with the option to Login with IEX Cloud.

If we click on this and login to IEX Cloud, we will see a dialog to authorize our OAuth client to access the scopes selected during the client creation step.

Upon authorization, we will be redirected back to our client application's redirect URL, with the information corresponding to the selected scopes in hand (note, they are obgfuscated in this screenshot).