Skip to content

Commit

Permalink
Changing Validity notAfter and notBefore back to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
BWPSmith73 committed Jun 20, 2021
1 parent e2f0235 commit 1c35d15
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions events/apigw.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

package events

import (
"time"
)

// APIGatewayProxyRequest contains data coming from the API Gateway proxy
type APIGatewayProxyRequest struct {
Resource string `json:"resource"` // The resource path defined in API Gateway
Expand Down Expand Up @@ -212,8 +208,8 @@ type APIGatewayCustomAuthorizerRequestTypeRequestIdentityClientCert struct {

// APIGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidity contains certificate validity information for the request caller if using mTLS.
type APIGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidity struct {
NotAfter time.Time `json:"notAfter"`
NotBefore time.Time `json:"notBefore"`
NotAfter string `json:"notAfter"`
NotBefore string `json:"notBefore"`
}

// APIGatewayV2HTTPRequestContextAuthentication contains authentication context information for the request caller including client certificate information if using mTLS.
Expand All @@ -232,8 +228,8 @@ type APIGatewayV2HTTPRequestContextAuthenticationClientCert struct {

// APIGatewayV2HTTPRequestContextAuthenticationClientCertValidity contains client certificate validity information for the request caller if using mTLS.
type APIGatewayV2HTTPRequestContextAuthenticationClientCertValidity struct {
NotAfter time.Time `json:"notAfter"`
NotBefore time.Time `json:"notBefore"`
NotAfter string `json:"notAfter"`
NotBefore string `json:"notBefore"`
}

// APIGatewayCustomAuthorizerContext represents the expected format of an API Gateway custom authorizer response.
Expand Down

0 comments on commit 1c35d15

Please sign in to comment.