OAuth 2 Authorization for APIs - example

Content Type: Sample
Categories:

Overview

Are you working on a RESTful API call in your Mendix application? Chances are that it requires OAUTH 2.0 authorization.
 
This module is an example of how to implement the OAuth 2 Authorization process to obtain an access token (aka bearer token) used in consumed REST calls

Documentation

Description

An example module to show the required implementations to obtain an Access Token based on your client_id, client_secret and authorization_code

Typical usage scenario

API providers such as Adobe Sign, Typeform, Google, Rabobank, Twitter, Oracle, Dropbox all use the OAuth 2.0 authorization framework (OAuth 2.0) to secure the access to their API's. The OAuth 2: specification is a technical read, and developer documentation of the API might be falling short on the Mendix implementation part.
 
OAuth 2.0 enables a third-party (your Mendix) application to obtain limited access to an HTTP service (API). This module can be used as a reference implementation. This how-to will guide you through the basic implementation steps and I will skip some technical details of the framework. Let's get you up and running!
 

Dependencies

  • Encryption module

 

Releases

Version: 2.0.0
Framework Version: 8.18.18
Release Notes: Release version 2.0.0 - Change project to Mendix version 8.18.18 - New OAuth2Authorization module which can be used as an implementation example but also used directly in a project - Add ExactOnline_DEMO module to show how the OAuth2Authorization can be used
Version: 1.0.0
Framework Version: 8.18.0
Release Notes: Release version 1.0.0 - Initial version of the OAuth 2 authorization module (example)