Skip to content

Commit

Permalink
NK-577 Add purchases and subscriptions dev console views (#1250)
Browse files Browse the repository at this point in the history
Fix bearer proto security definitions.
Add correct security definition for JWT Authorization token headers so that swagger file is generated correctly.
Change purchases and subscriptions index.
Improve purchases and subscriptions listing pagination.
  • Loading branch information
sesposito authored Jul 26, 2024
1 parent ad3b771 commit 501f9a0
Show file tree
Hide file tree
Showing 49 changed files with 2,533 additions and 975 deletions.
39 changes: 20 additions & 19 deletions apigrpc/apigrpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions apigrpc/apigrpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
}
}
security: {
// Made up security so we can apply "Bearer <JWT_TOKEN>"
key: "BearerJwt";
key: "BearerJwt"
value: {
type: TYPE_INVALID;
type: TYPE_API_KEY
in: IN_HEADER
name: "Authorization"
}
}
security: {
Expand Down
4 changes: 3 additions & 1 deletion apigrpc/apigrpc.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -5388,7 +5388,9 @@
"type": "basic"
},
"BearerJwt": {
"type": ""
"type": "apiKey",
"name": "Authorization",
"in": "header"
},
"HttpKeyAuth": {
"type": "apiKey",
Expand Down
2 changes: 1 addition & 1 deletion apigrpc/apigrpc_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 501f9a0

Please sign in to comment.