Rest service authentication

I'm new to rest services and I try to figure out how authentication should be implemeted. I already succeeded in publishing REST service without authentication, but when I specify a user role when calling "CreateMicroflowService" the servicecall fails (as expected) with an authentication error. The documentation isn't very clear about how to pass the user credentials to the REST service. Also the blog on REST serviced doesn't say anything about this. Can anyone please point me in the right direction (maybe with a small example)?
3 answers

You should use the 'AddHeaderToNextRequest' Java Action to add the Authorization header to the request

See the following link for more information:

Mendix Restservices Documentation on Github


Our Client want's to use X-Authentication tokens. Is there a way to do this from the REST module?


Hi René,

Are you publishing or consuming a Rest service? For sending those tokens, see Pauls answer, use the 'AddHeaderToNextRequest`, for publishing services with custom authentication, see, it is possible to extract the token from the request in the authorization microflow, and authenticate on that one