-
Notifications
You must be signed in to change notification settings - Fork 1.3k
The authorize request should fail if scope request parameter is not provided #288
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
Comments
@anoopgarlapati Would you be interested in submitting a PR for this? |
@jgrandja Yes, I'm interested in submitting a PR for this. |
@anoopgarlapati I've been giving this some further thought and I now feel that we should not add this There are use cases where the If we add this How can we address these parts in the spec?
Part 1:
This responsibility really belongs in the "product" and not the "framework". The provider product that leverages the framework will define these kinds of "policies" and document in their reference. Default values are not necessarily statically defined but could be advanced and derived from multiple sources at runtime. Based on this alone, it makes sense that the provider product owns this responsibility. The framework should only provide extension points to allow the product to derive the default scopes, which is already possible via the Part 2:
Applying this as the default behaviour will be very restrictive. However, we can easily achieve this behaviour by allowing applications to customize the I've updated the issue description in #139:
What do you think? |
@jgrandja I agree with both the parts. It does seem to be too restrictive to reject the request as default behavior and as long as it is easily customizable it should not be much of a hassle for product teams to define this behavior if they want. |
Currently a client performing authorize request can omit the
scope
parameter and receive an access token without any scopes. This is neither useful nor the expected behavior for many authorization servers.As per RFC 6749 section 3.3:
As per the above criterion, the default behavior provided by the project should be changed to reject the request if
scope
parameter is not provided. Ability to customize this default behavior for using a pre-defined value as an alternative behavior suggested in the spec would be provided by custom configuration that would be delivered in #139.The text was updated successfully, but these errors were encountered: