1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-06-27 00:51:33 +02:00

Update go version to 1.16

This includes a fix for our samesite cookie parsing. The behaviour
changed in 1.16 so that the default value now leaves it empty, so it's
equivalent to not setting it (as per spec)
This commit is contained in:
Joel Speed
2021-02-17 20:59:46 +00:00
committed by Joel Speed
parent 322308aab5
commit 5fe947eb07
7 changed files with 8 additions and 7 deletions

View File

@ -20,10 +20,10 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up Go 1.15 - name: Set up Go 1.16
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.15.x go-version: 1.16.x
id: go id: go
- name: Get dependencies - name: Get dependencies

View File

@ -8,6 +8,7 @@
## Changes since v7.0.1 ## Changes since v7.0.1
- [#1054](https://github.com/oauth2-proxy/oauth2-proxy/pull/1054) Update to Go 1.16 (@JoelSpeed)
- [#1052](https://github.com/oauth2-proxy/oauth2-proxy/pull/1052) Update golangci-lint to latest version (v1.36.0) (@JoelSpeed) - [#1052](https://github.com/oauth2-proxy/oauth2-proxy/pull/1052) Update golangci-lint to latest version (v1.36.0) (@JoelSpeed)
- [#1043](https://github.com/oauth2-proxy/oauth2-proxy/pull/1043) Refactor Sign In Page rendering and capture all page rendering code in pagewriter package (@JoelSpeed) - [#1043](https://github.com/oauth2-proxy/oauth2-proxy/pull/1043) Refactor Sign In Page rendering and capture all page rendering code in pagewriter package (@JoelSpeed)
- [#1029](https://github.com/oauth2-proxy/oauth2-proxy/pull/1029) Refactor error page rendering and allow debug messages on error (@JoelSpeed) - [#1029](https://github.com/oauth2-proxy/oauth2-proxy/pull/1029) Refactor error page rendering and allow debug messages on error (@JoelSpeed)

View File

@ -1,4 +1,4 @@
FROM golang:1.15-buster AS builder FROM golang:1.16-buster AS builder
ARG VERSION ARG VERSION
# Copy sources # Copy sources

View File

@ -1,4 +1,4 @@
FROM golang:1.15-buster AS builder FROM golang:1.16-buster AS builder
ARG VERSION ARG VERSION
# Copy sources # Copy sources

View File

@ -1,4 +1,4 @@
FROM golang:1.15-buster AS builder FROM golang:1.16-buster AS builder
ARG VERSION ARG VERSION
# Copy sources # Copy sources

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/oauth2-proxy/oauth2-proxy/v7 module github.com/oauth2-proxy/oauth2-proxy/v7
go 1.15 go 1.16
require ( require (
github.com/Bose/minisentinel v0.0.0-20200130220412-917c5a9223bb github.com/Bose/minisentinel v0.0.0-20200130220412-917c5a9223bb

View File

@ -76,7 +76,7 @@ func ParseSameSite(v string) http.SameSite {
case "none": case "none":
return http.SameSiteNoneMode return http.SameSiteNoneMode
case "": case "":
return http.SameSiteDefaultMode return 0
default: default:
panic(fmt.Sprintf("Invalid value for SameSite: %s", v)) panic(fmt.Sprintf("Invalid value for SameSite: %s", v))
} }