Skip to content

Commit

Permalink
Remove passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
SirNexus committed Feb 22, 2024
1 parent 68a5840 commit 9395253
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 117 deletions.
34 changes: 1 addition & 33 deletions api/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ paths:
description: Creates an application of type oauth2. This is intended to be integrated with an Open Id Connect Provider that the IDP Connect implementation integrates with. Note that the `clientSecret` is never stored in the database and is shown to the user only once. Keep this secret to make future requests to the API products in the Portal.
operationId: CreateOAuthApplication
requestBody:
description: (Required) name for creating name of the client. `passthrough` is directly passed to the IDP Connect implementation that will create the client in the Open Id Connect Provider.
description: (Required) name for creating name of the client.
required: true
content:
application/json:
Expand All @@ -23,8 +23,6 @@ paths:
name:
type: string
example: "example-user-pool-developer-1"
passthrough:
type: object
responses:
'201':
content:
Expand All @@ -41,16 +39,6 @@ paths:
clientName:
type: string
example: "example-user-pool-developer-1"
passthroughResponse:
type: object
example: {
UserPoolClient: {
AllowedOAuthScopes: [
"email",
"openid"
],
}
}
description: Successfully created client.
'400':
description: Invalid input.
Expand Down Expand Up @@ -78,11 +66,6 @@ paths:
description: (Required) ID for application to delete.
schema:
type: string
- in: query
name: "passthrough"
description: Optionally include passthrough data as a json string.
schema:
type: string
responses:
'204':
description: Successfully deleted application.
Expand Down Expand Up @@ -127,11 +110,6 @@ paths:
items:
type: string
example: "example-api-product"
passthrough:
type: object
example: {
UserPoolId: "example-user-pool"
}
responses:
'204':
description: Successfully added API Product to application.
Expand Down Expand Up @@ -172,11 +150,6 @@ paths:
properties:
apiProduct:
$ref: '#/components/schemas/ApiProduct'
passthrough:
type: object
example: {
UserPoolId: "example-user-pool"
}
responses:
'201':
description: Successfully created API Product.
Expand Down Expand Up @@ -212,11 +185,6 @@ paths:
description: (Required) Name of the API Product we'd like to delete.
schema:
type: string
- in: query
name: "passthrough"
description: Optionally include passthrough data.
schema:
type: string
responses:
'204':
description: Successfully deleted API Product.
Expand Down
57 changes: 17 additions & 40 deletions pkg/api/v1/server.gen.go

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

50 changes: 24 additions & 26 deletions pkg/api/v1/spec.gen.go

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

21 changes: 3 additions & 18 deletions pkg/api/v1/types.gen.go

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

0 comments on commit 9395253

Please sign in to comment.