summaryrefslogtreecommitdiff
path: root/internal/server/instituteaccess.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-19 17:55:53 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-19 17:55:53 +0200
commit8fa80e56e014d9a77cfb337b2a2b641f1532ff8e (patch)
treee7a406a0b8cb05c3b232dd828dc6a5d974ca2fcb /internal/server/instituteaccess.go
parent7260aa0cd70195a4679ca3c94204d9e618f947f2 (diff)
OAuth + Server: Fix ISS for secure internet
The wrong base url was used. Use the one from the home server NOT the current location
Diffstat (limited to 'internal/server/instituteaccess.go')
-rw-r--r--internal/server/instituteaccess.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/instituteaccess.go b/internal/server/instituteaccess.go
index 0f097b0..ed0211b 100644
--- a/internal/server/instituteaccess.go
+++ b/internal/server/instituteaccess.go
@@ -84,7 +84,7 @@ func (institute *InstituteAccessServer) init(
serverType string,
supportContact []string,
) error {
- errorMessage := fmt.Sprintf("failed initializing institute server %s", url)
+ errorMessage := fmt.Sprintf("failed initializing server %s", url)
institute.Base.URL = url
institute.Base.DisplayName = displayName
institute.Base.SupportContact = supportContact
@@ -93,7 +93,7 @@ func (institute *InstituteAccessServer) init(
if endpointsErr != nil {
return types.NewWrappedError(errorMessage, endpointsErr)
}
- institute.OAuth.Init(endpoints.API.V3.Authorization, endpoints.API.V3.Token)
+ institute.OAuth.Init(url, endpoints.API.V3.Authorization, endpoints.API.V3.Token)
institute.Base.Endpoints = *endpoints
return nil
}