Skip to content

Commit

Permalink
Aligning with upstream IDM changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakefeasel committed May 30, 2014
1 parent dd9fbdb commit 6e87992
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/main/resources/conf/authentication.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"defaultUserRoles" : [ ],
"serverAuthContext" : {

"sessionModule" : {
"name" : "JWT_SESSION",
"properties" : {
Expand All @@ -25,13 +26,16 @@
{
"name" : "INTERNAL_USER",
"properties" : {
"queryId" : "credential-internaluser-query",
"queryOnResource" : "repo/internal/user",
"propertyMapping" : {
"authenticationId" : "_id",
"authenticationId" : "username",
"userCredential" : "password",
"userRoles" : "roles"
},
"defaultUserRoles" : [ ]
}
},
"enabled" : true
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/script/createSchema.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (schema_def.context == "host") {

if (hostLink == null) {
def recon = openidm.action("recon",
"reconById",
"reconById", [:],
[
"mapping" : "fiddles_hosts",
"ids" : schema_def._id,
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/script/executeQuery.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ if (schema_def.context == "host") {
]).result[0]

if (hostLink == null) {
openidm.action("recon",
"reconById",
openidm.action("recon",
"reconById", [:],
[
"mapping" : "fiddles_hosts",
"ids" : schema_def._id,
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/script/loadContent.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (fragment_parts.size() > 2) {
response["sql"] = query.sql
response["id"] = query.id

response["sets"] = openidm.action("endpoint/executeQuery", "query", [:], [
response["sets"] = openidm.action("endpoint/executeQuery", "query", [
"db_type_id": fragment_parts[0],
"schema_short_code": fragment_parts[1],
"sql": query.sql,
Expand Down

0 comments on commit 6e87992

Please sign in to comment.