From cad29dcc046163a944167bbaf2292b3e591e01c6 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 31 Oct 2023 11:49:08 +0100 Subject: OAuth + Server: Make ISS optional for custom servers --- internal/server/custom/custom.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/server/custom') diff --git a/internal/server/custom/custom.go b/internal/server/custom/custom.go index af6ad67..376bcd6 100644 --- a/internal/server/custom/custom.go +++ b/internal/server/custom/custom.go @@ -32,6 +32,8 @@ func New(ctx context.Context, clientID string, u string) (*Server, error) { API := b.Endpoints.API.V3 s := &Server{Basic: b} - s.Auth.Init(clientID, u, API.Authorization, API.Token) + // we set ISS to empty here as we do not want to have ISS enabled for custom servers + // Otherwise we would have to normalise the URL which the user has entered which is error prone + s.Auth.Init(clientID, "", API.Authorization, API.Token) return s, nil } -- cgit v1.2.3