Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: able to obtain a token with default scopes even if they are not present in the application scopes when using client credentials #1558

Merged
merged 3 commits into from
Mar 30, 2022

Conversation

enrico
Copy link
Contributor

@enrico enrico commented Feb 21, 2022

see description of issue #1557

…ll return a token with the default scope even if the application scope does NOT include it.
lib/doorkeeper/oauth/client_credentials/validator.rb Outdated Show resolved Hide resolved
lib/doorkeeper/oauth/client_credentials/validator.rb Outdated Show resolved Hide resolved
lib/doorkeeper/oauth/client_credentials/validator.rb Outdated Show resolved Hide resolved
spec/requests/flows/client_credentials_spec.rb Outdated Show resolved Hide resolved
spec/requests/flows/client_credentials_spec.rb Outdated Show resolved Hide resolved
@enrico
Copy link
Contributor Author

enrico commented Feb 21, 2022

not sure how to re-trigger houndci. I addressed the issues found in my second commit.

@enrico enrico changed the title Fixes issue #1557 Bug: able to obtain a token with default scopes even if they are not present in the application scopes when using client credentials Mar 11, 2022
Copy link
Member

@nbulaj nbulaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nbulaj nbulaj merged commit 389f2f5 into doorkeeper-gem:main Mar 30, 2022
@nbulaj
Copy link
Member

nbulaj commented Mar 30, 2022

Thanks @enrico

@enrico
Copy link
Contributor Author

enrico commented Apr 21, 2022

@nbulaj you're welcome!
I'm assuming you are planning to incorporate this in 5.6.0 , correct? If so, do you have an ETA for the release?

jsugarman added a commit to ministryofjustice/laa-hmrc-interface-service-api that referenced this pull request Sep 15, 2022
The bump to 5.6.0 broke our hmrc submissions
following the change in [pull request 1558](doorkeeper-gem/doorkeeper#1558)
which are documented in the CHANGELOG as:

[#1558] Fixed bug: able to obtain a token with default scopes even if they are not present in the application scopes when using client credentials.
jsugarman added a commit to ministryofjustice/laa-hmrc-interface-service-api that referenced this pull request Sep 15, 2022
The bump to 5.6.0 broke our hmrc submissions
following the change in [pull request 1558](doorkeeper-gem/doorkeeper#1558)
which are documented in the CHANGELOG as:

[#1558] Fixed bug: able to obtain a token with default scopes even if they are not present in the application scopes when using client credentials.
jsugarman added a commit to ministryofjustice/laa-hmrc-interface-service-api that referenced this pull request Sep 15, 2022
The minor bump to 5.6.0 broke our hmrc submissions
following the change in [pull request 1558](doorkeeper-gem/doorkeeper#1558)
which are documented in the CHANGELOG as:

[#1558] Fixed bug: able to obtain a token with default scopes even if they are not present in the application scopes when using client credentials.
jsugarman added a commit to ministryofjustice/laa-hmrc-interface-service-api that referenced this pull request Sep 15, 2022
The minor bump to 5.6.0 broke our hmrc submissions
following the change in [pull request 1558](doorkeeper-gem/doorkeeper#1558)
which are documented in the CHANGELOG as:

[#1558] Fixed bug: able to obtain a token with default scopes even if they are not present in the application scopes when using client credentials.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants