Loading README.md +11 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,17 @@ To run: docker run --env-file docker-env -d -p 8081:8081 -i -t gms:latest ## Command line clients To add a command line client first generate the sha256 of its password: echo -n password | sha256sum Then insert the client line into the database: INSERT INTO gms_client (client_id, client_secret, allowed_actions, ip_filter) VALUES ('test', '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', '{"*"}', NULL); ## Developer notes Backend and frontend are 2 separate applications: Loading gms-client/gms-cli/gms.properties +6 −3 Original line number Diff line number Diff line base_url=http://localhost:8081/gms client_id=test client_secret=test #base_url=http://localhost:8081/gms #client_id=test #client_secret=test base_url=https://sso.ia2.inaf.it/gms client_id=sso-admin client_secret=cXjbauYe8g gms-ui/src/store.js +3 −0 Original line number Diff line number Diff line Loading @@ -71,12 +71,15 @@ export default new Vuex.Store({ }, updateGroupsPanel(state, groupsPanel) { this.state.model.groupsPanel = groupsPanel; this.state.input.paginatorPage = groupsPanel.currentPage; }, updatePermissionsPanel(state, permissionsPanel) { this.state.model.permissionsPanel = permissionsPanel; this.state.input.paginatorPage = permissionsPanel.currentPage; }, updateMembersPanel(state, membersPanel) { this.state.model.membersPanel = membersPanel; this.state.input.paginatorPage = membersPanel.currentPage; }, setTabIndex(state, tabIndex) { // this will trigger the tabChanged() method in Main.vue Loading gms/pom.xml +3 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,9 @@ <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <executable>true</executable> </configuration> </plugin> </plugins> </build> Loading gms/src/test/java/it/inaf/ia2/gms/service/SearchServiceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -86,6 +86,7 @@ public class SearchServiceTest { identity.setPrimary(true); identity.setType(IdentityType.EDU_GAIN); identity.setEmail("user@inaf.it"); identity.setTypedId("user@inaf.it"); user.setIdentities(Collections.singletonList(identity)); when(rapClient.searchUsers(any())).thenReturn(Collections.singletonList(user)); Loading Loading @@ -125,7 +126,7 @@ public class SearchServiceTest { SearchResponseItem item1 = response.getItems().get(1); assertEquals(SearchResponseType.USER, item1.getType()); assertEquals("user_id", item1.getId()); assertEquals("user@inaf.it (EduGAIN)", item1.getLabel()); assertEquals("user@inaf.it (eduGAIN)", item1.getLabel()); } @Test Loading Loading
README.md +11 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,17 @@ To run: docker run --env-file docker-env -d -p 8081:8081 -i -t gms:latest ## Command line clients To add a command line client first generate the sha256 of its password: echo -n password | sha256sum Then insert the client line into the database: INSERT INTO gms_client (client_id, client_secret, allowed_actions, ip_filter) VALUES ('test', '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', '{"*"}', NULL); ## Developer notes Backend and frontend are 2 separate applications: Loading
gms-client/gms-cli/gms.properties +6 −3 Original line number Diff line number Diff line base_url=http://localhost:8081/gms client_id=test client_secret=test #base_url=http://localhost:8081/gms #client_id=test #client_secret=test base_url=https://sso.ia2.inaf.it/gms client_id=sso-admin client_secret=cXjbauYe8g
gms-ui/src/store.js +3 −0 Original line number Diff line number Diff line Loading @@ -71,12 +71,15 @@ export default new Vuex.Store({ }, updateGroupsPanel(state, groupsPanel) { this.state.model.groupsPanel = groupsPanel; this.state.input.paginatorPage = groupsPanel.currentPage; }, updatePermissionsPanel(state, permissionsPanel) { this.state.model.permissionsPanel = permissionsPanel; this.state.input.paginatorPage = permissionsPanel.currentPage; }, updateMembersPanel(state, membersPanel) { this.state.model.membersPanel = membersPanel; this.state.input.paginatorPage = membersPanel.currentPage; }, setTabIndex(state, tabIndex) { // this will trigger the tabChanged() method in Main.vue Loading
gms/pom.xml +3 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,9 @@ <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <executable>true</executable> </configuration> </plugin> </plugins> </build> Loading
gms/src/test/java/it/inaf/ia2/gms/service/SearchServiceTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -86,6 +86,7 @@ public class SearchServiceTest { identity.setPrimary(true); identity.setType(IdentityType.EDU_GAIN); identity.setEmail("user@inaf.it"); identity.setTypedId("user@inaf.it"); user.setIdentities(Collections.singletonList(identity)); when(rapClient.searchUsers(any())).thenReturn(Collections.singletonList(user)); Loading Loading @@ -125,7 +126,7 @@ public class SearchServiceTest { SearchResponseItem item1 = response.getItems().get(1); assertEquals(SearchResponseType.USER, item1.getType()); assertEquals("user_id", item1.getId()); assertEquals("user@inaf.it (EduGAIN)", item1.getLabel()); assertEquals("user@inaf.it (eduGAIN)", item1.getLabel()); } @Test Loading