diff options
author | rautenberg <rautenberg@in-silico.ch> | 2013-07-26 14:47:05 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2013-07-26 14:47:05 +0200 |
commit | ee6f20df383639029df001bb10312cd6b58c977a (patch) | |
tree | d35f9acb5c2fd2dcf0928a2d16a2954207b412f1 /lib | |
parent | 38d7ac9891d3289d665197619f9d456174b68456 (diff) |
remove some more subjectids
Diffstat (limited to 'lib')
-rw-r--r-- | lib/authorization.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/authorization.rb b/lib/authorization.rb index b5997b8..6c3d42b 100644 --- a/lib/authorization.rb +++ b/lib/authorization.rb @@ -83,7 +83,7 @@ module OpenTox #Logout on opensso. Make token invalid. Requires token # @param [String] subjectid the subjectid # @return [Boolean] true if logout is OK - def self.logout(subjectid) + def self.logout(subjectid=RestClientWrapper.subjectid) begin out = RestClientWrapper.post("#{AA}/auth/logout", :subjectid => subjectid) return true unless is_token_valid(subjectid) @@ -107,7 +107,7 @@ module OpenTox #Checks if a token is a valid token # @param [String]subjectid subjectid from openSSO session # @return [Boolean] subjectid is valid or not. - def self.is_token_valid(subjectid) + def self.is_token_valid(subjectid=RestClientWrapper.subjectid) return true if !AA begin return true if RestClientWrapper.post("#{AA}/auth/isTokenValid",:tokenid => subjectid) == "boolean=true\n" |