mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-29 00:47:17 +02:00
HTTP/3 Support (#5349)
* wip * http3 support * add integration test * move some quic code * fix codec type * casing * add alt-svc header * add quic unit test
This commit is contained in:
parent
20a9be891f
commit
5d69b925be
28 changed files with 580 additions and 280 deletions
|
@ -28,7 +28,7 @@ func TestAuthorization(t *testing.T) {
|
|||
}
|
||||
|
||||
t.Run("public", func(t *testing.T) {
|
||||
client := getClient(t)
|
||||
client := getClient(t, false)
|
||||
|
||||
req, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://httpdetails.localhost.pomerium.io", nil)
|
||||
if err != nil {
|
||||
|
@ -46,7 +46,7 @@ func TestAuthorization(t *testing.T) {
|
|||
|
||||
t.Run("domains", func(t *testing.T) {
|
||||
t.Run("allowed", func(t *testing.T) {
|
||||
client := getClient(t)
|
||||
client := getClient(t, false)
|
||||
res, err := flows.Authenticate(ctx, client, mustParseURL("https://httpdetails.localhost.pomerium.io/by-domain"),
|
||||
withAPI, flows.WithEmail("user1@dogs.test"), withBrowserAcceptHeader)
|
||||
if assert.NoError(t, err) {
|
||||
|
@ -54,7 +54,7 @@ func TestAuthorization(t *testing.T) {
|
|||
}
|
||||
})
|
||||
t.Run("not allowed", func(t *testing.T) {
|
||||
client := getClient(t)
|
||||
client := getClient(t, false)
|
||||
res, err := flows.Authenticate(ctx, client, mustParseURL("https://httpdetails.localhost.pomerium.io/by-domain"),
|
||||
withAPI, flows.WithEmail("user1@cats.test"), withBrowserAcceptHeader)
|
||||
if assert.NoError(t, err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue