Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using model name in logs instead of user #258

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/devise_saml_authenticatable/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def authenticate_with_saml(saml_response, relay_state)
else Devise.saml_resource_validator_hook.call(resource, decorated_response, auth_value)
end
if !valid
logger.info("User(#{auth_value}) did not pass custom validation.")
logger.info("#{self.name}(#{auth_value}) did not pass custom validation.")
return nil
end
end
Expand All @@ -60,10 +60,10 @@ def authenticate_with_saml(saml_response, relay_state)
end
if resource.nil?
if create_user
logger.info("Creating user(#{auth_value}).")
logger.info("Creating #{self.name.downcase}(#{auth_value}).")
resource = new
else
logger.info("User(#{auth_value}) not found. Not configured to create the user.")
logger.info("#{self.name}(#{auth_value}) not found. Not configured to create the #{self.name.downcase}.")
return nil
end
end
Expand Down