-
Notifications
You must be signed in to change notification settings - Fork 137
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
[SDK-4546] Add orgs in client credentials support #540
Conversation
page: options.fetch(:page, nil), | ||
include_totals: options.fetch(:include_totals, nil) | ||
} | ||
path = "#{organizations_client_grants_path(organization_id)}" |
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.
Is it necessary to interpolate the return value, if organizations_client_grants_path(organization_id)
returns a string?
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.
Maybe not? Am just being consistent with the rest of the file https://github.com/auth0/ruby-auth0/pull/540/files/43bb301afee4d5ebd923eb897b53b998bc3465b6#diff-3936cbc470adbe60f39a627f01d4259b0c1121de790b4e7d3144c536f073ccf7R324
body = {} | ||
body[:grant_id] = grant_id | ||
|
||
path = "#{organizations_client_grants_path(organization_id)}" |
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.
Same as before, is the string interpolation necessary?
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.
Same as before, just being consistent...
@@ -11,13 +11,15 @@ module ClientGrants | |||
# @param audience [string] The audience of the client grant to retrieve. | |||
# @param page [int] Page number to get, 0-based. | |||
# @param per_page [int] Results per page if also passing a page number. | |||
# @param allow_any_organization [bool] Optional filter on allow_any_organization. |
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.
Should we expand a bit on what allow_any_organization
does?
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.
I'd agree if you were getting/setting the allow_any_organization
field, but this is a filter on the value
Co-authored-by: Rita Zerrizuela <[email protected]>
Co-authored-by: Rita Zerrizuela <[email protected]>
Co-authored-by: Rita Zerrizuela <[email protected]>
Changes