summaryrefslogtreecommitdiff
path: root/internal/server/custom/custom.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-05-15 14:10:55 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-09-25 09:43:37 +0200
commit4480416a3f4424eeefdf4117b7cf5120bfeafbcc (patch)
tree5fd7283c492f2ceb709432d1c571ae29b1d8b161 /internal/server/custom/custom.go
parent680c91aff531fca6fa2394094252520adac5f9e3 (diff)
Client + OAuth + Server: Initialize the OAuth clientID on add
Diffstat (limited to 'internal/server/custom/custom.go')
-rw-r--r--internal/server/custom/custom.go4
1 files changed, 2 insertions, 2 deletions
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
}