we are using Warden for authentication and we have so many strategies it is difficult to track which one has been successful. Instead putting lines like
Rails.logger.debug "Authenticated with SSO" if user
to every strategy I would like to put one simple line somewhere to log the strategy message. It is available in the Warden somewhere because it stores the successful message:
success!(username, message)
How to do that? What is the best place to put this line in?
I guess I need a callback or something like that:
Got it:
And in the strategies:
for example. That works.