OutSystems Forge 日本語データベース

OAuthSample

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

Forge英文サイト

2015-12-15 1.0.0 João Amorim 9.0.1.43 All All Applications, Libraries, How-tos
このアプリケーションには、Exposed REST APIのOAuth認証のサンプル実装が含まれています。
このアプリケーションには、Exposed REST APIでOAuth認証を実装するための出発点が含まれています。アプリケーションは、3つの異なるモジュールで構成されています。 OAuthSampleProvider OAuth実装に関連するすべてのロジック(認証コードとトークンストレージ、承認画面とリダイレクト、トークン生成のエンドポイント、トークン認証など)を含みます。 1つのサンプルクライアントのブートストラップが含まれていますので、試しにサンプルをテストすることができます。 このモジュールは、再利用するか、独自のOAuth実装の出発点となります。 OAuthSampleAPI OAuth認証によって保護されているサンプルExpose REST APIが含まれています。 これは、認証にアクセストークンを必要とする方法を示し、サンプルプロバイダを使用してトークンを検証します。 OAuthSampleConsumer OAuthで保護されたREST APIにアクセスする際にサードパーティのクライアントが行うことをシミュレートします。 このコンシューマが使用するクライアントIDは、サンプルプロバイダではすでにブートストラップされています。異なるクライアント資格情報を使用するには、アプリケーションにクライアント登録ロジックを実装する必要があります。 このモジュールをテストするには、モジュールを開き、ホームページの指示に従って "YourServer"をプラットフォームサーバーのアドレスに置き換えます

[Overview]
This application contains a sample implementation of OAuth authentication for Exposed REST APIs
[Detail]
This application contains a starting point for implementing OAuth authentication in your Exposed REST APIs. The application is composed by three different modules: OAuthSampleProvider Includes all the logic related to OAuth implementation, such as Authentication Code and Token storage, authorization screens and redirections, endpoints for Token generation and Token authentication. Includes the bootstrap of one sample Client so you can test the sample from the get-go. This module can be reused or provide a starting point for your own OAuth implementation. OAuthSampleAPI Includes a sample Expose REST API that is protected by OAuth authentication. It shows how to do require an access Token for authentication, and uses the sample provider to validate the Token. OAuthSampleConsumer Simulates what a third party client would do when accessing a REST API protected with OAuth. The client identification used by this consumer is already bootstrapped in the sample provider. To use different client credentials, you need to implement client registration logic in your applications. To test this module, you need to open it and follow the instructions in the homepage to replace "YourServer" by the address of your Platform Server
戻る