Skip to content

Commit

Permalink
Merge pull request SAML-Toolkits#71 from knewter/patch-1
Browse files Browse the repository at this point in the history
Fix a code block in the README
  • Loading branch information
stouset committed Feb 28, 2013
2 parents 0c23d24 + 80e3729 commit 33d37dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ What's left at this point, is to wrap it all up in a controller and point the in
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.

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

response.attributes[:username]
```

## Service Provider Metadata

Expand Down

0 comments on commit 33d37dc

Please sign in to comment.