I'm basically attaching a listener to an event that's triggered when a controller action completes. Said listener has a dependency that calls a 3rd party API client and do some action. I.e: creates a new document in google drive).
Following the example, if the user hasn't authorized through OAuth2, the system should redirect to the OAuth page. This action would be done by the listener.
Is this a bad design?