Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansamines committed Jun 18, 2024
2 parents 7e4f507 + 8ca734c commit ef59034
Show file tree
Hide file tree
Showing 7 changed files with 311 additions and 193 deletions.
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Simple OAuth2 grant classes accept an object with the following params.
* `refreshPath` - URL path to refresh access tokens (See [url resolution notes](#url-resolution)). Defaults to `auth.tokenPath`
* `revokePath` - URL path to revoke access tokens (See [url resolution notes](#url-resolution)). Defaults to **/oauth/revoke**
* `authorizeHost` - Base URL used to request an *authorization code*. Only valid for *AuthorizationCode*. Defaults to `auth.tokenHost` value
* `authorizePath` - URL path to request an *authorization code* (See [url resolution notes](#url-resolution)). Only valid for *AuthorizationCode*). Defaults to **/oauth/authorize**
* `authorizePath` - URL path to request an *authorization code* (See [url resolution notes](#url-resolution)). Only valid for *AuthorizationCode*. Defaults to **/oauth/authorize**

* `http` optional object used to set default options to the internal http library ([wreck](https://github.com/hapijs/wreck)). All options except **baseUrl** are allowed
* `json`: JSON response parsing mode. Defaults to **strict**
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 5.0.1

### Fixes
- [#440](https://github.com/lelylan/simple-oauth2/pull/440) Update `@hapi/hoek` to v11.x to avoid URL clonning issues

### Documentation
- [#430](https://github.com/lelylan/simple-oauth2/pull/430) Update `authorizeURL` docs with a custom param example
- [#421](https://github.com/lelylan/simple-oauth2/pull/421) Fix typo on API.md
- [#422](https://github.com/lelylan/simple-oauth2/pull/422) Improve jsdocs
- [#409](https://github.com/lelylan/simple-oauth2/pull/409) Remove build badge

## 5.0.0

### New features
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ async function run() {
const authorizationUri = client.authorizeURL({
redirect_uri: 'http://localhost:3000/callback',
scope: '<scope>',
state: '<state>'
state: '<state>',

customParam: 'foo', // non-standard oauth params may be passed as well
});

// Redirect example using Express (see http://expressjs.com/api.html#res.redirect)
Expand Down
Loading

0 comments on commit ef59034

Please sign in to comment.