Skip to content

Commit

Permalink
fix: 🐛 Updated Timetable URLs (kolplattformen#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
kajetan-kazimierczak authored Oct 7, 2023
1 parent bee6d59 commit e6ba622
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions libs/api-skolplattformen/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions libs/api-skolplattformen/lib/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit e6ba622

Please sign in to comment.