The custom authentication method selected must be initialized by pressing Properties.\0
選択したカスタム認証方法は、[プロパティ] をクリックして初期化してください。\0
The following sections go through the implementation of this custom authentication method.
以下のセクションでは、このカスタム認証メソッドの実装について説明します。
In this example you're going to add a custom authentication method to this API.
この例では、このAPIにカスタム認証メソッドを追加します。
Create custom authentication scheme. Create a custom authentication method, giving you complete control over the authentication interface. To implement this approach, you must provide a PL/SQL function the Application Express engine executes before processing each page request. This function's Boolean return value determines whether the Application Express engine processes the page normally or displays a failure page.
カスタム認証スキームの作成。カスタム認証方式を作成すると、認証インタフェースを完全に制御できます。この方法を実装するには、Application Expressエンジンが各ページ・リクエストを処理する前に実行するPL/SQLファンクションを提供する必要があります。このファンクションのブール戻り値によって、Application Expressエンジンが通常どおりにページを処理するか、または失敗ページを表示するかが決まります。
The following example defines a custom authentication method for an Exposed REST API using two security keys: an API Key and an App ID.
以下の例では、APIキーとアプリIDの2つのセキュリティキーを使用し、公開済みREST APIのカスタム認証メソッドを定義します。
Here's a sample implementation of the complete OnAuthentication flow: Test the authentication Test the logic of your custom authentication method using an API client like Postman.
完成した OnAuthentication フローのサンプル実装を以下に示します。 認証をテストする Postman などのAPIクライアントを使用して、カスタム認証メソッドのロジックをテストします。