Commit 9076ef3c authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Minor changes

parent f29db93f
......@@ -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:
......
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
......@@ -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
......
......@@ -122,6 +122,9 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<executable>true</executable>
</configuration>
</plugin>
</plugins>
</build>
......
......@@ -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));
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment