OAuth 2.0 SSO Demo

Content Type: Sample


During the Mendix Meetup @ WebFlight a demo was given for OAuth 2.0 SSO integration in Mendix. It uses Auth0 (Identity and Access Management SaaS) as the authorization server. Download the demo here to see an example for the implementation of the OAuth 2.0 authorization code flow that uses as many default Mendix components as possible.



This project is a demo of an OAuth 2.0 implementation with OpenID Connect in Mendix where the client, resource and authorization servers are completely seperated. The project contains a ViewApp and an InvoiceAPI module. The ViewApp calls the InvoiceAPI REST endpoints to view and create invoices.

Auth0 is used to login in the Mendix app based on Facebook or Google accounts. Based on the tokens that are received during the login, the API validates the token and authorizes the user. Permissions are managed in Auth0.

Typical usage scenario

Use Single Sign-on (SSO) in your Mendix applications to allow users to use the same credentials in multiple apps and manage authorization centrally.


  • JWT module in the Mendix App Store
  • Passay 1.4.0 for random password generation upon User creation


Run the project locally. By default, the user will not have permissions to read or create invoices. If you need permissions, the publisher of this app can assign the permissions to your user after first login. Alternatively, you can create your own Auth0 domain (free for developer purposes) and set the appropriate constants in the Auth0 module (domain, client ID and client secret). Of course, you need to configure Auth0 with the appropriate keys, scopes, allowed callback and logout URLs. If you need help, please ask the publisher.


Version: 1.0.0
Framework Version: 7.23.5
Release Notes: Mendix Meetup Demo version