How to Add Custom Authentication to a REST API
Stable Version 1.1.1
Published on 22 July 2015 by 
Created on 04 May 2015
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.1.1)
Fixed bug in key validation

Reviews (0)
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 TechComm who created this component.
Dependencies
How to Add Custom Authentication to a REST API has no dependencies.
Requirements
Platform
9.0.0.1
Database
All
Stack
All
Component Consumers
How to Add Custom Authentication to a REST API has no consumers.
Weekly Downloads 
Related Components
Google Drive Connector
OutSystems R&D
Google Drive Connector allows your OutSystems Applications to use the Google Drive REST API to interact with your files.
1004
Google Maps
Labs
Google Maps is a Google Maps Javascript V3 API component, providing Web Blocks and Actions to add interactive maps, markers and directions, along with event driven functionality.
10681
JIRA Connector
OutSystems R&D
JIRA is a issue tracking product, developed by Atlassian. It provides bug tracking, issue tracking, and project management functions. This connector gives you the power to integrate JIRA with your apps to automate your work.
597
More from TechComm
ZXing Services
OutSystems Technical Communication
This component provides services for barcode encoding and decoding in different formats: CODE 39, CODE 128, QR, EAN13, EAN8 throughZXing library (http://code.google.com/p/zxing/)
2695
Google Static Maps API
TechComm
Wrapper for the Google Maps Static API. Use this component to add a static image showing the location of one or more addresses in a map. Configure several aspects of this image like showing a satellite image or a roadmap view, tune the zoom factor or customize the address marker.
2313
Offline Data Sync Patterns
TechComm
A collection of working samples for common data synchronization patterns between the database and local storage entities.
869