JP2020119036A - Information processing device, test method of client application, and program - Google Patents
Information processing device, test method of client application, and program Download PDFInfo
- Publication number
- JP2020119036A JP2020119036A JP2019007176A JP2019007176A JP2020119036A JP 2020119036 A JP2020119036 A JP 2020119036A JP 2019007176 A JP2019007176 A JP 2019007176A JP 2019007176 A JP2019007176 A JP 2019007176A JP 2020119036 A JP2020119036 A JP 2020119036A
- Authority
- JP
- Japan
- Prior art keywords
- client applications
- communication test
- information processing
- processing apparatus
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
Description
本発明は、一以上のクライアントアプリケーションの通信テストを行う情報処理装置およびクライアントアプリケーションのテスト方法、プログラムに関する。 The present invention relates to an information processing apparatus for performing a communication test of one or more client applications, a client application test method, and a program.
クラウドサービスは、一般的にWebサービスのAPI(Application Programming Interface)を公開しており、端末や他のクラウドサービスからAPIを介してサービスが提供する機能を利用する事ができる。このAPI利用における認証、認可のプロトコルとして、OAuth2.0と呼ばれる標準プロトコルが策定されている。OAuth2.0では、クライアントとなる端末や他のリソースサーバと認可サーバとが連携することで認証および認可を行う。認証および認可を受けたクライアントは、認可サーバから認可トークンを取得し、その認可トークンを送信することでAPIを利用する。
OAuth2.0では、認可プロトコルのフローをGrant Typeと呼んでいる。代表的なGrant Typeとして、ユーザがクライアントに権限を委譲するAuthorization Code Grantと、クライアントが自身のリソースにアクセスするためのClient Credentials Grantが定義されている。端末は、ユースケースによってGrant Typeを使い分ける事が考えられる。例えば、端末のオーナーであるユーザが、端末を操作した事を契機にクラウドサービスと連携する場合は、Authorization Code Grantが選択される。一方、端末が備えるセンサーや機器における変化を検知し、クラウドサービスと連携する場合は、Client Credentials Grantが選択される。このように、OAuth2.0を利用する事で、様々なユースケースに対応する事が可能である。
The cloud service generally exposes the API (Application Programming Interface) of the Web service, and the function provided by the service from the terminal or another cloud service via the API can be used. A standard protocol called OAuth 2.0 has been established as a protocol for authentication and authorization in the use of this API. In OAuth2.0, authentication and authorization are performed by cooperation between the client terminal and other resource servers and the authorization server. The authenticated and authorized client uses the API by acquiring the authorization token from the authorization server and transmitting the authorization token.
In OAuth2.0, the flow of authorization protocol is called Grant Type. As a typical Grant Type, an Authorization Code Grant by which the user delegates the authority to the client and a Client Credentials Grant for the client to access its own resource are defined. It is considered that the terminal uses different Grant Type depending on the use case. For example, when the user who is the owner of the terminal cooperates with the cloud service when the terminal is operated, the Authorization Code Grant is selected. On the other hand, Client Credentials Grant is selected when detecting a change in the sensor or device of the terminal and linking with the cloud service. In this way, it is possible to support various use cases by using OAuth2.0.
一つの端末上で各々がリソースサーバと連携する複数のクライアントアプリケーションが動作するシステムの場合、各アプリケーションが各々に認証・認可処理を行うのは非効率であるため、認証・認可処理を肩代わりするトークンプロバイダアプリケーションが配置される構成が提案されている(特許文献1)。その際、各クライアントアプリケーションはOAuth2.0による認証後にトークンプロバイダアプリケーションからアクセストークンを取得し、リソースサーバと連携する。 In the case of a system where multiple client applications, each of which cooperates with a resource server, operate on one terminal, it is inefficient for each application to perform authentication/authorization processing for each, so a token that takes over authentication/authorization processing A configuration in which a provider application is arranged has been proposed (Patent Document 1). At that time, each client application acquires an access token from the token provider application after authentication by OAuth2.0 and links with the resource server.
このとき、複数のクライアントアプリケーションと連携するリソースサーバはアプリケーションごとに異なり、そのドメインも異なることがある。そして各ドメインへのアクセス可否はファイヤウォール設定など端末設置先のネットワーク構成やセキュリティ設定などに依存する。したがって、端末上の各クライアントアプリケーションがリソースサーバと適切に連携するためには、クライアントアプリケーションとリソースサーバとの間の通信が可能であるかを確認する必要がある。通信相手のリソースサーバはクライアントアプリケーションごとに決まっているので、この確認はクライアントアプリケーションごとに実施しなければならない。 At this time, the resource server that cooperates with a plurality of client applications differs for each application, and its domain may also differ. Whether or not each domain can be accessed depends on the network configuration and security settings of the terminal installation destination such as firewall settings. Therefore, in order for each client application on the terminal to properly cooperate with the resource server, it is necessary to confirm whether communication between the client application and the resource server is possible. Since the resource server of the communication partner is determined for each client application, this confirmation must be performed for each client application.
そこで各アプリケーションがクラウドサービスと連携できることを保証するには、まず端末使用者がトークンプロバイダアプリケーションにおいて認可サーバへの端末の登録を行う。そののち、使用者がクライアントアプリケーションを一つずつ起動して通信テストを行い、結果を確認する必要がある。この作業は煩雑な作業であり、クライアントアプリケーションが増えるに連れて作業量が増大し、使用者の負担となる。 Therefore, in order to guarantee that each application can cooperate with the cloud service, the terminal user first registers the terminal in the authorization server in the token provider application. After that, the user needs to start the client applications one by one, conduct a communication test, and confirm the result. This work is a complicated work, and the work amount increases as the number of client applications increases, which becomes a burden on the user.
本発明は上記従来に鑑みてなされたもので、クライアントアプリケーションの通信テストを自動化して作業者による作業負担を軽減することを目的とする。 The present invention has been made in view of the above, and an object thereof is to automate a communication test of a client application and reduce a work load on a worker.
上記目的を達成するために本発明は以下の構成を有する。すなわち本発明の一側面によれば、一以上のクライアントアプリケーションを有する情報処理装置であって、前記一以上のクライアントアプリケーションがリソースサーバと通信するために必要なトークン情報を提供するトークンプロバイダアプリケーションを有することによって以下の機能を備えることを特徴とし、前記機能とは、
前記一以上のクライアントアプリケーションに対して前記リソースサーバとの間の通信テストの開始を通知するテスト開始通知機能と、
前記一以上のクライアントアプリケーションからの要求に応じて前記リソースサーバと通信を行うためのトークン情報を取得する取得機能と、
前記一以上のクライアントアプリケーションからの前記通信テストの結果を受け取るテスト結果受信機能と、
であることを特徴とする情報処理装置が提供される。
In order to achieve the above object, the present invention has the following configurations. That is, according to one aspect of the present invention, there is provided an information processing device having one or more client applications, the token provider application providing token information required for the one or more client applications to communicate with a resource server. Therefore, the following functions are provided, and the function is
A test start notification function for notifying the one or more client applications of the start of a communication test with the resource server,
An acquisition function for acquiring token information for communicating with the resource server in response to a request from the one or more client applications,
A test result receiving function for receiving the result of the communication test from the one or more client applications,
An information processing device is provided.
本発明により、クライアントアプリケーションの通信テストを自動化して作業者による作業負担を低減することができる。 According to the present invention, the communication test of the client application can be automated to reduce the work load on the worker.
以下、本発明の実施形態について図面を用いて説明する。
[システム構成]
本実施形態にかかるシステムは、図1に示すような構成を示す図である。
認可サーバ100は、端末の認証・アクセストークンの発行を実現するためのAPIを備えるサーバである。
リソースサーバ200はWebサービスとして公開されるAPIを備える。端末300は、例えばPC(Personal Computer)やスマートフォンと呼ばれる携帯端末、複合機などが該当する。
トークンプロバイダアプリケーション310は、認可サーバ100が公開するAPIを利用することで、端末の認証を行い、クライアントアプリケーション320にリソースサーバ200のAPI利用に必要なアクセストークンを提供する。クライアントアプリケーション320は一つとは限らず、一以上であってもよい。
クライアントアプリケーション320は、リソースサーバ200が公開するAPIを利用することで、自身の提供する機能と合わせたサービスをユーザに提供する。
Embodiments of the present invention will be described below with reference to the drawings.
[System configuration]
The system according to the present embodiment is a diagram showing a configuration as shown in FIG.
The
The
The
The
本実施形態に係るシステムの構成要素は、例えば、図2に示すような構成の情報処理装置にて実現される。
図2は、認可サーバ100、リソースサーバ200、および端末300のハードウェア構成の例を示す。なお認可サーバ100とリソースサーバ200については同じハードウェア構成を有するのでサーバとして示した。また端末300としては、汎用のパーソナルコンピュータなどの情報処理装置のほか、MFPあるいは単にデバイスなどと呼ばれる多機能周辺機器などを利用することもできる。パーソナルコンピュータはサーバと同様のハードウェア構成でよいのでその図は省略し、多機能周辺機器の構成を図2に示した。なおサーバについては、ユーザインターフェースを持たなくとも端末との間の相互作用は可能なのでユーザインターフェースを示していない。しかし、コンピュータを端末として利用するのであれば、キーボードやポインティングデバイス、タッチパネルといったユーザインターフェースが端末には必要である。
The components of the system according to the present embodiment are realized by, for example, an information processing device having a configuration shown in FIG.
FIG. 2 shows an example of the hardware configuration of the
図2は端末装置300とサーバ100,200とを接続した構成例を示す。なお図2では端末装置300とサーバ100,200とはネットワーク220を介して接続されているが、ネットワーク220は、LANやWAN、インターネットなど様々な種類のネットワークやそれらの複合を含んでいてよい。
FIG. 2 shows a configuration example in which the
●端末(MFP)のハードウェア
図2において、端末装置300は、のの一例であるMFPのハードウェア構成を示す。操作部210は、タッチパネル機能を有する表示部や各種ハードキー等を有し、制御部301からのデータに従ってユーザに対して情報を表示したり、ユーザの操作に応じた情報を制御部301に入力したりする。スキャナ部212は、原稿上の画像を読み取って、その画像の画像データを作成して制御部301に供給する。プリンタ部213は、制御部301から受け取った画像データに基づいて用紙上に画像を印刷する。
Hardware of Terminal (MFP) In FIG. 2, the
制御部301は、操作部210、スキャナ部212、プリンタ部213と電気的に接続されており、またネットワーク220にもネットワークインターフェース(I/F)206を介して接続されている。これによりネットワーク220を介した、TCP/IP等の通信プロトコルによる通信が可能となっている。制御部301において、CPU201、ROM202、RAM203、HDD204、操作部I/F205、ネットワークI/F206、スキャナI/F207、画像処理部208及びプリンタI/F209がシステムバス211を介して接続されている。CPU201は、ROM202のブートプログラムを実行してHDD204に記憶されたOSや制御プログラムをRAM203に展開し、そのプログラムに基づいてこの端末(MFP)300を統括的に制御する。この制御には、後述のフローチャートを実現するためのプログラムの実行も含む。ROM202には、このMFP110のブートプログラムや各種データが格納されている。RAM203は、CPU201が動作するためのワークメモリを提供し、また画像データを一時記憶するための画像メモリも提供している。HDD204はハードディスクドライブであり、OSや各種プログラムや画像データを格納している。
The
操作部I/F205は、システムバス211と操作部210とを接続するためのインターフェース部である。ネットワークI/F206は、ネットワーク220及びシステムバス211に接続し、ネットワークを介して情報の入出力を行う。スキャナI/F207は、スキャナ部212と制御部301との間のインターフェースを制御する。画像処理部208は、スキャナ部212から入力した画像データ、及びプリンタ部213に出力する画像データに対して、回転、色変換、画像圧縮/伸張処理などの画像処理を行う。プリンタI/F209は、画像処理部208で処理された画像データを受け取り、この画像データに付随している属性データに従ってプリンタ部213による印刷を制御する。
The operation unit I/
操作部210には、たとえば立ち上げ後の初期画面において、クライアントアプリケーション320の登録済みのショートカット(あるいはGUIボタン)が表示される。クライアントアプリケーション320は、アクセス先のリソースサーバ200ごとに用意される。ショートカットが操作される(押下される)と、対応するクライアントアプリケーション320が起動されて、設定されたアクセス先(リソースサーバ)へとアクセスする。
On the
●サーバのハードウェア
図2には、認可サーバ100とリソースサーバ200(ここでは、これらをまとめてサーバ100と称する)のハードウェア構成も示されている。サーバ100は、CPU251、RAM252、ROM253、ハードディスクドライブ(HDD)254、ネットワークI/F255を有し、これらはシステムバス256を介して互いに通信可能に接続されている。ROM253はブートプログラムを格納しており、CPU251は電源オン時に、このブートプログラムを読み出してHDD254にインストールされているOSや制御プログラム等をRAM252に展開する。そしてCPU251が、RAM252に展開したプログラムを実行することにより、このサーバ100の機能が実現される。またCPU251は、ネットワークI/F255を介して接続されているネットワーク上の他の装置、例えば端末300との通信を行う。尚、端末300がコンピュータであるばあいには、キーボードなどのユーザインターフェースを有している。
Hardware of Server FIG. 2 also shows the hardware configurations of the
<第一の実施形態>
以下に、第一の実施形態にかかる説明を記載する。
[モジュール構成]
図3は、第一の実施形態に係るトークンプロバイダアプリケーション310のモジュール構成の例を示す図である。各モジュールを実行されることでサービスを提供する。トークンプロバイダアプリケーション310は端末300にインストールされて実行される。なお、ここでは、本実施形態に係るモジュールのみを示し、他のモジュールについては省略する。
トークンプロバイダアプリケーション310は、アクセストークン供給部311、通知テスト開始通知部312,通信テスト結果受信部313、および通信テスト結果表示部314を備える。
アクセストークン供給部311は、クライアントアプリケーション320からの要求を受けて、認可サーバ100からアクセストークンを取得するためのモジュールである。また取得したアクセストークンをクライアントに提供するトークン提供部としても機能する。なおアクセストークンは情報であるので、アクセストークン情報あるいは認可トークン情報あるいは単にトークン情報とも呼ぶ。
通信テスト開始通知部312は、クライアントアプリケーション320が登録を行うイベントを用意し、通信テスト開始指示に応じて前記イベントを発行して登録したクライアントアプリケーション320への通知を行うためのモジュールである。通信テスト開始指示は、それ自体が独立した指示として操作者により入力されてもよいし、或いは、操作者などにより入力される端末300の認可サーバ100への登録指示や、または認可サーバ100から受信した端末300の登録完了の応答、または登録完了後の通信テスト指示そのものであってもよいし、それらをトリガーとして発行されてもよい。
<First embodiment>
Below, the description concerning 1st embodiment is described.
[Module configuration]
FIG. 3 is a diagram showing an example of a module configuration of the
The
The access
The communication test
通信テスト結果受信部313は、各クライアントアプリケーション320からの通信テスト完了結果を受け付けるモジュールである。また、通信テスト結果受信部313は通信テスト開始通知部312による通信テスト開始指示から一定時間までに通知を受け取れなかった場合、タイムアウトして通信テスト結果を失敗として処理する機能も備える。
通信テスト結果表示部314は、通信テスト結果受信部313が受信した各クライアントアプリケーション320からの通信テスト結果を取りまとめ、操作部210のLCDなどの表示デバイスに表示するモジュールである。
The communication test
The communication test
[処理シーケンス]
図4A〜7を用いて、本実施形態にかかるシステムが通信テストを完了するまでに必要なステップを説明する。
図4Aでは、クライアントアプリケーション320を端末300にインストールした際の処理を示している。ここでは、クライアントアプリケーション320のインストール以前にトークンプロバイダアプリケーション310がすでにインストールされていることを前提とする。
[Processing sequence]
4A to 7 will be used to describe the steps necessary for the system according to the present embodiment to complete the communication test.
FIG. 4A shows processing when the
ステップS401では、まず、クライアントアプリケーション302が端末300にインストールされる。このときにクライアントアプリケーション320はトークンプロバイダアプリケーション310が提供するイベントに、イベントリスナとして自身を登録する(ステップS402)。これにより、トークンプロバイダアプリケーション310は、クライアントアプリケーション320への通知が可能となる。すなわち、ステップS402では、クライアントアプリケーション320は、トークンプロバイダアプリケーション310に自身をイベント通知先として登録しておく。
In step S401, first, the client application 302 is installed in the
本実施形態において、実際にトークンプロバイダアプリケーション310が端末登録の一連の処理において通信テストを実施する際のシーケンスを図4BのステップS403〜S408を用いて説明する。この手順は端末300が認可サーバ100からクライアントクレデンシャルを取得する必要がある場合に実行される。たとえば端末300が新たにインストールされた場合や、新たな認可サーバ100を利用する場合、クライアントクレデンシャルの有効期限が切れた場合などである。
In the present embodiment, the sequence when the
ステップS403では、まず、トークンプロバイダアプリケーション310が認可サーバ100へ端末300の登録を要求する。処理が成功すると、認可サーバ100は端末300が認証されたデバイスであることを示すためのクライアントクレデンシャルを返す。これにより、以降の処理でアクセストークンの取得が可能となる。
In step S403, first, the
ステップS404では、トークンプロバイダアプリケーション310が通信テスト開始イベントを発行し、ステップS402でイベントリスナ登録しているクライアントアプリケーションに対して通信テスト開始を通知する。本実施例では、クライアントアプリケーション320に通信テスト開始を通知する。
通信テストの内容はそれぞれのクライアントアプリケーション320固有である。またクライアントアプリケーション320は、アクセス先となるリソースサーバ200のURL、およびリソースへのアクセスに権限が必要な場合はその権限情報を保持できる。権限情報はたとえばアクセストークンでよく、いったん取得したなら有効である限り保持して利用できる。そこでアクセス権限が必要な通信テストを実施する場合、ステップS405において、クライアントアプリケーション320はトークンプロバイダアプリケーション310にアクセストークンを要求する。
In step S404, the
The content of the communication test is unique to each
トークンプロバイダアプリケーション310は要求を受けると、ステップS403で取得したクライアントクレデンシャルを用いて認可サーバ100へアクセストークンの要求を行い、要求に応じてアクセストークンを取得する(S406)。
Upon receiving the request, the
ステップS407では、クライアントアプリケーション320がリソースサーバ200への通信テストを行い、通信テスト結果を取得する。通信テストはリソースサーバ200とクライアントアプリケーション320との間であらかじめ定めた手順で実施すればよい。そのための手順はリソースサーバ200とクライアントアプリケーション320それぞれに予めプログラムされていてよい。クライアントアプリケーション320は、通信テストに対するレスポンスが一定時間までに返ってこない場合には、タイムアウトして通信テスト失敗と判定する。
In step S407, the
通信テストが完了すると、ステップS408において、クライアントアプリケーション320はトークンプロバイダアプリケーション310に通信テスト結果を通知する。
When the communication test is completed, the
最後に、ステップS409では、トークンプロバイダアプリケーション310が、通信テスト開始を通知したすべてのクライアントアプリケーション320からのテスト結果を受け取り、表示デバイスへ結果を表示する。
Finally, in step S409, the
以上の構成及び手順により、クライアントアプリケーション320によるリソースサーバ100との間の通信テストを、個別のクライアントアプリケーション320に対する指示を行うことなく実施できる。より効率的に通信テストを行うには、たとえば端末300をネットワーク220に接続する前に、トークンプロバイダアプリケーション310をインストールし、その後に利用予定のクライアントアプリケーション320をインストールしておけばよい。その後端末300をネットワークに接続して、例えば操作者の明示的な指示などにより端末300を認可サーバ100に登録させれば、上記手順に従ってインストール済みのクライアントアプリケーション320すべてについて通信テストを実施できる。
With the above configuration and procedure, the communication test with the
なお本実施形態においては、ステップS403からS404までの処理を一連のシーケンスで表現しているが、これに限るものではなく、ステップS404の処理はステップS403以後であれば、別の操作をトリガーに開始されても良い。
また、ステップS405においてクライアントアプリケーション320がトークンプロバイダアプリケーション310にアクセストークンを要求しているが、必ずしもこの方式である必要はなく、トークンプロバイダアプリケーション310があらかじめアクセストークンを取得しておき、ステップS404の通信テスト開始を通知する際にアクセストークンを渡す方式でも良い。
In the present embodiment, the processing from steps S403 to S404 is expressed by a series of sequences, but the processing is not limited to this. If the processing in step S404 is after step S403, another operation is triggered. May be started.
Further, although the
●表示例
図5では、本実施形態において、通信テストを開始する際に表示されるトークンプロバイダアプリケーション310の画面の例を示している。
図5(A)は、操作者による端末の登録指示をトリガーにして通信テストを行う場合の画面の一例である。登録ボタン501が押下されると、トークンプロバイダアプリケーション310が端末300の認可サーバ100への登録を行ったのち、連続してクライアントアプリケーション320への通信テスト開始通知を行う図4(b)のシーケンスに沿った動作を行うものとなっている。
Display Example FIG. 5 shows an example of the screen of the
FIG. 5A is an example of a screen when a communication test is performed by using an operator's registration instruction of the terminal as a trigger. When the
一方で、図5(B)では、操作者が端末の登録指示とは別に通信テスト開始指示を行う場合の画面の一例である。この例は、ステップS403までの処理が完了している状態で表示される画面であり、通信テスト実施ボタン502を押下することでステップS404の処理が開始される。図5(B)の画面は、図5(A)の画面で端末の登録が完了した後に表示されてもよい。図5(B)の画面例では通信テストの実施は任意であり、ボタン503(OKボタンまたはキャンセルボタン)を押下することで通信テストを実施しないまま機器登録を終えることもできる。その場合には図5(B)の画面をその後に表示させて通信テストを実施することもできる。 On the other hand, FIG. 5B is an example of a screen when the operator gives a communication test start instruction separately from the terminal registration instruction. In this example, the screen is displayed in a state where the processes up to step S403 are completed, and the process of step S404 is started by pressing the communication test execution button 502. The screen of FIG. 5B may be displayed after the registration of the terminal is completed on the screen of FIG. In the screen example of FIG. 5B, the communication test is optional. By pressing the button 503 (OK button or cancel button), the device registration can be completed without executing the communication test. In that case, the screen of FIG. 5(B) can be displayed after that to perform a communication test.
図6および図7は、通信テスト完了後のトークンプロバイダアプリケーション310の表示画面の一例を示している。図6は、結果の概要を示した画面の一例であり、端末の登録処理結果とともに通信テスト結果が表示されている。通信テストに失敗した端末がある場合には、そのことを示すメッセージが表示される。図6の表示に加えて、失敗した端末のIDなどを表示してもよい。さらにテスト結果詳細ボタン601を押下することで図7の例に示すような通信テスト結果詳細を閲覧することができる。
6 and 7 show examples of display screens of the
図7の通信テスト結果詳細画面の例では、各クライアントアプリケーション320の通信テスト結果を閲覧することができ、通信テストに失敗したテストにおいては、そのエラーの詳細を確認できる。詳細画面にはテスト再試行ボタン701が配置されており、失敗した通信テストが存在する場合、その押下に応じて再度テストを実行しても良い。すなわち、図4のステップS407−S409を繰り返し行ってもよい。この場合には、たとえば図7の詳細画面にリストされたクライアントアプリケーションごとに選択用チェックボックスを設けるなどして、テスト対象のクライアントアプリケーションを選択できるようにしてもよい。そして再テストが指示されたなら、選択されたアプリケーションについて再テストを行ってもよい。あるいは、テストに失敗したクライアントアプリケーションのみを選択するためのチェックボックス等を設け、それがチェックされているなら、通信テストに失敗したクライアントアプリケーションを対象として再テストを実行してもよい。
In the example of the communication test result detail screen of FIG. 7, the communication test result of each
以上、本実施形態により、操作者はトークンプロバイダアプリケーション310上の端末300の登録操作からの一連の流れで、各クライアントアプリケーション320の通信テスト結果を確認することが可能となる。
As described above, according to the present embodiment, the operator can confirm the communication test result of each
<第二の実施形態>
第一の実施形態では、図4Aに示すとおり、クライアントアプリケーション320がトークンプロバイダアプリケーション310インストール後にインストールされるクライアントアプリケーション(以下、アドオンアプリケーションと呼称する)であることを前提としていた。しかしながら、端末300にトークンプロバイダアプリケーション310がインストールされる以前からインストールされているクライアントアプリケーション(以下、プリインストールアプリケーションと呼称する)の場合、ステップS402で記載したイベントの登録を行うことができず、第一の実施形態では通信テストを実施できない。第二の実施形態では本課題を解決する。
<Second embodiment>
In the first embodiment, as shown in FIG. 4A, the
[モジュール構成]
図8は第二の実施形態に係るトークンプロバイダアプリケーション310のモジュール構成の例を示す図である。
ここでの説明は前述の実施例の図3とほぼ同様なため、異なる部分のみを以下、説明する。通信テスト指示部801は、通信テスト開始通知部312ではイベント登録されていないクライアントアプリケーション320に通信テストを指示するモジュールである。通信テスト指示部801は予めテスト対象のクライアントアプリケーション320のリストを保持し、通信テスト開始指示を受けると、リストに従ってクライアントアプリケーション320の通信テストを行い、結果を通信テスト結果表示部314へと渡す。通信テスト指示部801が保持するテスト対象のクライアントアプリケーション320のリストは、たとえばトークンプロバイダアプリケーション310が作成してもよい。その場合例えばトークンプロバイダアプリケーション310は、それがインストールされたときに、レジストリ等を参照してインストール済みのクライアントアプリケーション320の情報を取得し、取得した情報に基づいて作成してよい。あるいは操作者がユーザインターフェース上で対象のクライアントアプリケーションのIDなどを入力することで作成してもよい。
[Module configuration]
FIG. 8 is a diagram showing an example of a module configuration of the
Since the description here is almost the same as that of FIG. 3 of the above-described embodiment, only different parts will be described below. The communication
[処理シーケンス]
本実施形態において、実際にトークンプロバイダアプリケーション310が端末登録の一連の処理において通信テストを実施する際のシーケンスを図9のステップS901〜S907を用いて説明する。本処理シーケンスは図4の処理シーケンスと並行して実施される。これにより、トークンプロバイダアプリケーション310とクライアントアプリケーション320のインストール順序に関わりなく、インストール済みのクライアントアプリケーション320について通信テストの自動化を実現できる。ただし、クライアントクレデンシャルの取得は、いずれか先に行った一度だけであってもよい。
ここで図9の処理の説明は前述の実施例の図4Bとほぼ同様なため、異なる部分のみを以下、説明する。
[Processing sequence]
In the present embodiment, the sequence when the
Since the description of the processing of FIG. 9 is almost the same as that of FIG. 4B of the above-described embodiment, only different parts will be described below.
ステップS902において、トークンプロバイダアプリケーション310は保持している指定テスト対象のクライアントアプリケーション一覧を取得する。
そして、ステップS903において、前記クライアントアプリケーション一覧にあるすべてのクライアントアプリケーション320に通信テスト開始処理を指示する。
In step S902, the
Then, in step S903, a communication test start process is instructed to all the
ステップS907において、すべてのクライアントアプリケーション320に対する通信テストの完了を受けて、図4Bの処理シーケンスによる通信テスト結果と合わせてイベント通知通信テスト結果を表示する。
このとき、前記クライアントアプリケーション一覧に記載されたクライアントアプリケーション320のうち、インストールされていない、あるいは、無効化されたクライアントアプリケーション320については、その結果を表示しない。
In step S907, upon completion of the communication test for all the
At this time, of the
本実施形態により、トークンプロバイダアプリケーション310よりも後にインストールされるアドオンアプリケーションのみならず、プリインストールアプリケーションも含め、一連の操作で、複数のインストール済みクライアントアプリケーションを対象として通信テストを行うことが可能となる。このため捜査が簡略化されて操作者の操作負担が軽減される。
According to the present embodiment, it is possible to perform a communication test on a plurality of installed client applications by a series of operations including not only add-on applications installed after the
なお、端末300にインストールされたクライアントアプリケーション320すべてについて、通信テスト指示部801に登録してもよい。この場合には、例えば、トークンプロバイダアプリケーション310は、通信テスト実施の指示に応じてまずレジストリ等を参照してインストール済みのクライアントアプリケーションのリストを作成する。そしてその後に、図9に示したステップS903以降の処理を実行する。こうすることで、第2実施形態に示した構成及び手順により、インストールされたクライアントアプリケーション320すべてを対象として通信テストを実施できる。
Note that all the
[その他の実施例]
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
[Other Examples]
The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program. It can also be realized by the processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
100 認可サーバ、200 リソースサーバ、300 端末、310 トークンプロバイダアプリケーション、320 クライアントアプリケーション、300 端末、311 アクセストークン供給部、312 通信テスト開始通知部、313 通信テスト結果受信部、314 通信テスト結果表示部、801 通信テスト指示部 100 authorization server, 200 resource server, 300 terminal, 310 token provider application, 320 client application, 300 terminal, 311 access token supply unit, 312 communication test start notification unit, 313 communication test result receiving unit, 314 communication test result display unit, 801 Communication test instruction unit
Claims (8)
前記一以上のクライアントアプリケーションに対して前記リソースサーバとの間の通信テストの開始を通知するテスト開始通知機能と、
前記一以上のクライアントアプリケーションからの要求に応じて前記リソースサーバと通信を行うためのトークン情報を取得する取得機能と、
前記一以上のクライアントアプリケーションからの前記通信テストの結果を受け取るテスト結果受信機能と、
であることを特徴とする情報処理装置。 An information processing apparatus having one or more client applications, comprising the following functions by having a token provider application that provides token information necessary for the one or more client applications to communicate with a resource server: And the function is
A test start notification function for notifying the one or more client applications of the start of a communication test with the resource server,
An acquisition function for acquiring token information for communicating with the resource server in response to a request from the one or more client applications,
A test result receiving function for receiving the result of the communication test from the one or more client applications,
An information processing device characterized in that
前記一以上のクライアントアプリケーションからの要求に応じてイベント通知先として登録する登録機能を更に有し、
前記テスト開始通知機能は、前記イベント通知先として登録した前記一以上のクライアントアプリケーションに対して、前記リソースサーバとの間の前記通信テストの開始を通知することを特徴とする情報処理装置。 The information processing apparatus according to claim 1, wherein
Further having a registration function for registering as an event notification destination in response to a request from the one or more client applications,
The information processing apparatus, wherein the test start notification function notifies the one or more client applications registered as the event notification destination of the start of the communication test with the resource server.
テスト対象の前記一以上のクライアントアプリケーションを登録したリストを保持する保持機能を更に有し、
前記テスト開始通知手段は、前記リストに登録されている前記一以上のクライアントアプリケーションに対して、前記リソースサーバとの間の前記通信テストの開始を通知することを特徴とする情報処理装置。 The information processing apparatus according to claim 1 or 2, wherein
It further has a holding function for holding a list in which the one or more client applications to be tested are registered,
The information processing apparatus, wherein the test start notifying means notifies the one or more client applications registered in the list of the start of the communication test with the resource server.
前記テスト開始通知機能は、認可サーバへの前記情報処理装置の登録指示、または前記認可サーバから受信した前記情報処理装置の登録完了後の通信テスト指示をトリガーとして、前記通信テストの開始を通知することを特徴とする情報処理装置。 The information processing apparatus according to any one of claims 1 to 3,
The test start notification function notifies the start of the communication test by using a registration instruction of the information processing apparatus to the authorization server or a communication test instruction after completion of registration of the information processing apparatus received from the authorization server as a trigger. An information processing device characterized by the above.
前記通信テストの結果を出力する出力手段を更に有することを特徴とする情報処理装置。 The information processing apparatus according to any one of claims 1 to 4,
An information processing apparatus further comprising an output means for outputting the result of the communication test.
前記一以上のクライアントアプリケーションを実行することを特徴とする情報処理装置。 The information processing apparatus according to any one of claims 1 to 5,
An information processing apparatus that executes the one or more client applications.
前記一以上のクライアントアプリケーションに対して前記リソースサーバとの間の通信テストの開始を通知するテスト開始通知手段と、
前記一以上のクライアントアプリケーションからの要求に応じて前記リソースサーバと通信を行うためのトークン情報を取得する取得手段と、
前記一以上のクライアントアプリケーションからの前記通信テストの結果を受け取るテスト結果受信手段と
して機能させるためのプログラム。 An information processing apparatus having one or more client applications, further comprising a token provider application for providing token information required for the one or more client applications to communicate with a resource server,
Test start notifying means for notifying the one or more client applications of the start of a communication test with the resource server,
Acquisition means for acquiring token information for communicating with the resource server in response to a request from the one or more client applications;
A program for functioning as a test result receiving means for receiving the result of the communication test from the one or more client applications.
前記一以上のクライアントアプリケーションに対して前記リソースサーバとの間の通信テストの開始を通知し、
前記一以上のクライアントアプリケーションからの要求に応じて前記リソースサーバと通信を行うためのトークン情報を取得し、
前記一以上のクライアントアプリケーションからの前記通信テストの結果を受け取る
ことを特徴とするクライアントアプリケーションのテスト方法。 An information processing apparatus having one or more client applications, the client application executed by the information processing apparatus further having a token provider application for providing token information required for the one or more client applications to communicate with a resource server. The test method of
Notifying the one or more client applications of the start of a communication test with the resource server,
Acquiring token information for communicating with the resource server in response to a request from the one or more client applications,
A method of testing a client application, comprising receiving the result of the communication test from the one or more client applications.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019007176A JP6871956B2 (en) | 2019-01-18 | 2019-01-18 | Information processing equipment and client application test methods and programs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019007176A JP6871956B2 (en) | 2019-01-18 | 2019-01-18 | Information processing equipment and client application test methods and programs |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2020119036A true JP2020119036A (en) | 2020-08-06 |
JP6871956B2 JP6871956B2 (en) | 2021-05-19 |
Family
ID=71890727
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019007176A Active JP6871956B2 (en) | 2019-01-18 | 2019-01-18 | Information processing equipment and client application test methods and programs |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6871956B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114978675A (en) * | 2022-05-20 | 2022-08-30 | 辽宁华盾安全技术有限责任公司 | Access authentication method and device, electronic equipment and storage medium |
US12052151B2 (en) | 2022-06-13 | 2024-07-30 | Canon Kabushiki Kaisha | Network device and method for controlling the same |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04256034A (en) * | 1990-08-20 | 1992-09-10 | Internatl Business Mach Corp <Ibm> | Computer system |
JP2016161952A (en) * | 2015-02-26 | 2016-09-05 | 富士通株式会社 | Event notification program, event notification method, and event notification apparatus |
JP2016177498A (en) * | 2015-03-19 | 2016-10-06 | 株式会社リコー | Operation verification device, operation verification method, operation verification program, and manufacturing method for program |
JP2018163616A (en) * | 2017-03-27 | 2018-10-18 | キヤノン株式会社 | Authentication authorization server, resource server, authentication approval system, authentication method and program |
-
2019
- 2019-01-18 JP JP2019007176A patent/JP6871956B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04256034A (en) * | 1990-08-20 | 1992-09-10 | Internatl Business Mach Corp <Ibm> | Computer system |
JP2016161952A (en) * | 2015-02-26 | 2016-09-05 | 富士通株式会社 | Event notification program, event notification method, and event notification apparatus |
JP2016177498A (en) * | 2015-03-19 | 2016-10-06 | 株式会社リコー | Operation verification device, operation verification method, operation verification program, and manufacturing method for program |
JP2018163616A (en) * | 2017-03-27 | 2018-10-18 | キヤノン株式会社 | Authentication authorization server, resource server, authentication approval system, authentication method and program |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114978675A (en) * | 2022-05-20 | 2022-08-30 | 辽宁华盾安全技术有限责任公司 | Access authentication method and device, electronic equipment and storage medium |
CN114978675B (en) * | 2022-05-20 | 2023-06-20 | 辽宁华盾安全技术有限责任公司 | Access authentication method and device, electronic equipment and storage medium |
US12052151B2 (en) | 2022-06-13 | 2024-07-30 | Canon Kabushiki Kaisha | Network device and method for controlling the same |
Also Published As
Publication number | Publication date |
---|---|
JP6871956B2 (en) | 2021-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8656470B2 (en) | Image processing apparatus, access control method, and storage medium | |
US9268504B2 (en) | Information processing device, image forming device, printing system control method, and storage medium for searching, retrieving image forming devices that are collectively registered on a service providing device | |
US11122144B2 (en) | Information processing system, service providing system, and information processing method | |
US8693018B2 (en) | Printing system and print control method | |
EP2624123A2 (en) | Information processing system, information processing apparatus, and authentication method | |
JP6131551B2 (en) | Information processing system, information processing apparatus, information processing method, and information processing program | |
US20160212131A1 (en) | Information processing system, user terminal, and data processing device | |
US20090190165A1 (en) | Link system | |
JP2018094870A (en) | Information processing system, apparatus, information processing device, information processing method and program | |
US20160080588A1 (en) | Information processing system, information processing method, and recording medium storing an information processing program | |
JP6871956B2 (en) | Information processing equipment and client application test methods and programs | |
JP7409618B2 (en) | Information processing device and its control method and program | |
US20130139249A1 (en) | Image processing apparatus, method for controlling the same, and storage medium for carrying out login processing | |
JP2021140266A (en) | Information processing apparatus, information processing method and program | |
JP6492711B2 (en) | Relay device, operation screen providing device, and program | |
JP6447766B2 (en) | Service providing system, data providing method and program | |
JP5193676B2 (en) | Cooperation system | |
US11614904B2 (en) | Printing device, information processing device, and control method and medium for the same | |
JP6703782B2 (en) | Information processing apparatus, control method thereof, and program | |
JP5247540B2 (en) | Information processing system, control method therefor, and program | |
JP2014142735A (en) | Printing system, method, and program | |
US9524387B2 (en) | Information processing apparatus, control method for information processing apparatus, and storage medium | |
US20080256614A1 (en) | Network terminal management apparatus, method and program | |
EP4014460A1 (en) | A multi-function device, a system, a method of configuring a multi-function device, and a program | |
JP2016143370A (en) | Information processing device, information processing system, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190920 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190920 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20201130 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20210103 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210113 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210122 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20210319 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210416 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6871956 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |