How to Add Custom Authentication to a REST API

Stable Version 1.0.0 (O11)
Also available for 9.0
Published on 24 Aug by 
Created on 04 May 2015

How to Add Custom Authentication to a REST API

Details
This project illustrates how to add custom authentication logic to an exposed REST API.
Read More

REST APIs allow you to expose data and functionality of your application over HTTP to be used by other systems.

This project illustrates how to add custom authentication logic to an exposed REST API:
 
1. In the REST API, set the 'Authentication' property to Custom.
2. Implement your authentication logic in the 'OnAuthentication' callback action. To access values received in the request, use the following actions of the HTTPRequestHandler module:
     - GetFormValue
     - GetRequestHeader
     - GetRequestBody
 
If the authentication succeeds, the invoked REST API method is executed immediately after.
Otherwise an exception is raised, the request is aborted, and the response returns the error.
 
What’s new (1.0.0)

Upgraded to O11

Updated outdated information present in the module

Reviews (1)
2019-10-16
in version 1.1.1
This is out of date... way out of date.
Category
Samples & How-tos
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Technical Knowledge who created this component.
Dependencies
How to Add Custom Authentication to a REST API has no dependencies.
Requirements
Platform:
11.0.0.200
Database:
All
Stack:
.NET
Component Consumers
No consumers yet.
Weekly Downloads 
More from Technical Knowledge