diff --git a/.env.example b/.env.example index 73eaa7bed..4a716a3ca 100644 --- a/.env.example +++ b/.env.example @@ -39,6 +39,8 @@ TINYAUTH_SERVER_SOCKETPATH= # auth config +# Linking mode for users (username, email, both). +TINYAUTH_AUTH_LINKINGMODE="both" # List of allowed IPs or CIDR ranges. TINYAUTH_AUTH_IP_ALLOW= # List of blocked IPs or CIDR ranges. @@ -245,10 +247,10 @@ TINYAUTH_LDAP_GROUPCACHETTL=900 # experimental config -# Enable the OAuth bridge, uses a new way to format OAuth user information. -TINYAUTH_EXPERIMENTAL_OAUTHBRIDGEENABLED=false # Disable the fallback to forward_auth modules when auth_request or ext_authz fail. TINYAUTH_EXPERIMENTAL_DISABLEAUTHMODULEFALLBACK=false +# Disable the generation of additional OAuth user information, avoids things like myuser_myprovider. +TINYAUTH_EXPERIMENTAL_NOOAUTHUSERINFOGEN=false # tailscale config diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc33272d8..46f68083e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: - name: Setup go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: "^1.26.4" + go-version: "^1.27.3" - name: Go dependencies run: go mod download diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 4cad0be2c..fcf3ad177 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -70,7 +70,7 @@ jobs: - name: Install go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: "^1.26.4" + go-version: "^1.27.3" - name: Install frontend dependencies working-directory: ./frontend @@ -119,7 +119,7 @@ jobs: - name: Install go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: "^1.26.4" + go-version: "^1.27.3" - name: Install frontend dependencies working-directory: ./frontend diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f282dfb15..8352aacf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,7 +48,7 @@ jobs: - name: Install go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: "^1.26.4" + go-version: "^1.27.3" - name: Install frontend dependencies working-directory: ./frontend @@ -94,7 +94,7 @@ jobs: - name: Install go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: "^1.26.4" + go-version: "^1.27.3" - name: Install frontend dependencies working-directory: ./frontend diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1cc20685b..2ac52c61e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ Contributing to Tinyauth is straightforward. Follow the steps below to set up a ## Requirements - pnpm -- Golang v1.26.4 or later +- Golang v1.27.3 or later - Git - Docker - Make diff --git a/Dockerfile b/Dockerfile index e5f891a8f..d4be238b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ COPY ./frontend/vite.config.ts ./ RUN pnpm run build # Builder -FROM golang:1.26-alpine3.23 AS builder +FROM golang:1.27-alpine3.23 AS builder ARG VERSION ARG COMMIT_HASH diff --git a/Dockerfile.dev b/Dockerfile.dev index d4a9c3861..ff58ec098 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM golang:1.26-alpine3.23 +FROM golang:1.27-alpine3.23 WORKDIR /tinyauth diff --git a/Dockerfile.distroless b/Dockerfile.distroless index f599c49ca..f7d60babf 100644 --- a/Dockerfile.distroless +++ b/Dockerfile.distroless @@ -22,7 +22,7 @@ COPY ./frontend/vite.config.ts ./ RUN pnpm run build # Builder -FROM golang:1.26-alpine3.23 AS builder +FROM golang:1.27-alpine3.23 AS builder ARG VERSION ARG COMMIT_HASH diff --git a/cmd/tinyauth/create_oidc_client.go b/cmd/tinyauth/create_oidc_client.go index 2ab4f084a..4952d7313 100644 --- a/cmd/tinyauth/create_oidc_client.go +++ b/cmd/tinyauth/create_oidc_client.go @@ -34,7 +34,7 @@ func createOidcClientCmd() *cli.Command { u := uuid.New() clientId := u.String() - clientSecret := "ta-" + utils.GenerateString(61) + clientSecret := "ta-" + utils.GenerateSecureString(61) uclientName := strings.ToUpper(clientName) lclientName := strings.ToLower(clientName) diff --git a/frontend/src/components/domain-warning/domain-warning.tsx b/frontend/src/components/domain-warning/domain-warning.tsx index d8e9eed92..c90f64bff 100644 --- a/frontend/src/components/domain-warning/domain-warning.tsx +++ b/frontend/src/components/domain-warning/domain-warning.tsx @@ -20,7 +20,7 @@ export const DomainWarning = (props: Props) => { const { t } = useTranslation(); const { search } = useLocation(); - const searchParams = new URLSearchParams(search); + const searchParams = (new URLSearchParams(search)).toString(); return ( @@ -45,7 +45,7 @@ export const DomainWarning = (props: Props) => {