-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add resource indicators #1559
Add resource indicators #1559
Conversation
|
||
module Doorkeeper | ||
module OAuth | ||
class ResourceIndicators |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/Documentation: Missing top-level class documentation comment.
|
||
# generator_spec gem requires such block definition :( | ||
# | ||
# rubocop:disable Style/BlockDelimiters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint/MissingCopEnableDirective: Re-enable Style/BlockDelimiters cop with # rubocop:enable after disabling it.
Insecure Processing of Data (1)
More info on how to fix Insecure Processing of Data in Ruby. 👉 Go to the dashboard for detailed results. 📥 Happy? Share your feedback with us. |
ad38ff9
to
6445b72
Compare
c600965
to
d1f27a6
Compare
d1f27a6
to
d81185f
Compare
d81185f
to
a0ba652
Compare
1ef9fa6
to
81a302b
Compare
81a302b
to
c1f9fbe
Compare
Add resource indicators
Add support for refreshing a resource indicator
c1f9fbe
to
e5041b9
Compare
hey @danielcooper , great work 👍
Yep, I'm for keeping such functionality as an extension. The main idea is to not pollute core gem with everything, but try to make it more flexible and modular.
Hm, good question 🤔 I don't remember when I done something like this with a collection-like params in Rails. But something tells me there should be a god way of doing it |
@nbulaj Thanks for taking a look - what can I do to help get this merged? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@nbulaj Sorry to pester. Are you generally not keen on this feature, the implementation, or is it just a matter of time to review? |
Hey @danielcooper 👋 I love the feature for sure, I just wanted to have such features as a extensions (just like doorkeeper_openid_connect) |
Summary
Adds resource indicator support (#1413) as an optional extension.
Other Information
I've got a few implementation questions:
Should this be an optional extension (with a migration to generate) or just added into the default setup in a disabled state? I'm not clear how best to test the apps when the new migration hasn't been run/generated?
The way
resource
is specified in the RFC is quite inconvenient:Out of the box rails params won't work in this case. You can see I've hacked together a quick fix, do you have any thoughts on a better way of doing this? Maybe it'd be better to only support one
resource
.