-
Notifications
You must be signed in to change notification settings - Fork 170
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
[oidc] do not useaud
JWT claim [THREESCALE-2263]
#1007
Conversation
f1a23dc
to
96f7768
Compare
@@ -91,7 +91,7 @@ function _M:get_all(service_id) | |||
|
|||
local report = keys_helper.report_from_key_batched_report(key, value) | |||
|
|||
if value and value > 0 and report.service_id == service_id then | |||
if value and value > 0 and report and report.service_id == service_id then |
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 think that the failing test was because of this:
APIcast/t/apicast-policy-3scale-batcher.t
Line 613 in e825115
aud => 'appid', |
azp => "appid"
.
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.
Yes, but still report_from_key_batched_report
can return nil
and this will crash. That should not happen.
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.
Yes, that too. I think that apart from that, we should add a warning in report_from_key_batched_report
, because if it returns nil, it means that the policy received a combination of "auth params" (app_id, app_key, ...) that it's not supported.
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.
That probably deserves its own PR with a test. Will create one.
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.
c4726ae
to
50d7e6d
Compare
aud
JWT claimaud
JWT claim [THREESCALE-2263]
it might not contain client_id, so better not to use it #988 (comment)
it might not contain client_id, so better not to use it
#988 (comment)