Created on 08 August 2018
icon_unfollowing
Login to follow
rest-integrated-authentication-authorization

REST Integrated with onRequest & onResponse

Stable version 1.0.0 (Compatible with OutSystems 11)
Also available for 10
Uploaded on 08 August 2018 by 
rest-integrated-authentication-authorization

REST Integrated with onRequest & onResponse

Details
Basic: To invoke the REST API, a team will need to specify a username and password on the HTTP headers of the request;
Read more

When exposing a REST API, a team can configure the service to require authentication. There are three authentication modes available:

  • None: Anyone can invoke the API without needing to authenticate;

  • Basic: To invoke the REST API, a team will need to specify a username and password on the HTTP headers of the request;

  • Custom: An organization can implement their own authentication mechanism. 


Basic authentication

To require username/password authentication in a team's REST APIs, a team has the option to add basic authentication. This is done in the visual editor by setting the 'Authentication' parameter for the service.

Once a service has basic authentication, all clients that use the API need to send the credentials on the HTTP headers of the request. If no credentials are present, OutSystems automatically sends a JSON response with an error message, which looks like:

{
  "Errors": [
    "Basic Authentication required."
  ],
  "StatusCode":401
}

When clients send their credentials, OutSystems makes them available as parameters. This automates much of the boilerplate code that developers need to implement authentication functionality.


Release notes (1.0.0)
Reviews (0)
Category
Development tools, Network
Tags
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
REST Integrated with onRequest & onResponse has no dependencies.
Application Objects
REST Integrated with onRequest & onResponse has 0 AOs.
Team
Compatible with
Version 11
Version 10
Stack:
All
Database:
All
Asset consumers
No consumers yet.
Weekly downloads 
Related assets