There is an example module in the marketplace: OAuth 2 Authorization for APIs - example. It is new, so any feedback is also welcome.
I've written an extensive how-to which can be found here: Connect your Mendix application to APIs secured with OAUTH 2.0 authorization.
Hopefully this helps (I will answer your private message as well).