mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
new tracing system
This commit is contained in:
parent
b87d940d11
commit
a6f43f3c3c
127 changed files with 7509 additions and 1454 deletions
|
@ -225,9 +225,8 @@ func TestProxy_jsonUserInfo(t *testing.T) {
|
|||
|
||||
// The /.pomerium/jwt endpoint should be registered only if explicitly enabled.
|
||||
func TestProxy_registerDashboardHandlers_jwtEndpoint(t *testing.T) {
|
||||
proxy := &Proxy{
|
||||
state: atomicutil.NewValue(&proxyState{}),
|
||||
}
|
||||
proxy, err := New(context.Background(), &config.Config{Options: config.NewDefaultOptions()})
|
||||
require.NoError(t, err)
|
||||
req := httptest.NewRequest(http.MethodGet, "/.pomerium/jwt", nil)
|
||||
rawJWT := "eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJzdWIiOiIxMjM0NTY3ODkwIn0."
|
||||
req.Header.Set("X-Pomerium-Jwt-Assertion", rawJWT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue