bendell

To authenticate using basic authentication, you will need:
1. Obtain a partner id, and partner secret.  Contact orion support to obtain these values.
         Client_id: <integer value>
         Client_secret:<guid> 
2. The end users userid/password

 

Test: Call [GET] https://testapi.orionadvisor.com/api/v1/security/token
Prod: Call [GET] https://api.orionadvisor.com/api/v1/security/token

Include a Basic authorization header with the userid/pwd base 64 encoded:

Sample Call:

GET /api/v1/security/token 

Authorization: Basic YxxxxxxrxxyIQ== (base64 encoded "uid:pwd")
client_id: 91034 (static, provided by orion)
client_secret: adfjsss-xxxxxdjfa-xxxxxx (static, provided by orion)


returns an "access_token"

{"access_token":"eyJhbGciOiJodHR....","expires_in":36000.0}


The access_token returned by the /token endpoint can then be used for all other api calls.

[Headers]
Authorization: Session <access_token>

Quote