Allow static functions to be used as a callback in AuthFailure.