Skip to main content


Extensibility and Integration




Add Custom Authentication to an Exposed REST API

  • Edit
  • We’ve been working on this article. Please let us know how useful this new version is by voting.

    OutSystems allows you to customize the authentication logic to be used in your exposed REST APIs.

    For that, do the following:

    1. In the Logic tab, open the Integrations folder.

    2. Select the exposed REST API you want to change and set its "Authentication" property to Custom.

      As a result, OutSystems creates the "OnAuthentication" action in your REST API and executes it for every incoming request of this REST API, before the called method's action flow.

    3. In the "OnAuthentication" action, design the logic to authenticate the client. If you need to access data received in the URL, header or body of the HTTP request, you can use the GetFormValue, GetRequestHeader or GetRequestContent actions of the HTTPRequestHandler extension.

    • Was this article helpful?