From 4480416a3f4424eeefdf4117b7cf5120bfeafbcc Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 15 May 2023 14:10:55 +0200 Subject: Client + OAuth + Server: Initialize the OAuth clientID on add --- internal/server/custom/custom.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/server/custom') diff --git a/internal/server/custom/custom.go b/internal/server/custom/custom.go index d4a0508..af6ad67 100644 --- a/internal/server/custom/custom.go +++ b/internal/server/custom/custom.go @@ -16,7 +16,7 @@ type ( Servers = institute.Servers ) -func New(ctx context.Context, u string) (*Server, error) { +func New(ctx context.Context, clientID string, u string) (*Server, error) { pu, err := url.Parse(u) if err != nil { return nil, errors.WrapPrefix(err, "failed to parse custom server URL", 0) @@ -32,6 +32,6 @@ func New(ctx context.Context, u string) (*Server, error) { API := b.Endpoints.API.V3 s := &Server{Basic: b} - s.Auth.Init(u, API.Authorization, API.Token) + s.Auth.Init(clientID, u, API.Authorization, API.Token) return s, nil } -- cgit v1.2.3