Revision 58476
Added by Konstantina Galouni about 4 years ago
admintools.properties | ||
---|---|---|
1 | 1 |
#dev |
2 |
#admintool.security.userInfoUrl = http://scoobydoo.di.uoa.gr:8080/dnet-openaire-users-1.0.0-SNAPSHOT/api/users/getUserInfo?accessToken=
|
|
3 |
#admintool.security.originServer = .di.uoa.gr
|
|
4 |
#admintool.security.postsAllowed = /contact,/contact/
|
|
5 |
#admintool.mail.host = smtp.gmail.com
|
|
6 |
#admintool.mail.port = 587
|
|
7 |
#admintool.mail.auth = true
|
|
8 |
#admintool.mail.from = openaire.test@gmail.com
|
|
9 |
#admintool.mail.username = openaire.test@gmail.com
|
|
10 |
#admintool.mail.password =
|
|
11 |
#admintool.google.secret = 6LcVtFIUAAAAAIlEaz6Am2PBC3j5lHG7vBo6uW4_
|
|
12 |
#admintool.mongodb.host=localhost
|
|
13 |
#admintool.mongodb.port=27017
|
|
14 |
#admintool.mongodb.database=openaire_admin
|
|
2 |
admintool.security.userInfoUrl = http://dl170.madgik.di.uoa.gr:8180/dnet-openaire-users-1.0.0-SNAPSHOT/api/users/getUserInfo?accessToken=
|
|
3 |
admintool.security.originServer = .di.uoa.gr |
|
4 |
admintool.security.postsAllowed = /contact,/contact/ |
|
5 |
admintool.mail.host = smtp.gmail.com |
|
6 |
admintool.mail.port = 587 |
|
7 |
admintool.mail.auth = true |
|
8 |
admintool.mail.from = openaire.test@gmail.com |
|
9 |
admintool.mail.username = openaire.test@gmail.com |
|
10 |
admintool.mail.password = |
|
11 |
admintool.google.secret = 6LcVtFIUAAAAAIlEaz6Am2PBC3j5lHG7vBo6uW4_ |
|
12 |
admintool.mongodb.host=localhost |
|
13 |
admintool.mongodb.port=27017 |
|
14 |
admintool.mongodb.database=openaire_admin |
|
15 | 15 |
|
16 | 16 |
#beta |
17 | 17 |
#admintool.security.userInfoUrl = https://beta.services.openaire.eu/uoa-user-management/api/users/getUserInfo?accessToken= |
Also available in: Unified diff
[Trunk | Admin Tools Service]:
1. admintools.properties & UoaAdminToolsApplication.java: Uncomment admintools.properties and ignore if @PropertySource for dnet-override.properties not found, to let tests runs.
2. Subscriber.java: Add default constructor and constructor with email parameter.
3. CommunitySubscribersController.java:
a. Autowire SecurityConfig to let methods get UserInfo via token.
b. Add GET method "getNumberOfSubscribersPerCommunity()" (/community/{pid}/subscribers/count).
c. Add GET methos "getIsSubscribedToCommunity()" (/community/{pid}/is-subscriber): Return true/ false and gets user email via token in @RequestHeader("X-XSRF-TOKEN").
d. Method "addSubscriberInCommunity()" renamed to "addSubscriberInCommunityByEmail()" | Method "deleteSubscriberFromCommunity()" renamed to "deleteSubscriberFromCommunityByEmail()".
e. Add POST methods "addSubscriberInCommunity()" (/community/{pid}/subscriber) and "deleteSubscriberFromCommunity()" (/community/{pid}/subscriber/delete):
Return true/ false and get user email via token in @RequestHeader("X-XSRF-TOKEN").
f. Method getCommunitiesPerSubcriber(@RequestParam(value="email", required = true) String email) --> getCommunitiesPerSubcriber(@RequestHeader("X-XSRF-TOKEN") String token):
Get user email via token in @RequestHeader("X-XSRF-TOKEN").
4. update_db.js:
a. Add method "createNewPagesForConnect()": adds page "/publications" for connect (enabled).
b. Add method "createNewPagesForCommunities()": adds pages "/content" (enabled), "/projects" (disabled), "/national-bulletins" (disabled), "/subjects"(disabled) for communities.
c. Add method "removeContentPolicyPageAndAddHelpTextInCommunitiesSourcesPage()": remove old "/content" connect page and move its contents to new "/content" for every community (NOT connect & openaire).