Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions compose/base-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ services:
restart: always
logging: *default-logging
database:
image: semtech/sparql-parser:0.0.14
image: semtech/sparql-parser:feature-odrl-configuration
environment:
USE_ODRL_POLICY: 'false'
LISP_DYNAMIC_SPACE_SIZE: 8192
volumes:
- ../config/authorization:/config
- ../config/odrl-parser:/odrl
- ../data/authorization:/data
labels:
- 'logging=true'
Expand Down
4 changes: 0 additions & 4 deletions compose/data-space.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
services:
dcat:
image: lblod/dcat-service:0.0.1
odrl-parser:
image: lblod/odrl-parser-service:0.0.5
volumes:
- ../config/odrl-parser:/config
vc-issuer:
image: lblod/oid4vc-login-service:0.0.1
environment:
Expand Down
1 change: 1 addition & 0 deletions compose/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
- logging=true
logging: *default-logging
environment:
DEFAULT_MU_AUTH_SCOPE: "http://services.semantic.works/annotation-review-service"
TZ: Europe/Brussels
frontend-human-validator:
image: lblod/frontend-decide-human-validator:0.0.4
Expand Down
26 changes: 10 additions & 16 deletions config/authorization/config.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(add-delta-messenger "http://deltanotifier/")


; CONFIGURATION
;; CONFIGURATION

(in-package :client)
(setf *log-sparql-query-roundtrip* t)
Expand All @@ -19,18 +19,12 @@
(in-package :server)
(setf *log-incoming-requests-p* t)

; ACCESS RIGHTS
;; The following functionality allows to easily switch between the manually written policy and one
;; generated from an ODRL policy. When updating the app's policy, apply the necessary changes in the
;; `decide.lisp' file.
(defparameter *use-odrl-policy-p*
(and (uiop:getenv "USE_ODRL_POLICY")
(string-equal (uiop:getenv "USE_ODRL_POLICY") "true"))
"Indicate whether to use the configuration generated from ODRL or the rules in this file.")

(let ((config-path
(if *use-odrl-policy-p*
"./odrl/decideAuthorizationPolicy.lisp"
"./config/decide.lisp")))
(format t "~& >> Loading policy from file: ~A" config-path)
(load config-path))
(in-package :odrl-config)
(setf *use-odrl-config-p* t)

;; ACCESS RIGHTS
;; The access policy is defined using ODRL in `./config.ttl'.
;; If you do want to use the Lisp configuration, uncomment the following 3 lines:
;; (setf *use-odrl-config-p* nil) ; Disables loading the ODRL config
;; (unless *use-odrl-config-p* ; Extra check to be sure only correct file is loaded
;; (load "./config/decide.lisp")) ; Load the policy in the lisp file
Loading