Add an 'issuer' field to the /.well-known/pomerium endpoint (#5344)

The field contains the route's base uri, including the https:// scheme
and ending with a trailing slash.
This commit is contained in:
Joe Kralicky 2024-10-25 13:07:57 -04:00 committed by GitHub
parent a42e286637
commit 5464cda90e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 0 deletions

View file

@ -52,6 +52,7 @@ func TestServerHTTP(t *testing.T) {
require.NoError(t, err)
expect := map[string]any{
"issuer": fmt.Sprintf("https://localhost:%s/", src.GetConfig().HTTPPort),
"authentication_callback_endpoint": "https://authenticate.localhost.pomerium.io/oauth2/callback",
"frontchannel_logout_uri": fmt.Sprintf("https://localhost:%s/.pomerium/sign_out", src.GetConfig().HTTPPort),
"jwks_uri": fmt.Sprintf("https://localhost:%s/.well-known/pomerium/jwks.json", src.GetConfig().HTTPPort),