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

Device Code Consent Page Got EMPTY SCOPE caused "Access Denied" #1718

Closed
Code-SkyWalker opened this issue Sep 15, 2024 · 5 comments
Closed
Assignees

Comments

@Code-SkyWalker
Copy link

Describe the bug
using Demo.
when jump to "http://auth.javaboy.org:9000/activate?user_code=PFNW-XBMR" and then redirect to "http://auth.javaboy.org:9000/oauth2/consent?scope=&client_id=device-client-id&state=tOX0gviDMLqw5-qiCQbnryFS6_Z0hUQx7k1cng26tCI%3D&user_code=PFNW-XBMR", The scope is empty.

FOUND :
OAuth2DeviceVerificationEndpointFilter#doFilterInternal THE METHOD this.sendAuthorizationConsent(request, response, authenticationResult): "Set requestedScopes = authorizationConsentAuthentication.getRequestedScopes();" is empty;

Problems found in spring-security-oauth2-authorization-server: 1.1.7, 1.2.1, 1.3.1
Success in spring-security-oauth2-authorization-server 1.1.1

@Code-SkyWalker Code-SkyWalker added the type: bug A general bug label Sep 15, 2024
@jgrandja
Copy link
Collaborator

@Code-SkyWalker I tested the demo sample on 1.3.1 and it works as expected.

Please provide a minimal sample that reproduces this issue and I'll look into it further.

@jgrandja jgrandja added status: waiting-for-feedback We need additional information before we can continue and removed type: bug A general bug labels Sep 18, 2024
@jgrandja jgrandja self-assigned this Sep 18, 2024
@Code-SkyWalker
Copy link
Author

Sorry, Here is the minimal sample, if i did anything wrong please let me know

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Sep 19, 2024
@jgrandja
Copy link
Collaborator

@Code-SkyWalker The sample you provided only contains the authorization server but it also needs to contain the oauth2 client (e.g. demo-client) to be a complete working sample.

Please provide a complete working sample, very similar to demo sample, that reproduces the issue. If there are certain steps that I need to follow to reproduce the issue, please document in the README.

@jgrandja jgrandja added status: waiting-for-feedback We need additional information before we can continue and removed status: feedback-provided Feedback has been provided labels Sep 26, 2024
@spring-projects-issues
Copy link
Collaborator

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Oct 3, 2024
@spring-projects-issues
Copy link
Collaborator

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

@spring-projects-issues spring-projects-issues closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2024
@spring-projects-issues spring-projects-issues removed status: waiting-for-feedback We need additional information before we can continue status: feedback-reminder We've sent a reminder that we need additional information before we can continue labels Oct 10, 2024
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

No branches or pull requests

3 participants