From 8cdb874bbed18571cd13476d013e46c4eaeb5972 Mon Sep 17 00:00:00 2001 From: rautenberg Date: Wed, 5 Nov 2014 11:46:09 +0100 Subject: add validation service A&A description --- ...tication-configuration-opentox-serverclient--300.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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]]} + } -- cgit v1.2.3