summaryrefslogtreecommitdiffstats
path: root/packages/wekan-oidc/oidc_configure.js
blob: 5eedaa0419c26ee21cd6740d9e1978225200ab8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Template.configureLoginServiceDialogForOidc.helpers({
    siteUrl: function () {
        return Meteor.absoluteUrl();
    }
});

Template.configureLoginServiceDialogForOidc.fields = function () {
  return [
    { property: 'clientId', label: 'Client ID'},
    { property: 'secret', label: 'Client Secret'},
    { property: 'serverUrl', label: 'OIDC Server URL'},
    { property: 'authorizationEndpoint', label: 'Authorization Endpoint'},
    { property: 'tokenEndpoint', label: 'Token Endpoint'},
    { property: 'userinfoEndpoint', label: 'Userinfo Endpoint'},
    { property: 'idTokenWhitelistFields', label: 'Id Token Fields'}
  ];
};