Skip to content

Commit b2a878f

Browse files
Timokasseruipenso
authored andcommitted
Specify the type of grant used (#96)
Detail the authentication mechanism used
1 parent 49341f2 commit b2a878f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
AngularJS OAuth2 authentication module written in ES6.
44

5+
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:
6+
7+
```
8+
{
9+
"access_token": "foobar",
10+
"token_type": "Bearer",
11+
"expires_in": 3600,
12+
"refresh_token": "foobiz"
13+
}
14+
```
15+
Internally we'll automatically store it as a cookie and it will be used in every request adding an `Authorization` header: `Authorization: 'Bearer foobar'`.
16+
517
---
618

719
## Installation

0 commit comments

Comments
 (0)