Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IA2
GMS
Commits
9076ef3c
Commit
9076ef3c
authored
Nov 11, 2019
by
Sonia Zorba
Browse files
Minor changes
parent
f29db93f
Changes
5
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
9076ef3c
...
...
@@ -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:
...
...
gms-client/gms-cli/gms.properties
View file @
9076ef3c
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
View file @
9076ef3c
...
...
@@ -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
...
...
gms/pom.xml
View file @
9076ef3c
...
...
@@ -122,6 +122,9 @@
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<executable>
true
</executable>
</configuration>
</plugin>
</plugins>
</build>
...
...
gms/src/test/java/it/inaf/ia2/gms/service/SearchServiceTest.java
View file @
9076ef3c
...
...
@@ -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 (
E
duGAIN)"
,
item1
.
getLabel
());
assertEquals
(
"user@inaf.it (
e
duGAIN)"
,
item1
.
getLabel
());
}
@Test
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment