mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-28 08:27:26 +02:00
authenticate: implement hpke-based login flow (#3779)
* urlutil: add time validation functions * authenticate: implement hpke-based login flow * fix import cycle * fix tests * log error * fix callback url * add idp param * fix test * fix test
This commit is contained in:
parent
8d1235a5cc
commit
57217af7dd
25 changed files with 656 additions and 661 deletions
|
@ -12,7 +12,7 @@ import (
|
|||
|
||||
func BenchmarkLoggedInUserAccess(b *testing.B) {
|
||||
ctx := context.Background()
|
||||
client := getClient()
|
||||
client := getClient(b)
|
||||
res, err := flows.Authenticate(ctx, client, mustParseURL("https://httpdetails.localhost.pomerium.io/by-domain"),
|
||||
flows.WithEmail("user1@dogs.test"))
|
||||
require.NoError(b, err)
|
||||
|
@ -30,7 +30,7 @@ func BenchmarkLoggedInUserAccess(b *testing.B) {
|
|||
|
||||
func BenchmarkLoggedOutUserAccess(b *testing.B) {
|
||||
ctx := context.Background()
|
||||
client := getClient()
|
||||
client := getClient(b)
|
||||
|
||||
b.ResetTimer()
|
||||
for i := 0; i < b.N; i++ {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue