mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-10-15 14:01:58 +00:00
Additionally remove ionic-appauth dependency, refactor the relevant code and fix some issues. Closes #245
60 lines
1.8 KiB
JavaScript
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;
|