Skip to content

Use SCOPE instead of CLIENT_ID for access_denied in device authorization consent#19258

Open
therepanic wants to merge 1 commit into
spring-projects:mainfrom
therepanic:use-scope-instead-of-client-id
Open

Use SCOPE instead of CLIENT_ID for access_denied in device authorization consent#19258
therepanic wants to merge 1 commit into
spring-projects:mainfrom
therepanic:use-scope-instead-of-client-id

Conversation

@therepanic
Copy link
Copy Markdown
Contributor

The current behavior is misleading (for example, as in gh-19238). It was likely implemented by accident as a result of copy-pasting, since the client_id check was performed earlier in the
OAuth2DeviceAuthorizationConsentAuthenticationProvider#authenticate method, and the current behavior has nothing to do with client_id, but rather with checking authorities, i.e., scope.

Ref: gh-19238
Ref: gh-19256

…ion consent

The current behavior is misleading (for example, as in spring-projectsgh-19238). It was
likely implemented by accident as a result of copy-pasting, since the
`client_id` check was performed earlier in the
`OAuth2DeviceAuthorizationConsentAuthenticationProvider#authenticate`
method, and the current behavior has nothing to do with `client_id`, but
rather with checking authorities, i.e., scope.

Ref: spring-projectsgh-19238
Ref: spring-projectsgh-19256

Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants