8 Commits

Author SHA1 Message Date
01521de15c fix(deps): update module golang.org/x/oauth2 to v0.35.0 (#21)
Some checks failed
Release / Tag release (push) Successful in 27s
Release / Create Release (push) Successful in 2s
Release / Publish Docker Images (push) Failing after 1m42s
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [golang.org/x/oauth2](https://pkg.go.dev/golang.org/x/oauth2) | [`v0.34.0` → `v0.35.0`](https://cs.opensource.google/go/x/oauth2/+/refs/tags/v0.34.0...refs/tags/v0.35.0) | ![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2foauth2/v0.35.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2foauth2/v0.34.0/v0.35.0?slim=true) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My40LjIiLCJ1cGRhdGVkSW5WZXIiOiI0My40LjIiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInR5cGUvZGVwZW5kZW5jaWVzIl19-->

Reviewed-on: #21
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
2026-02-14 13:32:47 +00:00
e35411dd81 chore(deps): update golang docker tag to v1.26 (#23)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang | stage | minor | `1.25` → `1.26` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My44LjAiLCJ1cGRhdGVkSW5WZXIiOiI0My44LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInR5cGUvZGVwZW5kZW5jaWVzIl19-->

Reviewed-on: #23
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
2026-02-14 13:32:29 +00:00
a1f9b33846 chore(deps): update actions/checkout action to v6.0.2 (#19)
Some checks failed
Release / Tag release (push) Successful in 21s
Release / Create Release (push) Successful in 8s
Release / Publish Docker Images (push) Failing after 2m3s
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
2026-01-22 17:15:54 +00:00
b90ecbd49a Update renovate.json 2026-01-19 20:23:28 +00:00
e6062779f7 chore(ci): add workflow for building Docker images on release
Some checks failed
Release / Tag release (push) Successful in 7s
Release / Create Release (push) Successful in 1s
Release / Publish Docker Images (push) Failing after 1m23s
2026-01-06 19:14:50 +00:00
47ed3fc628 feat(oidc claims): extend Claims struct with additional fields for user attributes 2026-01-06 19:14:40 +00:00
2cf53e3945 fix(deps): update module golang.org/x/oauth2 to v0.34.0 (#17)
Some checks failed
Build Docker / Create Docker Image (release) Successful in 1m32s
Release / Tag release (push) Successful in 8s
Release / Create Release (push) Successful in 3s
Release / Publish Docker Images (push) Failing after 1m9s
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [golang.org/x/oauth2](https://pkg.go.dev/golang.org/x/oauth2) | [`v0.33.0` -> `v0.34.0`](https://cs.opensource.google/go/x/oauth2/+/refs/tags/v0.33.0...refs/tags/v0.34.0) | ![age](https://developer.mend.io/api/mc/badges/age/go/golang.org%2fx%2foauth2/v0.34.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/golang.org%2fx%2foauth2/v0.33.0/v0.34.0?slim=true) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4zOS40IiwidXBkYXRlZEluVmVyIjoiNDIuMzkuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=-->

Reviewed-on: #17
Reviewed-by: Luke Tainton <luke@tainton.uk>
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
2025-12-08 22:22:38 +00:00
cd5db40cdf chore(deps): update actions/checkout action to v6.0.1 (#15)
Some checks failed
Release / Tag release (push) Successful in 10s
Release / Create Release (push) Successful in 2s
Release / Publish Docker Images (push) Failing after 1m12s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://github.com/actions/checkout) | action | patch | `v6.0.0` -> `v6.0.1` |

---

### Release Notes

<details>
<summary>actions/checkout (actions/checkout)</summary>

### [`v6.0.1`](https://github.com/actions/checkout/releases/tag/v6.0.1)

[Compare Source](https://github.com/actions/checkout/compare/v6.0.0...v6.0.1)

#### What's Changed

- Update all references from v5 and v4 to v6 by [@&#8203;ericsciple](https://github.com/ericsciple) in [#&#8203;2314](https://github.com/actions/checkout/pull/2314)
- Add worktree support for persist-credentials includeIf by [@&#8203;ericsciple](https://github.com/ericsciple) in [#&#8203;2327](https://github.com/actions/checkout/pull/2327)
- Clarify v6 README by [@&#8203;ericsciple](https://github.com/ericsciple) in [#&#8203;2328](https://github.com/actions/checkout/pull/2328)

**Full Changelog**: <https://github.com/actions/checkout/compare/v6...v6.0.1>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4zMC4xIiwidXBkYXRlZEluVmVyIjoiNDIuMzAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=-->

Reviewed-on: #15
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
2025-12-06 11:03:20 +00:00
8 changed files with 41 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ jobs:
REPO: ${{ gitea.repository }} REPO: ${{ gitea.repository }}
- name: Check out repository - name: Check out repository
uses: actions/checkout@v6.0.0 uses: actions/checkout@v6.0.2
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ needs.tag.outputs.tag_name }} ref: ${{ needs.tag.outputs.tag_name }}

View File

@@ -1,4 +1,4 @@
FROM golang:1.25 AS build FROM golang:1.26 AS build
WORKDIR /src WORKDIR /src
COPY go.mod ./ COPY go.mod ./
RUN go mod download RUN go mod download

2
go.mod
View File

@@ -8,7 +8,7 @@ require (
github.com/crewjam/saml v0.5.1 github.com/crewjam/saml v0.5.1
github.com/fsnotify/fsnotify v1.9.0 github.com/fsnotify/fsnotify v1.9.0
github.com/russellhaering/goxmldsig v1.5.0 github.com/russellhaering/goxmldsig v1.5.0
golang.org/x/oauth2 v0.33.0 golang.org/x/oauth2 v0.35.0
gopkg.in/yaml.v3 v3.0.1 gopkg.in/yaml.v3 v3.0.1
) )

4
go.sum
View File

@@ -58,6 +58,10 @@ golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc=
golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
golang.org/x/oauth2 v0.33.0 h1:4Q+qn+E5z8gPRJfmRy7C2gGG3T4jIprK6aSYgTXGRpo= golang.org/x/oauth2 v0.33.0 h1:4Q+qn+E5z8gPRJfmRy7C2gGG3T4jIprK6aSYgTXGRpo=
golang.org/x/oauth2 v0.33.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= golang.org/x/oauth2 v0.33.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw=
golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
golang.org/x/oauth2 v0.35.0 h1:Mv2mzuHuZuY2+bkyWXIHMfhNdJAdwW3FuWeCPYN5GVQ=
golang.org/x/oauth2 v0.35.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI=
golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc= golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=

View File

@@ -95,6 +95,20 @@ func Register(
attrs[samlAttr] = []string{claims.Email} attrs[samlAttr] = []string{claims.Email}
case "name": case "name":
attrs[samlAttr] = []string{claims.Name} attrs[samlAttr] = []string{claims.Name}
case "display_name":
attrs[samlAttr] = []string{claims.DisplayName}
case "email_verified":
if claims.EmailVerified {
attrs[samlAttr] = []string{"true"}
} else {
attrs[samlAttr] = []string{"false"}
}
case "given_name":
attrs[samlAttr] = []string{claims.GivenName}
case "family_name":
attrs[samlAttr] = []string{claims.FamilyName}
case "preferred_username":
attrs[samlAttr] = []string{claims.PreferredUsername}
case "role": case "role":
attrs[samlAttr] = []string{mapRole(claims.Groups, sp)} attrs[samlAttr] = []string{mapRole(claims.Groups, sp)}
} }

View File

@@ -43,6 +43,11 @@ type Claims struct {
Email string `json:"email"` Email string `json:"email"`
Name string `json:"name"` Name string `json:"name"`
Groups []string `json:"groups"` Groups []string `json:"groups"`
DisplayName string `json:"display_name"`
EmailVerified bool `json:"email_verified"`
FamilyName string `json:"family_name"`
GivenName string `json:"given_name"`
PreferredUsername string `json:"preferred_username"`
} }
func (c *Client) AuthCodeURL(state string, extra url.Values) string { func (c *Client) AuthCodeURL(state string, extra url.Values) string {

View File

@@ -19,5 +19,15 @@
}, },
"lockFileMaintenance": { "lockFileMaintenance": {
"enabled": true "enabled": true
},
"packageRules": [
{
"matchDepTypes": ["devDependencies"],
"automerge": true
},
{
"matchUpdateTypes": ["patch"],
"automerge": true
} }
]
} }