// tslint:disable:no-default-export // tslint:disable:no-magic-numbers import {SCConfigFile} from '@openstapps/core'; import {RecursivePartial} from '@openstapps/logger/lib/common'; /** * This is the default configuration for the Goethe university of Frankfurt */ const config: RecursivePartial = { auth: { default: { client: { clientId: '1cac3f99-33fa-4234-8438-979f07e0cdab', scopes: '', url: 'https://cas.rz.uni-frankfurt.de/cas/oauth2.0', }, endpoints: { authorization: 'https://cas.rz.uni-frankfurt.de/cas/oauth2.0/authorize', mapping: { id: '$.id', email: '$.attributes.mailPrimaryAddress', familyName: '$.attributes.sn', name: '$.attributes.givenName', role: '$.attributes.eduPersonPrimaryAffiliation', studentId: '$.attributes.employeeNumber', }, token: 'https://cas.rz.uni-frankfurt.de/cas/oauth2.0/accessToken', userinfo: 'https://cas.rz.uni-frankfurt.de/cas/oauth2.0/profile', }, }, }, internal: { boostings: { default: [ { factor: 1, fields: { 'academicTerms.acronym': { 'SS 2022': 1.05, 'WS 2021/2022': 1.1, }, }, }, ], }, }, }; export default config;