mirror of
https://github.com/photoprism/photoprism.git
synced 2026-07-17 16:49:04 +00:00
Tests: Drop blank lines between Portal OpenID config subtests
This commit is contained in:
parent
ce5e10fef3
commit
8e73783ddd
1 changed files with 0 additions and 3 deletions
|
|
@ -24,7 +24,6 @@ func TestPortalOpenIDConfiguration(t *testing.T) {
|
|||
assert.Equal(t, "http://localhost:2342/api/v1/oauth/userinfo", result.UserinfoEndpoint)
|
||||
assert.Equal(t, "http://localhost:2342/.well-known/jwks.json", result.JwksUri)
|
||||
})
|
||||
|
||||
t.Run("Capabilities", func(t *testing.T) {
|
||||
result := NewPortalOpenIDConfiguration(conf)
|
||||
|
||||
|
|
@ -38,7 +37,6 @@ func TestPortalOpenIDConfiguration(t *testing.T) {
|
|||
assert.Equal(t, []string{"S256"}, result.CodeChallengeMethodsSupported)
|
||||
assert.Equal(t, []string{"client_secret_basic", "client_secret_post"}, result.TokenEndpointAuthMethodsSupported)
|
||||
})
|
||||
|
||||
t.Run("BasePathDeployment", func(t *testing.T) {
|
||||
// For a sub-path Portal (SiteUrl carries a base path), every advertised
|
||||
// URL must contain the base path exactly once — the issuer already carries
|
||||
|
|
@ -57,7 +55,6 @@ func TestPortalOpenIDConfiguration(t *testing.T) {
|
|||
assert.Equal(t, "http://foo:2342/foo/api/v1/oauth/userinfo", result.UserinfoEndpoint)
|
||||
assert.Equal(t, "http://foo:2342/foo/.well-known/jwks.json", result.JwksUri)
|
||||
})
|
||||
|
||||
t.Run("IssuerWithTrailingSlashIsNormalized", func(t *testing.T) {
|
||||
// The Portal-issuer accessor falls through to SiteUrl which already
|
||||
// includes a trailing slash; the generator must not double it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue