Skip to content

Commit

Permalink
Merge pull request #124 from synapsestudios/122/changelog-and-docs
Browse files Browse the repository at this point in the history
122/changelog and docs
  • Loading branch information
spruce-bruce authored Oct 2, 2017
2 parents f5602c9 + f35b9b4 commit 0df6823
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

## [v1.3.1](https://github.com/synapsestudios/oidc-platform/compare/v1.3.0...release/v1.3.1) - 2017-10-2
### Added
- [#123](https://github.com/synapsestudios/oidc-platform/pull/123) Allow password grant type in database.
1 change: 1 addition & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# UPGRADE
14 changes: 14 additions & 0 deletions docs/implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,20 @@ Authorization: Basic ${base64Encode(clientId:clientSecret)}
grant_type=client_credentials&scope=admin
```

### Password Grant

The password grant is used when an application is logging in on behalf of the user _without_ using any of the redirect workflows. This method requires your client app to collect the user's username and password and pass that along to the token endpoint which of course has security implecations. You should only use the password grant if the client app is controlled by you or is otherwise trusted. Make sure to use HTTPS to issue this request.

#### Example token request

```
POST /op/token
Host: ${providerDomain}
Content-Type: application/x-www-form-urlencoded
Authorization: Basic ${base64Encode(clientId:clientSecret)}
grant_type=password&username=${username}&password={password}
```

### Refresh Token

TODO
Expand Down

0 comments on commit 0df6823

Please sign in to comment.