OutSystems Forge 日本語データベース

SecureRESTAPI

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

Forge英文サイト

2018-08-08 1.0.0 Vijay Malviya All All Components
基本:REST APIを呼び出すには、チームはリクエストのHTTPヘッダーにユーザー名とパスワードを指定する必要があります。
REST APIを公開すると、チームは認証を要求するようにサービスを構成できます。次の3つの認証モードが利用できます。 なし:認証を必要とせずに誰でもAPIを呼び出すことができます。 基本:REST APIを呼び出すには、チームはリクエストのHTTPヘッダーにユーザー名とパスワードを指定する必要があります。 カスタム:組織は独自の認証メカニズムを実装できます。 基本認証 チームのREST APIでユーザー名/パスワード認証を要求するには、チームに基本認証を追加するオプションがあります。これはビジュアル・エディタで、サービスの「認証」パラメータを設定することで実行されます。 サービスに基本認証が設定されると、APIを使用するすべてのクライアントは、要求のHTTPヘッダーに資格情報を送信する必要があります。資格情報が存在しない場合、OutSystemsは自動的に次のようなエラーメッセージとともにJSON応答を送信します。 { "Errors": [ "Basic Authentication required." ], "StatusCode":401 } クライアントが資格情報を送信すると、OutSystemsはそれらをパラメータとして使用可能にします。これにより、開発者が認証機能を実装するのに必要な定型コードの多くが自動化されます。

[Overview]
Basic: To invoke the REST API, a team will need to specify a username and password on the HTTP headers of the request;
[Detail]
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.
戻る