Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AX-29019: Implement client wildcard redirectURI support #2

Merged
merged 234 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
234 commits
Select commit Hold shift + click to select a range
8064e2b
fix: Update gomplate version to 3.11.3 fix CVE-2022-27665 (#2705)
nabokihms Oct 10, 2022
be3fc2b
build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.0 (#2708)
dependabot[bot] Oct 12, 2022
35b610f
build(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#2…
dependabot[bot] Nov 1, 2022
f40cc81
build(deps): bump google.golang.org/api from 0.98.0 to 0.101.0 (#2720)
dependabot[bot] Nov 1, 2022
fcca962
build(deps): bump github.com/mattn/go-sqlite3 from 1.14.15 to 1.14.16…
dependabot[bot] Nov 1, 2022
5ce65f6
build(deps): bump aquasecurity/trivy-action from 0.7.1 to 0.8.0 (#2723)
dependabot[bot] Nov 1, 2022
99fbe43
build(deps): bump github.com/spf13/cobra from 1.6.0 to 1.6.1 (#2718)
dependabot[bot] Nov 2, 2022
9cf7e1e
build(deps): bump golang from 1.19.2-alpine3.16 to 1.19.3-alpine3.16 …
dependabot[bot] Nov 2, 2022
fcd23cc
TLS configure for OIDC connector (#1632)
Nov 7, 2022
8a65102
Add icon for gitea (#2733)
pinpox Nov 8, 2022
e8d889f
build(deps): bump alpine from 3.16.2 to 3.17.0 (#2746)
dependabot[bot] Dec 6, 2022
5df4a3b
build(deps): bump github.com/prometheus/client_golang (#2735)
dependabot[bot] Dec 6, 2022
d076486
build(deps): bump go.etcd.io/etcd/client/pkg/v3 from 3.5.5 to 3.5.6 (…
dependabot[bot] Dec 6, 2022
2a0e01d
build(deps): bump github.com/Masterminds/sprig/v3 from 3.2.2 to 3.2.3…
dependabot[bot] Dec 7, 2022
de3619b
build(deps): bump golang from 1.19.3-alpine3.16 to 1.19.4-alpine3.16 …
dependabot[bot] Dec 7, 2022
fd7882d
build(deps): bump golang.org/x/crypto from 0.3.0 to 0.4.0 (#2755)
dependabot[bot] Dec 13, 2022
c9400b2
build(deps): bump go.etcd.io/etcd/client/v3 from 3.5.5 to 3.5.6 (#2743)
dependabot[bot] Dec 14, 2022
f2d72d0
build(deps): bump github.com/go-sql-driver/mysql from 1.6.0 to 1.7.0 …
dependabot[bot] Dec 14, 2022
7eabd58
build(deps): bump helm/kind-action from 1.4.0 to 1.5.0 (#2758)
dependabot[bot] Dec 14, 2022
c19c940
build(deps): bump google.golang.org/grpc from 1.50.1 to 1.51.0
dependabot[bot] Dec 13, 2022
84c3353
build(deps): bump google.golang.org/api from 0.101.0 to 0.104.0
dependabot[bot] Dec 14, 2022
d4c6d4f
build(deps): bump google.golang.org/grpc in /api/v2
dependabot[bot] Dec 14, 2022
a742ae4
build(deps): bump golang.org/x/net from 0.3.0 to 0.4.0
dependabot[bot] Dec 15, 2022
7a97563
build(deps): bump entgo.io/ent from 0.11.3 to 0.11.4
dependabot[bot] Dec 14, 2022
dc1c9f5
fix: Do not use connector data from the refresh token field (#2729)
nabokihms Dec 19, 2022
d51eb9a
build(deps): bump google.golang.org/api from 0.104.0 to 0.105.0 (#2760)
dependabot[bot] Dec 22, 2022
14e6f99
Add preferredEmailDomain config option for GitHub connector (#2740)
nobuyo Dec 22, 2022
88c97c5
Update GitHub workflow status (#2765)
nabokihms Dec 22, 2022
f7af8ca
Move unique functionality into getGroups to reduce calls to google (#…
snuggie12 Dec 22, 2022
3d1e362
build(deps): bump golang.org/x/net from 0.4.0 to 0.5.0
dependabot[bot] Jan 5, 2023
6f1b65e
build(deps): bump google.golang.org/api from 0.105.0 to 0.106.0
dependabot[bot] Jan 5, 2023
a15fdf7
build(deps): bump github.com/coreos/go-oidc/v3 from 3.4.0 to 3.5.0
dependabot[bot] Jan 5, 2023
9627cf4
build(deps): bump golang.org/x/crypto from 0.4.0 to 0.5.0
dependabot[bot] Jan 5, 2023
c354d48
build(deps): bump golang.org/x/oauth2 from 0.3.0 to 0.4.0
dependabot[bot] Jan 6, 2023
e7e310b
fix: prevent server side request forgery using Kubernetes storage (#2…
nabokihms Jan 8, 2023
6a89ed6
build(deps): bump entgo.io/ent from 0.11.4 to 0.11.5
dependabot[bot] Jan 9, 2023
4d9abeb
build(deps): bump alpine from 3.17.0 to 3.17.1
dependabot[bot] Jan 10, 2023
5a8814a
build(deps): bump mheap/github-action-required-labels from 2 to 3
dependabot[bot] Jan 2, 2023
97fcbf4
build(deps): bump google.golang.org/api from 0.106.0 to 0.107.0
dependabot[bot] Jan 13, 2023
9e84f84
build(deps): bump golang from 1.19.4-alpine3.16 to 1.19.5-alpine3.16
dependabot[bot] Jan 11, 2023
3e481cd
build(deps): bump google.golang.org/grpc from 1.51.0 to 1.52.0
dependabot[bot] Jan 13, 2023
3396835
build(deps): bump google.golang.org/api from 0.107.0 to 0.108.0
dependabot[bot] Jan 19, 2023
56c544c
build(deps): bump google.golang.org/grpc in /api/v2
dependabot[bot] Jan 19, 2023
60e92fc
chore: Upgrade golangci-lint to v1.50.1 from v1.46.0 (#2790)
dlipovetsky Jan 19, 2023
7c814d6
ci: Use go 1.19 (#2791)
dlipovetsky Jan 22, 2023
75a7325
build(deps): bump go.etcd.io/etcd/client/v3 from 3.5.6 to 3.5.7 (#2798)
dependabot[bot] Jan 23, 2023
88f21ed
build(deps): bump docker/build-push-action from 3 to 4
dependabot[bot] Jan 31, 2023
fc49a12
build(deps): bump golang from 1.19.5-alpine3.16 to 1.20.0-alpine3.16
dependabot[bot] Feb 2, 2023
9b3682f
build(deps): bump aquasecurity/trivy-action from 0.8.0 to 0.9.0
dependabot[bot] Feb 2, 2023
6cb32d5
fix: propagate http client to userInfo requests for OIDC connector (#…
nabokihms Feb 10, 2023
09b5d7f
build(deps): bump alpine from 3.17.1 to 3.17.2
dependabot[bot] Feb 13, 2023
981a649
build(deps): bump aquasecurity/trivy-action from 0.9.0 to 0.9.1
dependabot[bot] Feb 13, 2023
5d9da61
build(deps): bump entgo.io/ent from 0.11.5 to 0.11.8
dependabot[bot] Feb 13, 2023
3d44c49
build(deps): bump golang.org/x/crypto from 0.5.0 to 0.6.0 (#2818)
dependabot[bot] Feb 15, 2023
fbb3e23
fix: return 401 if password is invalid (#2796)
nabokihms Feb 16, 2023
549d4a0
chore: Add a comment about config/email JSON tag bug (#2830)
nabokihms Feb 16, 2023
0a0a158
build(deps): bump golang.org/x/net from 0.5.0 to 0.7.0 (#2828)
dependabot[bot] Feb 18, 2023
34ea9ac
build(deps): bump golang.org/x/net from 0.4.0 to 0.7.0 in /api/v2 (#2…
dependabot[bot] Feb 18, 2023
ec2edc0
feat: Add default robots.txt (#2834)
nabokihms Feb 23, 2023
66eead9
feat: Verify generated files (#2833)
nabokihms Feb 26, 2023
448b4ea
build(deps): bump golang.org/x/sys in /examples (#2837)
dependabot[bot] Mar 3, 2023
cbdf845
build(deps): bump golang.org/x/net in /examples (#2846)
dependabot[bot] Mar 3, 2023
1972bed
build(deps): bump golang from 1.20.0-alpine3.16 to 1.20.1-alpine3.16 …
dependabot[bot] Mar 6, 2023
3c71317
build(deps): bump aquasecurity/trivy-action from 0.9.1 to 0.9.2 (#2850)
dependabot[bot] Mar 11, 2023
6f7f37c
build(deps): bump golang from 1.20.1-alpine3.16 to 1.20.2-alpine3.16 …
dependabot[bot] Mar 11, 2023
da2b004
Skip redirection to approval when it is not requied (#2686)
nobuyo Jan 29, 2023
deaedc1
Revert back personal tasted changes
nobuyo Jan 30, 2023
23bd6db
Add test for skipping approval
nobuyo Jan 30, 2023
3464ccc
feat: Bump dependencies and Makefile refactoring
nabokihms Mar 3, 2023
a471057
Fix openshift context and add a comment
nabokihms Mar 5, 2023
f74872c
feat: Bump gomplate 3.14.4
nabokihms Feb 27, 2023
8e7add3
fix: Run go mod tidy last (fix verify command)
nabokihms Mar 13, 2023
9c78903
build(deps): bump golang.org/x/crypto from 0.6.0 to 0.7.0 (#2856)
dependabot[bot] Mar 14, 2023
17bf652
DEP for rfc 8693 (#2812)
seankhliao Mar 14, 2023
b119783
build(deps): bump golang.org/x/oauth2 from 0.4.0 to 0.6.0 (#2847)
dependabot[bot] Mar 14, 2023
5c98497
build(deps): bump google.golang.org/api from 0.108.0 to 0.112.0
dependabot[bot] Mar 14, 2023
4619257
update nix
sagikazarmark Mar 13, 2023
07a38fb
update linter
sagikazarmark Mar 18, 2023
bdd27e3
chore(deps): update ent
sagikazarmark Mar 18, 2023
cd67be5
chore: regenerate ent
sagikazarmark Mar 18, 2023
d2fa8da
chore: fix linter by temporarily disabling failing ones
sagikazarmark Mar 19, 2023
3e19bb8
build(deps): bump google.golang.org/api from 0.112.0 to 0.114.0
dependabot[bot] Mar 19, 2023
c2913ab
build(deps): bump actions/setup-go from 3 to 4
dependabot[bot] Mar 19, 2023
f40170a
build(deps): bump github.com/russellhaering/goxmldsig
dependabot[bot] Mar 19, 2023
b6fc0f8
build(deps): bump google.golang.org/protobuf from 1.28.1 to 1.30.0
dependabot[bot] Mar 19, 2023
f9a37ae
build(deps): bump google.golang.org/protobuf in /api/v2
dependabot[bot] Mar 20, 2023
1ce641f
build(deps): bump golang.org/x/crypto in /examples
dependabot[bot] Mar 14, 2023
76bfd6f
build(deps): bump google.golang.org/grpc in /api/v2
dependabot[bot] Mar 20, 2023
d8614e0
Bump image in examples/k8s/dex.yaml to v2.32.0
stealthybox Jun 23, 2022
54eb389
chore: upgrade tools
sagikazarmark Mar 20, 2023
452a297
chore: regenerate proto
sagikazarmark Mar 20, 2023
0753e5c
build(deps): bump alpine from 3.17.2 to 3.17.3 (#2879)
dependabot[bot] Mar 31, 2023
f2c291c
build(deps): bump mheap/github-action-required-labels from 3 to 4
dependabot[bot] Apr 3, 2023
7c4d3c8
build(deps): bump google.golang.org/grpc from 1.53.0 to 1.54.0
dependabot[bot] Mar 22, 2023
704c3ee
build(deps): bump golang.org/x/oauth2 from 0.6.0 to 0.7.0
dependabot[bot] Apr 10, 2023
c0445fe
build(deps): bump golang from 1.20.2-alpine3.16 to 1.20.3-alpine3.16
dependabot[bot] Apr 5, 2023
d9ab8dd
build(deps): bump github.com/spf13/cobra from 1.6.1 to 1.7.0
dependabot[bot] Apr 5, 2023
531f678
fix: Do not skip approval screen by default (#2897)
nabokihms Apr 13, 2023
9ce3cc9
chore: add documentation enhancement link
sagikazarmark Apr 21, 2023
1d512d8
build(deps): bump aquasecurity/trivy-action from 0.9.2 to 0.10.0
dependabot[bot] Apr 19, 2023
17cd0ea
build(deps): bump github.com/prometheus/client_golang
dependabot[bot] Apr 14, 2023
982c340
build(deps): bump golang.org/x/crypto from 0.7.0 to 0.8.0
dependabot[bot] Apr 23, 2023
347dcdb
build: add xx to cross-compile binaries in Docker
sagikazarmark Apr 13, 2023
af3a7f3
build: try debian based go image
sagikazarmark Apr 13, 2023
7fcfb66
build: try alpine again
sagikazarmark Apr 14, 2023
f758bd2
build(deps): bump github.com/russellhaering/goxmldsig
dependabot[bot] Apr 28, 2023
8ccedfb
spelling: against
jsoref Apr 27, 2023
c002768
spelling: argocd
jsoref Apr 27, 2023
8eed406
spelling: characters
jsoref Apr 27, 2023
bba2584
spelling: data with
jsoref Apr 27, 2023
c5c1da1
spelling: every time
jsoref Apr 27, 2023
478713f
spelling: github
jsoref Apr 27, 2023
9f0e52a
spelling: gitlab
jsoref Apr 27, 2023
c91bdc6
spelling: in spite
jsoref Apr 27, 2023
6c0eba0
spelling: into
jsoref Apr 27, 2023
8d04f0b
spelling: missing
jsoref Apr 27, 2023
6f473f5
spelling: nonexistent
jsoref Apr 27, 2023
453bc0c
spelling: programmatically
jsoref Apr 27, 2023
ccac398
spelling: running
jsoref Apr 27, 2023
cc5b000
spelling: upon
jsoref Apr 27, 2023
0b67ca1
spelling: use case
jsoref Apr 27, 2023
b5e7f4c
spelling: verified
jsoref Apr 27, 2023
3a42c55
build(deps): bump golang from 1.20.3-alpine3.16 to 1.20.4-alpine3.16 …
dependabot[bot] May 8, 2023
3b17a62
build(deps): bump github.com/lib/pq from 1.10.7 to 1.10.9 (#2922)
dependabot[bot] May 8, 2023
0b31f26
build(deps): bump golang.org/x/oauth2 from 0.7.0 to 0.8.0
dependabot[bot] May 9, 2023
17e149a
build(deps): bump google.golang.org/grpc from 1.54.0 to 1.55.0
dependabot[bot] May 10, 2023
331d78f
build(deps): bump go.etcd.io/etcd/client/pkg/v3 from 3.5.7 to 3.5.8
dependabot[bot] May 9, 2023
e79f2fd
build(deps): bump github.com/beevik/etree from 1.1.0 to 1.1.4 (#2939)
dependabot[bot] May 11, 2023
55d17df
build(deps): bump github.com/go-sql-driver/mysql from 1.7.0 to 1.7.1 …
dependabot[bot] May 11, 2023
c9210e3
ci: replace artifact workflow with a reusable one
sagikazarmark Apr 30, 2023
eafce6a
ci: improve CI workflow, use artifact workflow
sagikazarmark Apr 30, 2023
1ef5841
ci: drop unused docker workflow
sagikazarmark Apr 30, 2023
3723522
ci: drop unused codeql workflow
sagikazarmark Apr 30, 2023
a5e81be
ci: add separate release workflow
sagikazarmark Apr 30, 2023
327b11a
ci: add OpenSSF scorecard analysis
sagikazarmark Apr 30, 2023
a31a674
ci: rename build to test
sagikazarmark Apr 30, 2023
25e73a0
ci: fix workflow syntax
sagikazarmark Apr 30, 2023
563c5ca
ci: fix skopeo copy
sagikazarmark Apr 30, 2023
ba40e8d
ci: fix skopeo copy
sagikazarmark May 1, 2023
b3525bb
ci: disable cache
sagikazarmark May 2, 2023
6b8b669
fix: debug image issue
sagikazarmark May 10, 2023
1cc4da2
ci: disable sbom generation for now
sagikazarmark May 10, 2023
0f60be2
ci: fix docker username and password
sagikazarmark May 11, 2023
f9d82ee
build(deps): bump go.etcd.io/etcd/client/pkg/v3 from 3.5.8 to 3.5.9
dependabot[bot] May 12, 2023
2c16a53
build(deps): bump github/codeql-action from 2.3.1 to 2.3.3
dependabot[bot] May 12, 2023
cdbaa57
build(deps): bump anchore/sbom-action from 0.14.1 to 0.14.2
dependabot[bot] May 12, 2023
3b4e416
build(deps): bump alpine from 3.17.3 to 3.18.0
dependabot[bot] May 11, 2023
ee7aed8
build(deps): bump google.golang.org/grpc in /api/v2
dependabot[bot] May 12, 2023
ef6dc7f
build(deps): bump google.golang.org/api from 0.114.0 to 0.122.0
dependabot[bot] May 12, 2023
6bcf2ec
feat: LDAP case-insensitive DN attribute
nabokihms Feb 15, 2023
54e6a25
build(deps): bump entgo.io/ent from 0.11.10 to 0.12.3
sagikazarmark May 12, 2023
c0a0c04
chore: regenerate code
sagikazarmark May 12, 2023
676b954
build(deps): bump go.etcd.io/etcd/client/v3 from 3.5.7 to 3.5.9
dependabot[bot] May 12, 2023
a73779e
build(deps): bump github.com/prometheus/client_golang
dependabot[bot] May 12, 2023
4f36e26
build(deps): bump helm/kind-action from 1.5.0 to 1.7.0 (#2956)
dependabot[bot] May 18, 2023
d87b658
build(deps): bump github.com/sirupsen/logrus from 1.9.0 to 1.9.2 (#2957)
dependabot[bot] May 18, 2023
d40bea4
build(deps): bump actions/setup-go from 4.0.0 to 4.0.1 (#2949)
dependabot[bot] May 18, 2023
08878e2
build(deps): bump golang.org/x/crypto from 0.8.0 to 0.9.0 (#2948)
dependabot[bot] May 22, 2023
0f620a2
Comment the flaky debugging stage (#2967)
nabokihms May 23, 2023
aa645de
build(deps): bump github.com/coreos/go-oidc/v3 from 3.5.0 to 3.6.0 (#…
dependabot[bot] May 23, 2023
2c62bfb
build(deps): bump google.golang.org/api from 0.122.0 to 0.123.0 (#2959)
dependabot[bot] May 23, 2023
de1c925
build(deps): bump github.com/beevik/etree from 1.1.4 to 1.2.0 (#2947)
dependabot[bot] May 23, 2023
82fd2b8
Fail if OIDC config contains hosted domains (#2937)
nabokihms May 23, 2023
2e0f231
build(deps): bump github/codeql-action from 2.3.3 to 2.3.5
dependabot[bot] May 26, 2023
379c835
build(deps): bump google.golang.org/api from 0.123.0 to 0.124.0
dependabot[bot] May 24, 2023
4d065a2
build(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3
dependabot[bot] May 29, 2023
76d0aa7
build(deps): bump aquasecurity/trivy-action from 0.10.0 to 0.11.0
dependabot[bot] Jun 6, 2023
4724674
build(deps): bump github/codeql-action from 2.3.5 to 2.3.6
dependabot[bot] Jun 2, 2023
a360df9
build(deps): bump actions/dependency-review-action from 3.0.4 to 3.0.6
dependabot[bot] Jun 1, 2023
fa24a1c
build(deps): bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3
dependabot[bot] Jun 5, 2023
f0e89f0
build(deps): bump github.com/mattn/go-sqlite3 from 1.14.16 to 1.14.17
dependabot[bot] Jun 1, 2023
df58506
build(deps): bump google.golang.org/api from 0.124.0 to 0.125.0
dependabot[bot] May 31, 2023
e7e52fd
build(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4
dependabot[bot] Jun 6, 2023
7da06dc
Utilize native git diff feature (#2981)
marcofranssen Jun 6, 2023
cfeaa64
#2895: Add Support for Multiple Admin Emails to Retrieve Group Lists …
vsychov Jun 7, 2023
b852554
build(deps): bump docker/login-action from 2.1.0 to 2.2.0 (#2987)
dependabot[bot] Jun 8, 2023
1da3244
build(deps): bump docker/setup-qemu-action from 2.1.0 to 2.2.0 (#2985)
dependabot[bot] Jun 8, 2023
a04298f
build(deps): bump docker/metadata-action from 4.4.0 to 4.5.0 (#2986)
dependabot[bot] Jun 8, 2023
4cebed5
build(deps): bump docker/setup-buildx-action from 2.5.0 to 2.6.0 (#2988)
dependabot[bot] Jun 8, 2023
c9c020c
build(deps): bump mheap/github-action-required-labels from 4 to 5 (#2…
dependabot[bot] Jun 9, 2023
3256ffd
TLS certs reloader (#2964)
seankhliao Jun 13, 2023
3a80b71
build(deps): bump aquasecurity/trivy-action from 0.11.0 to 0.11.2 (#2…
dependabot[bot] Jun 15, 2023
25aa613
build(deps): bump github/codeql-action from 2.3.6 to 2.20.0 (#3002)
dependabot[bot] Jun 15, 2023
cb1d370
build(deps): bump google.golang.org/api from 0.125.0 to 0.127.0 (#2999)
dependabot[bot] Jun 15, 2023
99cdc11
build(deps): bump docker/setup-buildx-action from 2.6.0 to 2.7.0 (#3001)
dependabot[bot] Jun 15, 2023
937531a
build(deps): bump docker/build-push-action from 4.0.0 to 4.1.1 (#3003)
dependabot[bot] Jun 15, 2023
4865c83
build(deps): bump actions/checkout from 3.5.2 to 3.5.3 (#2993)
dependabot[bot] Jun 15, 2023
85fa4ef
build(deps): bump github.com/go-ldap/ldap/v3 from 3.4.4 to 3.4.5 (#2997)
dependabot[bot] Jun 15, 2023
213d004
build(deps): bump golang.org/x/net from 0.10.0 to 0.11.0 (#3004)
dependabot[bot] Jun 15, 2023
fefaec9
build(deps): bump alpine from 3.18.0 to 3.18.2 (#3008)
dependabot[bot] Jun 16, 2023
e5870e3
build(deps): bump docker/metadata-action from 4.5.0 to 4.6.0 (#3007)
dependabot[bot] Jun 16, 2023
4e13339
build(deps): bump golang.org/x/oauth2 from 0.8.0 to 0.9.0
dependabot[bot] Jun 15, 2023
d930e88
build(deps): bump google.golang.org/grpc from 1.55.0 to 1.56.0
dependabot[bot] Jun 16, 2023
435a2aa
build(deps): bump github.com/prometheus/client_golang
dependabot[bot] Jun 16, 2023
dc18bad
build(deps): bump google.golang.org/grpc from 1.56.0 to 1.56.1 (#3016)
dependabot[bot] Jun 23, 2023
2cc923d
build(deps): bump github/codeql-action from 2.20.0 to 2.20.1 (#3015)
dependabot[bot] Jun 24, 2023
b1b093a
build(deps): bump anchore/sbom-action from 0.14.2 to 0.14.3 (#3014)
dependabot[bot] Jun 24, 2023
d6eb59d
build(deps): bump ossf/scorecard-action from 2.1.3 to 2.2.0 (#3019)
dependabot[bot] Jun 26, 2023
f367860
build(deps): bump google.golang.org/api from 0.127.0 to 0.129.0 (#3022)
dependabot[bot] Jun 30, 2023
e641203
build(deps): bump docker/setup-buildx-action from 2.7.0 to 2.8.0 (#3023)
dependabot[bot] Jun 30, 2023
15c8d11
OAuth 2.0 Token Exchange (#2806)
seankhliao Jul 1, 2023
334efae
include granttypes in example config (#3027)
seankhliao Jul 2, 2023
461f6e6
Implement GetClient gRPC endpoint (#2972)
marcofranssen Jul 6, 2023
03ee18f
build(deps): bump golang.org/x/net from 0.11.0 to 0.12.0 (#3036)
dependabot[bot] Jul 6, 2023
2aa4405
build(deps): bump google.golang.org/api from 0.129.0 to 0.130.0 (#3034)
dependabot[bot] Jul 6, 2023
d01da04
build(deps): bump golang.org/x/crypto from 0.10.0 to 0.11.0 (#3035)
dependabot[bot] Jul 6, 2023
bfdad3d
build(deps): bump helm/kind-action from 1.7.0 to 1.8.0 (#3041)
dependabot[bot] Jul 12, 2023
297159d
Update oauth2.go
Cedric-Magnan May 18, 2022
18417d6
Update server.go
Cedric-Magnan May 18, 2022
1e73f91
fix: linting with gofmt
Cedric-Magnan Jun 1, 2022
2302233
build(deps): bump google.golang.org/api from 0.130.0 to 0.134.0 (#3054)
dependabot[bot] Aug 1, 2023
fd2fbb5
build(deps): bump docker/setup-buildx-action from 2.8.0 to 2.9.1 (#3043)
dependabot[bot] Aug 1, 2023
498ac4e
build(deps): bump github/codeql-action from 2.20.1 to 2.21.2 (#3057)
dependabot[bot] Aug 1, 2023
4ed23be
verify access tokens by checking getuserinfo during a token exchange …
seankhliao Aug 1, 2023
fa04193
build(deps): bump google.golang.org/grpc from 1.56.1 to 1.57.0 (#3055)
dependabot[bot] Aug 1, 2023
08f3e79
build(deps): bump google.golang.org/protobuf in /api/v2 (#3021)
dependabot[bot] Aug 1, 2023
7d40de4
build(deps): bump google.golang.org/grpc in /api/v2 (#3053)
dependabot[bot] Aug 1, 2023
fa69ebc
build(deps): bump golang.org/x/net from 0.12.0 to 0.13.0
dependabot[bot] Aug 2, 2023
04fed15
build(deps): bump google.golang.org/api from 0.134.0 to 0.138.0
dependabot[bot] Aug 18, 2023
ba877fb
build(deps): bump actions/dependency-review-action from 3.0.6 to 3.0.8
dependabot[bot] Aug 16, 2023
6f63333
build(deps): bump github/codeql-action from 2.21.2 to 2.21.4
dependabot[bot] Aug 15, 2023
4d6b102
build(deps): bump actions/setup-go from 4.0.1 to 4.1.0
dependabot[bot] Aug 9, 2023
a1c4cbb
build(deps): bump alpine from 3.18.2 to 3.18.3
dependabot[bot] Aug 8, 2023
4bba373
build(deps): bump aquasecurity/trivy-action from 0.11.2 to 0.12.0
dependabot[bot] Sep 4, 2023
998c6d4
build(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3
dependabot[bot] Sep 7, 2023
de74f8f
build(deps): bump docker/setup-buildx-action from 2.9.1 to 3.0.0
dependabot[bot] Sep 13, 2023
d8740e0
build(deps): bump actions/checkout from 3.5.3 to 4.1.0
dependabot[bot] Sep 25, 2023
7c807f8
build(deps): bump alpine from 3.18.3 to 3.18.4
dependabot[bot] Sep 29, 2023
214c5ed
build(deps): bump github/codeql-action from 2.21.4 to 2.21.9
dependabot[bot] Sep 28, 2023
9cc00a6
build(deps): bump google.golang.org/api from 0.138.0 to 0.143.0
dependabot[bot] Sep 26, 2023
fafc181
build(deps): bump google.golang.org/grpc from 1.57.0 to 1.58.2
dependabot[bot] Sep 30, 2023
9cb25c4
build(deps): bump google.golang.org/grpc in /api/v2
dependabot[bot] Sep 30, 2023
d41ffef
Move debug log on OIDC calls to connector
cehoffman Nov 16, 2022
4bf9479
AX-29019: Implement wildcard redirect URI support
michaelliau Oct 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 65 additions & 1 deletion server/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ func validateRedirectURI(client storage.Client, redirectURI string) bool {
// Allow named RedirectURIs for both public and non-public clients.
// This is required make PKCE-enabled web apps work, when configured as public clients.
for _, uri := range client.RedirectURIs {
if redirectURI == uri {
if redirectURI == uri || isWildcardRedirectURIMatch(uri, redirectURI) {
return true
}
}
Expand Down Expand Up @@ -654,6 +654,70 @@ func validateRedirectURI(client storage.Client, redirectURI string) bool {
return err == nil && host == "localhost"
}

func isWildcardRedirectURIMatch(wildcardURI, redirectURI string) bool {
parsedWildcardURI, err := url.Parse(wildcardURI)
if err != nil {
return false
}

// Wildcard URIs must be https
if parsedWildcardURI.Scheme != "https" {
return false
}

// Wildcard URIs only apply to URIs with subdomains
wildcardDomains := strings.Split(parsedWildcardURI.Hostname(), ".")
if len(wildcardDomains) < 3 {
return false
}

// Wildcard URIs may only contain a single '*' and it must be in the lowest level domain
if strings.Count(wildcardURI, "*") != 1 {
return false
}
if !strings.Contains(wildcardDomains[0], "*") {
return false
}
michaelliau marked this conversation as resolved.
Show resolved Hide resolved

parsedRedirectURI, err := url.Parse(redirectURI)
if err != nil {
return false
}
redirectDomains := strings.Split(parsedRedirectURI.Hostname(), ".")
michaelliau marked this conversation as resolved.
Show resolved Hide resolved

return parsedRedirectURI.Scheme == "https" &&
wildcardMatch(wildcardDomains[0], redirectDomains[0]) &&
strings.Join(wildcardDomains[1:], ".") == strings.Join(redirectDomains[1:], ".") &&
michaelliau marked this conversation as resolved.
Show resolved Hide resolved
parsedWildcardURI.Port() == parsedRedirectURI.Port() &&
parsedWildcardURI.Path == parsedRedirectURI.Path
}

func wildcardMatch(pattern, str string) bool {
if pattern == "*" {
return true
}
// Pattern starts with "*" so str must end with the last part of the pattern
if strings.HasPrefix(pattern, "*") {
return strings.HasSuffix(str, pattern[1:])
}

// Pattern ends with "*" so str must start with the first part of the pattern
if strings.HasSuffix(pattern, "*") {
return strings.HasPrefix(str, pattern[:len(pattern)-1])
}

parts := strings.Split(pattern, "*")

// Pattern doesn't contain "*", just do a simple equality check
if len(parts) == 1 {
return str == pattern
}

// Pattern contains "*" in the middle, so str must start with the first part and end with the last part
return strings.HasSuffix(str, parts[1]) &&
strings.HasPrefix(str[:strings.LastIndex(str, parts[1])], parts[0])
}

func validateConnectorID(connectors []storage.Connector, connectorID string) bool {
for _, c := range connectors {
if c.ID == connectorID {
Expand Down
Loading
Loading