<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def callback(self, provider):
 """ Handles 3rd party callback and processes it's data """

        provider = self.get_provider(provider)
        try:
            return provider.authorized_handler(self.login)(provider=provider)
        except OAuthException as ex:
            logging.error("Data: %s", ex.data)
            raise