Allows the user to authorize the consumer application.
Once your application has the request token, it should redirect the user to an E*TRADE authorization page, as shown in the Authorize Application Request URL below. Note that this URL includes the request token and the consumer key as parameters. Running the URL opens up a page which asks the user to authorize the application. Once the user approves the authorization request, E*TRADE generates a verification code and displays it the Authorization Complete page. The user may then manually copy the code and paste it into the application. However, we recommend that the verification code be passed directly to the application via a preconfigured callback URL; in order to do this, the callback URL must be associated with the consumer key. Follow the instructions in the Authorization guide chapter to do this(https://developer.etrade.com/getting-started/developer-guides). The callback URL may be just a simple address or may also include query parameters. Once the callback is configured, users are automatically redirected to the specified URL with the verification code appended as a query parameter. Examples are shown in the Sample Response below.
https://us.etrade.com/e/t/etws/authorize
https:///authorize
Property | Type | Required? | Description | Allowable Values |
---|---|---|---|---|
oauth_consumer_key | header | yes | The value used by the consumer to identify itself to the service provider. | |
oauth_token | header | yes | The consumer’s request token. |
Status Code | Reason | Response Model | Error Code |
---|---|---|---|
302 | Redirect url for Authorization. | Authorize Response | |
400 | There is issue with input | ||
500 | An unexpected error has occurred. The error has been logged and is being investigated. |
Property | Type | Description | Possible Values |
---|---|---|---|
oauth_verifier | string (uri) | verification code |
https://us.etrade.com/e/t/etws/authorize?key=282683cc9e4b8fc81dea6bc687d46758&token=%2FiQRgQCRGPo7Xdk6G8QDSEzX0Jsy6sKNcULcDavAGgU%3D
https://myapplicationsite.com/mytradingapp?oauth_verifier=WXYZ89
https://myapplicationsite.com?myapp=trading&oauth_verifier=WXYZ89