Method: ElsToken::ClassMethods#get_raw_token_identity
- Defined in:
- lib/els_token.rb
#get_raw_token_identity(token, options = {}) ⇒ Object
get_token_identity wraps the ELS identity response in a nice, friendly, object. If you don’t like that object or need the raw data, then use this.
114 115 116 117 118 119 120 121 |
# File 'lib/els_token.rb', line 114 def get_raw_token_identity(token,={}) response = els_http_request("/attributes",{"subjectid"=>"#{token}"},) if response.code.eql? "200" response.body else response.error! end end |