Skip to content

Instantly share code, notes, and snippets.

View vranystepan's full-sized avatar
🏞️
working from forest

Štěpán Vraný vranystepan

🏞️
working from forest
View GitHub Profile
version: "3.8"
services:
frontend:
image: nginx
labels:
- traefik.http.routers.my-container.rule=Host(`lab01.stepanvrany.cz`)
package main
import (
"errors"
"fmt"
"github.com/aws/aws-lambda-go/lambda"
"github.com/golang-jwt/jwt"
"log"
)
package main
type AuthorizerV2ResponsePolicyStatement struct {
Action string `json:"Action"`
Effect string `json:"Effect"`
Resource []string `json:"Resource"`
}
type AuthorizerV2ResponsePolicyDocument struct {
Version string `json:"Version"`
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
sam-tutorial-02
Sample SAM Template for sam-tutorial-02
Globals:
Function:
Timeout: 5
Resources:
package main
import (
"errors"
"github.com/aws/aws-lambda-go/events"
"strings"
)
type AuthorizerV2Requests struct {
Version string `json:"version"`
.
├── Makefile
├── README.md
├── authorizer
│   └── main.go
├── go.mod
├── go.sum
├── issuer
│   └── main.go
├── samconfig.toml
package main
import (
"log"
"time"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
"github.com/golang-jwt/jwt"
"github.com/google/uuid"
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
sam-tutorial-02
Sample SAM Template for sam-tutorial-02
Globals:
Function:
Timeout: 5
Resources:
.
├── Makefile
├── README.md
├── go.mod
├── go.sum
├── hello-world
│   ├── main.go
│   └── main_test.go
└── template.yaml
{
"iss": "toptal.com",
"exp": 1426420800,
"https://www.toptal.com/jwt_claims/is_admin": true,
"company": "Toptal",
"awesome": true
}