diff options
author | rautenberg <rautenberg@in-silico.ch> | 2013-03-28 12:47:39 +0100 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2013-03-28 12:47:39 +0100 |
commit | 9b31acdf5241ebdf700ecc1d798ca6c181aa1b5d (patch) | |
tree | c1cea16a5f13daab463a1aeebb15eb6a78e10ee5 | |
parent | dee8892491dcda0bfa68c413ee0fbbc0ddd33f12 (diff) |
remove comments and old logger messages
-rw-r--r-- | lib/authorization.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/authorization.rb b/lib/authorization.rb index 8eefc63..361e259 100644 --- a/lib/authorization.rb +++ b/lib/authorization.rb @@ -88,12 +88,8 @@ module OpenTox # @return [Boolean, nil] returns true, false or nil (if authorization-request fails). def self.authorize(uri, action, subjectid) return true if !AA - #begin return true if RestClientWrapper.post("#{AA}/auth/authorize",{:uri => uri, :action => action, :subjectid => subjectid})== "boolean=true\n" return false - #rescue - # return nil - #end end #Checks if a token is a valid token @@ -323,10 +319,8 @@ module OpenTox def self.authorized?(uri, request_method, subjectid) request_method = request_method.to_sym if request_method if $aa[:free_request].include?(request_method) - #$logger.debug "authorized? >>true<< (request is free), method: #{request_method}, URI: #{uri}, subjectid: #{subjectid}" true elsif OpenTox::Authorization.free_uri?(uri, request_method) - #$logger.debug "authorized? >>true<< (uris is free_uri), method: #{request_method}, URI: #{uri}, subjectid: #{subjectid}" true elsif $aa[:authenticate_request].include?(request_method) ret = OpenTox::Authorization.is_token_valid(subjectid) |