dadi / passport

A library for generating access tokens to authenticate with DADI platform components
7 stars 3 forks source link

Token response format #8

Closed jimlambie closed 8 years ago

jimlambie commented 8 years ago

The API returns tokens in the following format. Can the passport response be the same?

{
  "accessToken": "243606ed-e43f-41c6-8e53-75e5e2f85b82"
  "tokenType": "Bearer"
  "expiresIn": 1800
}
jimlambie commented 8 years ago

For example:

https://github.com/dadi/passport/blob/master/index.js#L26 return Promise.resolve(this.return(response));

jimlambie commented 8 years ago

Ah, wait I see what you're doing...request withdrawn.