Revision 61792
Added by Konstantinos Triantafyllou over 2 years ago
modules/uoa-authorization-library/trunk/src/main/java/eu/dnetlib/uoaauthorizationlibrary/configuration/GlobalVars.java | ||
---|---|---|
8 | 8 |
public class GlobalVars { |
9 | 9 |
public static Date date = new Date(); |
10 | 10 |
private Date buildDate; |
11 |
private String version; |
|
11 | 12 |
|
12 | 13 |
public String getBuildDate() { |
13 | 14 |
if(buildDate == null) { |
... | ... | |
19 | 20 |
public void setBuildDate(Date buildDate) { |
20 | 21 |
this.buildDate = buildDate; |
21 | 22 |
} |
23 |
|
|
24 |
public String getVersion() { |
|
25 |
return this.version; |
|
26 |
} |
|
27 |
|
|
28 |
public void setVersion(String version) { |
|
29 |
this.version = version; |
|
30 |
} |
|
22 | 31 |
} |
modules/uoa-authorization-library/trunk/src/main/java/eu/dnetlib/uoaauthorizationlibrary/controllers/AuthorizationLibraryCheckDeployController.java | ||
---|---|---|
42 | 42 |
if(globalVars.getBuildDate() != null) { |
43 | 43 |
response.put("Date of build", globalVars.getBuildDate()); |
44 | 44 |
} |
45 |
if (globalVars.getVersion() != null) { |
|
46 |
response.put("Version", globalVars.getVersion()); |
|
47 |
} |
|
45 | 48 |
return response; |
46 | 49 |
} |
47 | 50 |
} |
modules/uoa-authorization-library/trunk/src/main/resources/authorization.properties | ||
---|---|---|
1 | 1 |
#dev |
2 |
authorization.security.userInfoUrl = http://mpagasas.di.uoa.gr:8080/dnet-openaire-users-1.0.0-SNAPSHOT/api/users/getUserInfo?accessToken=
|
|
2 |
authorization.security.userInfoUrl = http://mpagasas.di.uoa.gr:8080/login-service/userInfo
|
|
3 | 3 |
authorization.globalVars.buildDate=@timestampAuthorizationLibrary@ |
4 |
|
|
5 |
#beta |
|
6 |
#authorization.security.userInfoUrl = https://beta.services.openaire.eu/uoa-user-management/api/users/getUserInfo?accessToken= |
|
7 |
|
|
8 |
#production |
|
9 |
#authorization.security.userInfoUrl = https://services.openaire.eu/uoa-user-management/api/users/getUserInfo?accessToken= |
|
4 |
authorization.globalVars.version=@project.version@ |
Also available in: Unified diff
Add version to check deploy configuration