Skip to content

Commit

Permalink
Merge pull request #1667 from giovannelli/main
Browse files Browse the repository at this point in the history
Pass client instead of grant.application to find_or_create_access_token
  • Loading branch information
nbulaj authored Sep 19, 2023
2 parents d38c37d + 2b5c2e5 commit 01321c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ User-visible changes worth mentioning.

- [#ID] Add your PR description here.
- [#1662] Specify uri_redirect validation class explicitly.
- [#1652] Add custom attributes support to token generator
- [#1652] Add custom attributes support to token generator.
- [#1667] Pass `client` instead of `grant.application` to `find_or_create_access_token`.

## 5.6.6

Expand Down
2 changes: 1 addition & 1 deletion lib/doorkeeper/oauth/authorization_code_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def before_successful_response
grant.revoke

find_or_create_access_token(
grant.application,
client,
resource_owner,
grant.scopes,
custom_token_attributes_with_data,
Expand Down

0 comments on commit 01321c7

Please sign in to comment.