-
Notifications
You must be signed in to change notification settings - Fork 23
/
dev-config.edn
122 lines (116 loc) · 5.51 KB
/
dev-config.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{:dev true
:nrepl-port 7000
:database-url "postgresql://localhost/rems?user=rems"
:test-database-url "postgresql://localhost/rems_test?user=rems_test"
:search-index-path "target/search-index-dev"
:theme-path "example-theme/theme.edn"
:authentication :fake
:log-authentication-details true
;; Open ID Connect settings
;; These allow login to http://localhost:3000/oidc-callback only
;; :authentication :oidc
:oidc-userid-attributes [{:attribute "sub" :rename "elixirId"}
{:attribute "old_sub"}]
:oidc-metadata-url "https://remsdev.eu.auth0.com/.well-known/openid-configuration"
:oidc-client-id "65TIN1Joo6EvsHSPCN4zyCaxxPh0WJF1"
:oidc-client-secret "e1yr9R_8WW3Xg03wm6wJ4UmNVVjiqdVhwFGvHhttyoRS3h04F4MGh0zRaV7vKm30"
;; some attributes that google oauth returns:
:oidc-extra-attributes [{:attribute "nickname" :name {:en "Nickname" :fi "Lempinimi" :da "Kaldenavn"}}
{:attribute "picture"}
{:attribute "organizations"}
{:attribute "groups" :name {:en "Groups" :fi "Ryhmät" :sv "Grupper" :da "Grupper"}}]
:languages [:en :fi :sv]
:public-url "http://localhost:3000/"
:extra-pages [{:id "about"
:translations {:fi {:title "Info"
:filename "about-fi.md"}
:en {:title "About"
:filename "about-en.md"}
:sv {:title "Info"
:filename "about-sv.md"}
:da {:title "Info"
:filename "about-da.md"}}}
{:id "footer"
:filename "footer-en.md"
:translations {:fi {:title "Footer"
:filename "footer-fi.md"}
:en {:title "Footer"}
:sv {:title "Footer"
:filename "footer-sv.md"}
:da {:title "Footer"
:filename "footer-da.md"}}
:show-menu false
:show-footer true}
{:id "link"
:translations {:fi {:title "Link"
:filename "link-fi.md"}
:en {:title "Link"
:filename "link-en.md"}
:sv {:title "Link"
:filename "link-sv.md"}
:da {:title "Link"
:filename "link-da.md"}}
:show-menu false
:show-footer false}
{:id "mixed"
:heading false
:translations {:fi {:title "Mixed"
:filename "mixed-fi.md"}
:en {:url "https://example.org/en/mixed"}} ; missing sv and da
:show-menu false
:show-footer false}
{:id "unlocalized"
:url "https://example.org/unlocalized"
:show-menu false
:show-footer false}
{:id "url"
:roles [:logged-in]
:url "https://example.org/"
:translations {:fi {:title "Esimerkki"
:url "https://example.org/fi"}
:en {:title "Example"}
:sv {:title "Exempel"}
:da {:title "Eksempel"}}
:show-menu true
:show-footer true}]
:extra-pages-path "./test-data/extra-pages"
:application-deadline-days 4
:application-id-column :generated-and-assigned-external-id
:enable-assign-external-id-ui true
:attachment-max-size 10000000 ;; 10MB
:application-expiration nil
:enable-permissions-api true
;; example keys from https://tools.ietf.org/html/rfc7517#appendix-A
:ga4gh-visa-private-key "test-data/example-private-key.jwk"
:ga4gh-visa-public-key "test-data/example-public-key.jwk"
:catalogue-is-public false
:accessibility-report true
:enable-doi true
:enable-duo true
:enable-catalogue-tree true
:enable-save-compaction true
:enable-autosave true
:enable-extended-logging true
;; let's use plugins in dev
:oidc-require-name false
:oidc-require-email false
:plugins [{:id :plugin/AARC-G069-group-split
:filename "resources/plugins/AARC-G069-group-split.md"
:attribute-name "eduperson_entitlement"
:trusted-authorities ["perun.aai.lifescience-ri.eu"]}
{:id :plugin/validate-attributes
:filename "resources/plugins/validate-attributes.md"
:required-attributes [{:attribute-name "name" :error-key :t.login.errors/name}
{:attribute-name "email" :error-key :t.login.errors/email}]}
{:id :plugin/validate-group-membership ; NB: not in use at the moment
:filename "resources/plugins/validate-group-membership.md"
:attribute-name "groups"
:valid-groups ["VO1"]
:error-key :t.login.errors/group}]
:extension-points {:extension-point/transform-user-data [:plugin/AARC-G069-group-split]
:extension-point/validate-user-data [:plugin/validate-attributes]}
:malware-scanning {:scanner-path "test-data/malware-scanner-executables/pass-with-output.sh"
:logging true}
:enable-voting true
:enable-processing-states true
:tables {:rems.catalogue/catalogue {:paging? false}}}