Files
openstapps/backend/backend/config/f-u/backendrc.js
T
Jovan Krunić 2edd46d40c feat: use only one identity provider
Additionally remove ionic-appauth dependency,
refactor the relevant code and fix some issues.

Closes #245
2026-10-14 18:05:23 +02:00

60 lines
1.8 KiB
JavaScript

import aboutPages from './about-pages/index.js';
import defaultApp from '../default/app/index.js';
import {backend as defaultBackend, internal as defaultInternal} from '../default/backend/index.js';
import versionHistory from './version-history/index.js';
/**
* This is the default configuration for the Goethe university of Frankfurt
*
* @type {import('@openstapps/core').SCConfigFile}
*/
const config = {
auth: {
default: {
client: {
clientId: '1cac3f99-33fa-4234-8438-979f07e0cdab',
scopes: 'openid profile email offline_access',
url: 'https://idp.ub.uni-frankfurt.de/idp/profile/oidc',
},
endpoints: {
authorization: 'https://idp.ub.uni-frankfurt.de/idp/profile/oidc/authorize',
endSession: 'https://idp.ub.uni-frankfurt.de/idp/profile/oidc/end-session',
mapping: {
id: '$.preferred_username',
email: '$.mailPrimaryAddress',
familyName: '$.family_name',
givenName: '$.given_name',
name: '$.name',
role: '$.eduPersonPrimaryAffiliation',
studentId: '$.employeeNumber',
},
token: 'https://idp.ub.uni-frankfurt.de/idp/profile/oidc/token',
userinfo: 'https://idp.ub.uni-frankfurt.de/idp/profile/oidc/userinfo',
revoke: 'https://idp.ub.uni-frankfurt.de/idp/profile/oauth2/revocation',
},
},
},
app: {
...defaultApp,
features: {
extern: {
hisometry: {
authProvider: 'default',
url: 'https://his-self-service.rz.uni-frankfurt.de',
},
/** TODO: idCards: {
authProvider: 'default',
url: 'TODO',
} */
},
},
versionHistory,
aboutPages,
},
backend: defaultBackend,
internal: defaultInternal,
uid: 'f-u',
};
export default config;