OutSystems Forge 日本語データベース

How to Add Custom Authentication to a REST API

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2015-07-22 1.1.1 OutSystems TechComm 9.0.1.15 All All How-tos
このプロジェクトは、公開されたREST APIにカスタム認証ロジックを追加する方法を示しています。
REST APIを使用すると、HTTP経由でアプリケーションのデータと機能を公開し、他のシステムで使用することができます。 このプロジェクトは、公開されたREST APIにカスタム認証ロジックを追加する方法を示しています。 1. REST APIで、[認証]プロパティを[カスタム]に設定します。 2. 'OnAuthentication'コールバックアクションで認証ロジックを実装します。 要求で受け取った値にアクセスするには、HTTPRequestHandlerモジュールの次のアクションを使用します。 - GetFormValue - GetRequestHeader - GetRequestBody 認証が成功すると、直ちに呼び出されたREST APIメソッドが実行されます。 それ以外の場合は、例外が発生し、要求が中止され、応答によってエラーが戻されます。 公開されたREST APIにカスタム認証を追加する方法の詳細をご覧ください。

[Overview]
This project illustrates how to add custom authentication logic to an exposed REST API.
[Detail]
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. Learn more about how to add custom authentication to exposed REST APIs.
戻る