Conversation
c94fc68 to
9a8387b
Compare
89f24ad to
1b2743b
Compare
OAuth2PaymentGatewayProfileApiController
20d40b7 to
44e5dd7
Compare
There was a problem hiding this comment.
@matiasperrone-exo Looking at this I don't see "oauth2_security_scope" defined anywhere.
0c2cca6 to
cc60f7c
Compare
@caseylocker thanks! I added a new security schema and replaced with the correct scopes |
smarcet
left a comment
There was a problem hiding this comment.
@matiasperrone-exo please review comments
ecdc3d9 to
f179b81
Compare
627f001 to
752af36
Compare
|
@caseylocker Please review again. All the conflicts were resolved, the security schema created and also the related security roles were included. |
There was a problem hiding this comment.
@matiasperrone-exo The format of the security definitions is incorrect. Missing inner array brackets around the scopes:
// Current (INVALID)
security: [['summit_payment_gateway_oauth2' =>
SummitScopes::ReadAllSummitData,
SummitScopes::ReadPaymentProfiles
]],
// Required (CORRECT)
security: [['summit_payment_gateway_oauth2' => [
SummitScopes::ReadAllSummitData,
SummitScopes::ReadPaymentProfiles
]]],
We're also missing the operationId on all endpoints. Endpoints and suggestions...
| GET /api/v1/summits/{id}/payment-gateway-profiles | getAllPaymentGatewayProfiles |
|---|---|
| GET /api/v1/summits/{id}/payment-gateway-profiles/{payment_profile_id} | getPaymentGatewayProfile |
| POST /api/v1/summits/{id}/payment-gateway-profiles | createPaymentGatewayProfile |
| PUT /api/v1/summits/{id}/payment-gateway-profiles/{payment_profile_id} | updatePaymentGatewayProfile |
| DELETE /api/v1/summits/{id}/payment-gateway-profiles/{payment_profile_id} | deletePaymentGatewayProfile |
0250dff to
0426fe9
Compare
caseylocker
left a comment
There was a problem hiding this comment.
Please double check your security scopes syntax. 4 are missing array brackets.
// WRONG
'summit_payment_gateway_oauth2' =>
SummitScopes::ReadAllSummitData,
SummitScopes::ReadPaymentProfiles
// Correct
security: [
[
'summit_payment_gateway_oauth2' => [
SummitScopes::ReadAllSummitData,
SummitScopes::ReadPaymentProfiles
]
]
],
…uth2PaymentGatewayProfileApiController.php
0426fe9 to
e33a3c4
Compare
|
Thanks @caseylocker for the comments. Now is ready to review again. I fixed the missing brackets and the rebase conflicts |
Task:
Ref: https://app.clickup.com/t/86b6wkgxj