Steve,
You can authenticate with OAuth2 – I just built a Microsoft Graph integration using (Microsoft’s version) of OAuth2.
I used the following from the appstore: URL Redirector, Model Reflection, Deeplink
The general steps are as follows:
For reference, the DeepLink I defined for step 2 looks like this:
Also, it has the query params because the microflow looks like this:
The string params of the microflow are used as the query params of the Deeplink.
Hope that will help you get you started.
Mike
Hi,
I did build a microflow that executes OAuth authentication a few months ago using a standard REST call with POST method, here is my example:
https://modelshare.mendix.com/models/2db1f56e-e235-4c0c-9e54-83bf7f9a59a6/oauth-authentication
The input values were not as straight forward as I thought, I tested it for a while using postman before finding the correct values. For example, the request body required an extra field “undefined” but I cannot find the notes explaining why:
grant_type=password&username=[user]&password=[password]&scope=global&undefined=
I hope that helps.
What exactly are you running into?
You should be able to perform the authorization calls using a consume REST Service activity in Mendix: https://docs.mendix.com/howto/integration/consume-a-rest-service
How the OAuth2 specifically works it not really specific Mendix question, I think there's enough to find about that on the internet…
kind regards,
Bart Rikers