Skip to content
Snippets Groups Projects
Commit 9076ef3c authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Minor changes

parent f29db93f
Branches
No related tags found
No related merge requests found
...@@ -20,6 +20,17 @@ To run: ...@@ -20,6 +20,17 @@ To run:
docker run --env-file docker-env -d -p 8081:8081 -i -t gms:latest 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 ## Developer notes
Backend and frontend are 2 separate applications: Backend and frontend are 2 separate applications:
......
base_url=http://localhost:8081/gms #base_url=http://localhost:8081/gms
client_id=test #client_id=test
client_secret=test #client_secret=test
base_url=https://sso.ia2.inaf.it/gms
client_id=sso-admin
client_secret=cXjbauYe8g
...@@ -71,12 +71,15 @@ export default new Vuex.Store({ ...@@ -71,12 +71,15 @@ export default new Vuex.Store({
}, },
updateGroupsPanel(state, groupsPanel) { updateGroupsPanel(state, groupsPanel) {
this.state.model.groupsPanel = groupsPanel; this.state.model.groupsPanel = groupsPanel;
this.state.input.paginatorPage = groupsPanel.currentPage;
}, },
updatePermissionsPanel(state, permissionsPanel) { updatePermissionsPanel(state, permissionsPanel) {
this.state.model.permissionsPanel = permissionsPanel; this.state.model.permissionsPanel = permissionsPanel;
this.state.input.paginatorPage = permissionsPanel.currentPage;
}, },
updateMembersPanel(state, membersPanel) { updateMembersPanel(state, membersPanel) {
this.state.model.membersPanel = membersPanel; this.state.model.membersPanel = membersPanel;
this.state.input.paginatorPage = membersPanel.currentPage;
}, },
setTabIndex(state, tabIndex) { setTabIndex(state, tabIndex) {
// this will trigger the tabChanged() method in Main.vue // this will trigger the tabChanged() method in Main.vue
......
...@@ -122,6 +122,9 @@ ...@@ -122,6 +122,9 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<executable>true</executable>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
......
...@@ -86,6 +86,7 @@ public class SearchServiceTest { ...@@ -86,6 +86,7 @@ public class SearchServiceTest {
identity.setPrimary(true); identity.setPrimary(true);
identity.setType(IdentityType.EDU_GAIN); identity.setType(IdentityType.EDU_GAIN);
identity.setEmail("user@inaf.it"); identity.setEmail("user@inaf.it");
identity.setTypedId("user@inaf.it");
user.setIdentities(Collections.singletonList(identity)); user.setIdentities(Collections.singletonList(identity));
when(rapClient.searchUsers(any())).thenReturn(Collections.singletonList(user)); when(rapClient.searchUsers(any())).thenReturn(Collections.singletonList(user));
...@@ -125,7 +126,7 @@ public class SearchServiceTest { ...@@ -125,7 +126,7 @@ public class SearchServiceTest {
SearchResponseItem item1 = response.getItems().get(1); SearchResponseItem item1 = response.getItems().get(1);
assertEquals(SearchResponseType.USER, item1.getType()); assertEquals(SearchResponseType.USER, item1.getType());
assertEquals("user_id", item1.getId()); assertEquals("user_id", item1.getId());
assertEquals("user@inaf.it (EduGAIN)", item1.getLabel()); assertEquals("user@inaf.it (eduGAIN)", item1.getLabel());
} }
@Test @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment