Skip to content

Commit 850e19a

Browse files
authored
Merge pull request #9 from riptideslabs/anthropic-wid
Add RFC 7523 JWT-bearer token exchange provider and improve code structure
2 parents c62a537 + 5ce46c8 commit 850e19a

18 files changed

Lines changed: 503 additions & 22 deletions

File tree

.github/workflows/go.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,22 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
18-
19-
- name: Set up Go
20-
uses: actions/setup-go@v5
21-
with:
22-
go-version-file: go.mod
23-
- name: vet
24-
run: make vet
25-
26-
- name: fmt
27-
run: make fmt
28-
29-
- name: golangci-lint
30-
uses: golangci/golangci-lint-action@v7
31-
with:
32-
version: v2.0
33-
34-
- name: Build
35-
run: go build -v ./...
17+
- uses: actions/checkout@v4
3618

19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version-file: go.mod
23+
- name: vet
24+
run: make vet
25+
26+
- name: fmt
27+
run: make fmt
28+
29+
- name: golangci-lint
30+
uses: golangci/golangci-lint-action@v7
31+
with:
32+
version: v2.9
33+
34+
- name: Build
35+
run: go build -v ./...

.golangci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ linters:
2323
- varnamelen
2424
- wrapcheck
2525
- wsl
26+
- funcorder
27+
- wsl_v5
28+
- noinlineerr
2629
settings:
2730
gocyclo:
2831
min-complexity: 20

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ GOPRIVATE = github.com/riptidesio,go.riptides.io
99

1010
# Dependency versions
1111
LICENSEI_VERSION = 0.9.0
12-
GOLANGCI_VERSION = 2.0.2
12+
GOLANGCI_VERSION = 2.9.0
1313
LICSENSEI_VERSION = 0.0.1
1414

1515
.PHONY: help

pkg/aws/option.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ type (
1515
}
1616
credentialsOption struct {
1717
option.Option
18+
1819
f func(*credentialsConfig)
1920
}
2021
)

pkg/azure/option.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ type (
1515
}
1616
credentialsOption struct {
1717
option.Option
18+
1819
f func(*credentialsConfig)
1920
}
2021
)

pkg/gcp/option.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type (
1717
}
1818
credentialsOption struct {
1919
option.Option
20+
2021
f func(*credentialsConfig)
2122
}
2223
)

pkg/gcp/sts.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616

1717
type stsAccessTokenSource struct {
1818
oauth2.TokenSource
19+
1920
stsService *stsv1.Service
2021

2122
idTokenProvider token.IdentityTokenProvider

pkg/generic/option.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type (
1717
}
1818
credentialsOption struct {
1919
option.Option
20+
2021
f func(*credentialsConfig)
2122
}
2223
)

pkg/k8ssecret/option.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ type (
1212
}
1313
credentialsOption struct {
1414
option.Option
15+
1516
f func(*credentialsConfig)
1617
}
1718
)

pkg/oauth2cc/option.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type (
1616
}
1717
credentialsOption struct {
1818
option.Option
19+
1920
f func(*credentialsConfig)
2021
}
2122
)

0 commit comments

Comments
 (0)