Skip to content

Commit

Permalink
Added some documentation for attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakjo authored and Christian Pedersen committed Mar 3, 2011
1 parent a199d3b commit 977fb8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rdoc
Expand Up @@ -75,6 +75,14 @@ What's left at this point, is to wrap it all up in a controller and point the in
end
end

If are using saml:AttributeStatement to transfare metadata, like the user name, you can access all the attributes through response.attributes. It
contains all the saml:AttributeStatement with its 'Name' as a indifferent key and the one saml:AttributeValue as value.

response = Onelogin::Saml::Response.new(params[:SAMLResponse])
response.settings = saml_settings

response.attributes[:username]


= Full Example

Expand Down

0 comments on commit 977fb8f

Please sign in to comment.