mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 00:40:25 +02:00
authorize: hot path identity provider lookup optimizations
This commit is contained in:
parent
7eca911292
commit
e18c04216e
29 changed files with 387 additions and 284 deletions
|
@ -2,6 +2,7 @@
|
|||
package mock
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/pomerium/pomerium/internal/encoding"
|
||||
|
@ -30,7 +31,7 @@ func (ms *Store) ClearSession(http.ResponseWriter, *http.Request) {
|
|||
}
|
||||
|
||||
// LoadSession returns the session and a error
|
||||
func (ms Store) LoadSession(*http.Request) (string, error) {
|
||||
func (ms Store) LoadSession(context.Context, *http.Request) (string, error) {
|
||||
var signer encoding.MarshalUnmarshaler
|
||||
signer, _ = jws.NewHS256Signer(ms.Secret)
|
||||
jwt, _ := signer.Marshal(ms.Session)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue