From 8fa80e56e014d9a77cfb337b2a2b641f1532ff8e Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 19 Oct 2022 17:55:53 +0200 Subject: OAuth + Server: Fix ISS for secure internet The wrong base url was used. Use the one from the home server NOT the current location --- internal/server/instituteaccess.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/server/instituteaccess.go') 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 } -- cgit v1.2.3