Skip to content

Commit

Permalink
Specify the type of grant used (#96)
Browse files Browse the repository at this point in the history
Detail the authentication mechanism used
  • Loading branch information
Timokasse authored and ruipenso committed Aug 9, 2016
1 parent 49341f2 commit b2a878f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

AngularJS OAuth2 authentication module written in ES6.

Currently `angular-oauth2` only uses the [Resouce Owner Password Credential Grant](https://tools.ietf.org/html/rfc6749#section-4.3), i.e, using a credentials combination (username, password), we'll request an access token (using `grant_type='password'`) which, in case of success, will typically return a response such as:

```
{
"access_token": "foobar",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "foobiz"
}
```
Internally we'll automatically store it as a cookie and it will be used in every request adding an `Authorization` header: `Authorization: 'Bearer foobar'`.

---

## Installation
Expand Down

0 comments on commit b2a878f

Please sign in to comment.