summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2014-11-05 11:46:09 +0100
committerrautenberg <rautenberg@in-silico.ch>2014-11-05 11:46:09 +0100
commit8cdb874bbed18571cd13476d013e46c4eaeb5972 (patch)
tree7036dd124ba264e633db47652b24fa04ca843830
parent3e187c4be0a68bbd49f5f692e51fe13f40a64a68 (diff)
add validation service A&A description
-rw-r--r--_posts/2013-05-03-authorization--authentication-configuration-opentox-serverclient--300.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/_posts/2013-05-03-authorization--authentication-configuration-opentox-serverclient--300.md b/_posts/2013-05-03-authorization--authentication-configuration-opentox-serverclient--300.md
index 2a9fa0f..a22c221 100644
--- a/_posts/2013-05-03-authorization--authentication-configuration-opentox-serverclient--300.md
+++ b/_posts/2013-05-03-authorization--authentication-configuration-opentox-serverclient--300.md
@@ -36,4 +36,20 @@ Configuration options
* `:authenticate_request => []` request methods that needs only Authentification. Request must have a valid subjectid, but no policy.
* `:authorize_request => [:GET, :POST, :DELETE, :PUT]` request methods with authorization controll
* `:authorize_exceptions => { [:GET,:POST] => [$dataset[:uri], "#{$dataset[:uri]}/test/task_error", "#{$dataset[:uri]}/test/error_in_task"] }` authorization exceptions defined as a Hash of request-methods-array keys mapped to URI-array values. In this case you are allowed to GET and POST to the base service URI to get a list of datasets or to POST a new dataset.
- `"#{$dataset[:uri]}/test/error_in_task"` defines a URI used in a test call. \ No newline at end of file
+ `"#{$dataset[:uri]}/test/error_in_task"` defines a URI used in a test call.
+
+
+Configuration-file example for Validation service
+----
+Example A&A configuration for the validation service. Configuration-file is **/home/USERNAME/.opentox/config/validation.rb**
+
+Mind the `/#{Regexp.quote($validation[:uri])}\/[a-z,A-Z,\/,_\-]*$/` entry in authorize exceptions to let authenticated users the possibility to create crossvalidations, reports and other objects under `/validation/` directory.
+
+ $validation = { :uri => "https://myserver.org/validation" }
+ $aa = {
+ :uri => 'https://opensso.in-silico.ch',
+ :free_request => [:HEAD],
+ :authenticate_request => [],
+ :authorize_request => [:GET, :POST, :DELETE, :PUT],
+ :authorize_exceptions => {[:GET,:POST] => [$validation[:uri], /#{Regexp.quote($validation[:uri])}\/[a-z,A-Z,\/,_\-]*$/, $task[:uri]]}
+ }