summaryrefslogtreecommitdiff
path: root/lib/templates/config.yaml
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-03-09 12:31:05 +0100
committerChristoph Helma <helma@in-silico.ch>2011-03-09 12:31:05 +0100
commitc651fe10fe5e09dbfdf2b3abd420fc2fc0051937 (patch)
tree30029f9c3246de739aaf7b66a490c01b7b147f04 /lib/templates/config.yaml
parent5233ab341757557c536ed8cc8eefd79a936b4295 (diff)
parent66f2ee967317954568562510111b0d832881547d (diff)
Merge branch 'release/v1.0.0'v1.0.0
Conflicts: lib/dataset.rb
Diffstat (limited to 'lib/templates/config.yaml')
-rw-r--r--lib/templates/config.yaml45
1 files changed, 45 insertions, 0 deletions
diff --git a/lib/templates/config.yaml b/lib/templates/config.yaml
index 00c00cb..8a5e460 100644
--- a/lib/templates/config.yaml
+++ b/lib/templates/config.yaml
@@ -39,3 +39,48 @@
# Uncomment for verbose logging
# :logger: debug
+# :backtrace: 1
+
+
+# OpenSSO Authorization
+# set ":server: " to disable A&A
+:authorization:
+ :server: "https://opensso.in-silico.ch"
+ :free_request: #request-method not controlled by A&A
+ - "GET"
+ :authenticate_request: #only for authenticated user
+ - "POST"
+ :authorize_request: #only for authenticated and authorizeduser
+ - "DELETE"
+ - "PUT"
+ # Exceptions:
+ :free_uris: #request-method for uri not controlled by A&A
+ ? - :GET
+ : - !ruby/regexp /localhost\/algorithm/
+ - "http://localhost/dataset"
+ - "http://localhost/model"
+ - "http://localhost/validation"
+ - "http://localhost/validation/crossvalidation"
+ - "http://localhost/validation/reach_report"
+ - "http://localhost/validation/reach_report/crossvalidation"
+ - "http://localhost/validation/report"
+ - "http://localhost/validation/report/crossvalidation"
+ - "http://localhost/validation/reach_report/qmrf"
+ ? - :GET
+ - :POST
+ : - !ruby/regexp /localhost\/toxcreate/
+ - !ruby/regexp /localhost\/task/
+ - !ruby/regexp /localhost\/compound/
+ ? - :PUT
+ : - !ruby/regexp /localhost\/task/
+
+ :authorize_exceptions: #request-method for uri only authenticated, no authorization
+ ? - :POST
+ : - !ruby/regexp /localhost\/algorithm/
+ - "http://localhost/dataset"
+ - "http://localhost/model"
+ - "http://localhost/validation"
+ - !ruby/regexp /localhost\/validation\/[a-z,A-Z,\/,_\-]*$/
+
+
+ \ No newline at end of file