Adding OAuth 2.0 based Token authentication for Consumed REST Service - Mendix Forum

Adding OAuth 2.0 based Token authentication for Consumed REST Service

4

I recently have been using the Consumed REST Service (CRS) and I really love the ease of use of the new document. I would like the CRS to have a token authentication feature as well.

 

The basic authentication for API takes in a username and password, but realistically, most API's nowadays are using some form of OAuth token authentication system. So I would like to provide the client ID and client Secret to the CRS (using constants) and then the CRS can generate the auth token using the well known URL. 

 

I would love to see this feature for the CRS, thank you! 

asked
2 answers

Agreed! Would be lovely to have that, in exactly the way you describe it. 

The suggestion of Marcian-Petrut Bondoc-Popescu is very helpful for implementing this by ourselves, manually the old-style way. But Mendix is all about making it easier and faster to create applications, and this is one more step in that direction.

 

Created

There are some modules you can study or maybe even reuse. Have a look at these or maybe even look for more in the marketplace search where you can put the 'OAuth' keyword or look for 'Rest services authentication'

 

Community OAuth 2 Authorization for APIs - example

 

OAuth

 

 

Created