summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2013-07-26 14:47:05 +0200
committerrautenberg <rautenberg@in-silico.ch>2013-07-26 14:47:05 +0200
commitee6f20df383639029df001bb10312cd6b58c977a (patch)
treed35f9acb5c2fd2dcf0928a2d16a2954207b412f1
parent38d7ac9891d3289d665197619f9d456174b68456 (diff)
remove some more subjectids
-rw-r--r--lib/authorization.rb4
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"