summaryrefslogtreecommitdiff
path: root/internal/server/institute
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/institute
parent680c91aff531fca6fa2394094252520adac5f9e3 (diff)
Client + OAuth + Server: Initialize the OAuth clientID on add
Diffstat (limited to 'internal/server/institute')
-rw-r--r--internal/server/institute/institute.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/server/institute/institute.go b/internal/server/institute/institute.go
index ada1977..e0a52b7 100644
--- a/internal/server/institute/institute.go
+++ b/internal/server/institute/institute.go
@@ -25,6 +25,7 @@ type Servers struct {
func New(
ctx context.Context,
+ clientID string,
url string,
name map[string]string,
supportContact []string,
@@ -41,7 +42,7 @@ func New(
API := b.Endpoints.API.V3
s := &Server{Basic: b}
- s.Auth.Init(url, API.Authorization, API.Token)
+ s.Auth.Init(clientID, url, API.Authorization, API.Token)
return s, nil
}