Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Adam ⚛ Stegman <[email protected]>
  • Loading branch information
tedkeep and adamstegman authored Mar 21, 2022
1 parent 441a287 commit cf311c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ In `config/initializers/devise.rb`:
# Lambda that is called if Devise.saml_update_user and/or Devise.saml_create_user are true.
# Receives the model object, saml_response and auth_value, and defines how the object's values are
# updated with regards to the SAML response.
# config.saml_update_resource_hook = -> (model, saml_response, auth_value) {
# config.saml_update_resource_hook = -> (user, saml_response, auth_value) {
# saml_response.attributes.resource_keys.each do |key|
# user.send "#{key}=", saml_response.attribute_value_by_resource_key(key)
# end
#
# if (Devise.saml_use_subject)
# model.send "#{Devise.saml_default_user_key}=", auth_value
# user.send "#{Devise.saml_default_user_key}=", auth_value
# end
#
# model.save!
# user.save!
# }

# Lambda that is called to resolve the saml_response and auth_value into the correct user object.
Expand Down

0 comments on commit cf311c6

Please sign in to comment.