From e6ba622fa9d5c7ec533a71fe5b1fab6687a8fefe Mon Sep 17 00:00:00 2001 From: Kajetan Kazimierczak Date: Sat, 7 Oct 2023 23:33:45 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Updated=20Timetable=20URL?= =?UTF-8?q?s=20(#659)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/api-skolplattformen/lib/api.ts | 4 ++-- libs/api-skolplattformen/lib/routes.ts | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/api-skolplattformen/lib/api.ts b/libs/api-skolplattformen/lib/api.ts index 81aad47c..61019c3c 100644 --- a/libs/api-skolplattformen/lib/api.ts +++ b/libs/api-skolplattformen/lib/api.ts @@ -570,7 +570,7 @@ export class ApiSkolplattformen extends EventEmitter implements Api { await this.ssoAuthorize('TimetableViewer') const body = { getPersonalTimetablesRequest: { - hostName: 'fns.stockholm.se', + hostName: 'stockholm.skola24.se', }, } const session = this.getRequestInit({ @@ -619,7 +619,7 @@ export class ApiSkolplattformen extends EventEmitter implements Api { customerKey: '', endDate: null, height: 1063, - host: 'fns.stockholm.se', + host: 'stockholm.skola24.se', periodText: '', privateFreeTextMode: null, privateSelectionMode: true, diff --git a/libs/api-skolplattformen/lib/routes.ts b/libs/api-skolplattformen/lib/routes.ts index 16b2c81f..fd7037d4 100644 --- a/libs/api-skolplattformen/lib/routes.ts +++ b/libs/api-skolplattformen/lib/routes.ts @@ -86,18 +86,18 @@ export const createItemConfig = // Skola24 export const ssoRequestUrl = (targetSystem: string) => - `https://fnsservicesso1.stockholm.se/sso-ng/saml-2.0/authenticate?customer=https://login001.stockholm.se&targetsystem=${targetSystem}` + `https://stockholm-sso.skola24.se/nssso/saml-2.0/authenticate?customer=https://login001.stockholm.se&targetsystem=${targetSystem}` export const ssoResponseUrl = 'https://login001.stockholm.se/affwebservices/public/saml2sso' export const samlResponseUrl = - 'https://fnsservicesso1.stockholm.se/sso-ng/saml-2.0/response' + 'https://stockholm-sso.skola24.se/nssso/saml-2.0/response' export const timetables = - 'https://fns.stockholm.se/ng/api/services/skola24/get/personal/timetables' + 'https://stockholm.skola24.se/ng/api/services/skola24/get/personal/timetables' export const renderKey = - 'https://fns.stockholm.se/ng/api/get/timetable/render/key' -export const timetable = 'https://fns.stockholm.se/ng/api/render/timetable' + 'https://stockholm.skola24.se/ng/api/get/timetable/render/key' +export const timetable = 'https://stockholm.skola24.se/ng/api/render/timetable' export const topologyConfigUrl = 'https://fantomenkrypto.vercel.app/api/getConfig'