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

[1.13] New OAuth2 middleware with token persistence #2967

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d56685d
Refactored metadata parsing
ItalyPaleAle Jul 1, 2023
e7ec184
WIP - some more refactorings
ItalyPaleAle Jul 1, 2023
3cc968b
Working on it
ItalyPaleAle Jul 2, 2023
3e9f658
WIP
ItalyPaleAle Jul 2, 2023
d190ba6
Enable compression in JWTs
ItalyPaleAle Jul 3, 2023
37f3542
Show an error if cookie is too large
ItalyPaleAle Jul 3, 2023
383aac5
💄 and remove now-ineffective tests
ItalyPaleAle Jul 3, 2023
b05f23f
Split cookie component into its own
ItalyPaleAle Jul 3, 2023
1b5e0be
Created header component + fixes
ItalyPaleAle Jul 3, 2023
dee80af
Added metadata.yaml for components
ItalyPaleAle Jul 3, 2023
5140149
Use official fork for github.com/lestrrat-go/jwx/v2
ItalyPaleAle Jul 3, 2023
a0c1548
Merged the two components into a single one
ItalyPaleAle Jul 5, 2023
4990d73
Fixed metadata
ItalyPaleAle Jul 5, 2023
77c2f87
Make tokenCompressionThreshold a const
ItalyPaleAle Jul 6, 2023
094dedf
Some unit tests
ItalyPaleAle Jul 6, 2023
cdd00ce
Added tests
ItalyPaleAle Jul 6, 2023
9cd9a8e
💄
ItalyPaleAle Jul 6, 2023
0501f3c
Merge branch 'master' into oauth2-mw-persistence3
ItalyPaleAle Jul 7, 2023
b01e8b0
Merge branch 'master' into oauth2-mw-persistence3
ItalyPaleAle Jul 10, 2023
95badf7
Merge branch 'master' into oauth2-mw-persistence3
ItalyPaleAle Jul 11, 2023
78b616e
Merge branch 'master' of https://github.com/dapr/components-contrib i…
ItalyPaleAle Jul 20, 2023
45f7c85
Merge branch 'master' into oauth2-mw-persistence3
ItalyPaleAle Jul 21, 2023
1b81b5d
Merge branch 'master' into oauth2-mw-persistence3
ItalyPaleAle Aug 2, 2023
1239d22
Merge branch 'main' of https://github.com/dapr/components-contrib int…
ItalyPaleAle Jan 16, 2024
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
19 changes: 4 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ require (
github.com/dapr/kit v0.11.3
github.com/didip/tollbooth/v7 v7.0.1
github.com/eclipse/paho.mqtt.golang v1.4.3
github.com/fasthttp-contrib/sessions v0.0.0-20160905201309-74f6ac73d5d5
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32
github.com/go-chi/chi/v5 v5.0.8
github.com/go-redis/redis/v8 v8.11.5
github.com/go-sql-driver/mysql v1.7.1
github.com/go-zookeeper/zk v1.0.3
Expand Down Expand Up @@ -151,7 +151,6 @@ require (
github.com/Workiva/go-datastructures v1.0.53 // indirect
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 // indirect
github.com/agnivade/levenshtein v1.1.1 // indirect
github.com/ajg/form v1.5.1 // indirect
github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4 // indirect
github.com/alibabacloud-go/debug v0.0.0-20190504072949-9472017b5c68 // indirect
github.com/alibabacloud-go/endpoint-util v1.1.0 // indirect
Expand Down Expand Up @@ -202,7 +201,6 @@ require (
github.com/facebookgo/clock v0.0.0-20150410010913-600d898af40a // indirect
github.com/fatih/color v1.15.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/gavv/httpexpect v2.0.0+incompatible // indirect
github.com/go-kit/kit v0.10.0 // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.5.1 // indirect
Expand Down Expand Up @@ -237,7 +235,6 @@ require (
github.com/google/flatbuffers v2.0.8+incompatible // indirect
github.com/google/gnostic v0.6.9 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26 // indirect
github.com/google/s2a-go v0.1.4 // indirect
Expand All @@ -257,7 +254,6 @@ require (
github.com/hashicorp/raft v1.4.0 // indirect
github.com/hashicorp/serf v0.10.1 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/imkira/go-interpol v1.1.0 // indirect
github.com/influxdata/line-protocol v0.0.0-20210922203350-b1ad95c89adf // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
Expand All @@ -272,8 +268,6 @@ require (
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/k0kubun/pp v3.0.1+incompatible // indirect
github.com/kataras/go-errors v0.0.3 // indirect
github.com/kataras/go-serializer v0.0.4 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/klauspost/compress v1.16.5 // indirect
github.com/knadh/koanf v1.4.1 // indirect
Expand All @@ -292,7 +286,6 @@ require (
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.18 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/microcosm-cc/bluemonday v1.0.21 // indirect
github.com/miekg/dns v1.1.43 // indirect
github.com/minio/highwayhash v1.0.2 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
Expand All @@ -301,7 +294,6 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/montanaflynn/stats v0.7.0 // indirect
github.com/moul/http2curl v1.0.0 // indirect
github.com/mschoch/smat v0.2.0 // indirect
github.com/mtibben/percent v0.2.1 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
Expand Down Expand Up @@ -330,10 +322,8 @@ require (
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
github.com/robfig/cron v1.2.0 // indirect
github.com/rs/zerolog v1.28.0 // indirect
github.com/russross/blackfriday v1.6.0 // indirect
github.com/segmentio/asm v1.2.0 // indirect
github.com/sendgrid/rest v2.6.9+incompatible // indirect
github.com/sergi/go-diff v1.2.0 // indirect
github.com/shirou/gopsutil/v3 v3.22.2 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/sony/gobreaker v0.5.0 // indirect
Expand All @@ -353,11 +343,8 @@ require (
github.com/xdg-go/stringprep v1.0.4 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect
github.com/yashtewari/glob-intersection v0.1.0 // indirect
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect
github.com/yudai/gojsondiff v1.0.0 // indirect
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
github.com/yuin/gopher-lua v1.1.0 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
go.etcd.io/etcd/api/v3 v3.5.9 // indirect
Expand Down Expand Up @@ -386,7 +373,6 @@ require (
gopkg.in/gorethink/gorethink.v4 v4.1.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/kataras/go-serializer.v0 v0.0.4 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
k8s.io/klog/v2 v2.80.1 // indirect
Expand Down Expand Up @@ -418,3 +404,6 @@ replace github.com/Shopify/sarama => github.com/Shopify/sarama v1.37.2

// this is a fork which addresses a performance issues due to go routines.
replace dubbo.apache.org/dubbo-go/v3 => dubbo.apache.org/dubbo-go/v3 v3.0.3-0.20230118042253-4f159a2b38f3

// TODO: Remove when version 2.0.12 is released
replace github.com/lestrrat-go/jwx/v2 => github.com/lestrrat-go/jwx/v2 v2.0.11-0.20230703012827-2d138a353358
Loading