mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 14:32:50 +00:00
50 lines
1.3 KiB
TypeScript
50 lines
1.3 KiB
TypeScript
// 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<SCConfigFile> = {
|
|
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;
|