Information processing apparatus and connection determination method
An information processing apparatus including: an inputter which receives an input of connection information; and one or more controllers which control connection to a service providing apparatus on the basis of the received connection information, in which the one or more controllers determine, when an authentication scheme in the service providing apparatus is an authentication scheme in which authorization is preliminarily required, whether or not connection based on the received connection information is practicable, according to an acquisition status of authentication information involved with the authorization.
1 . An information processing apparatus comprising:
an inputter which receives an input of connection information; and one or more controllers which control a connection to a service providing apparatus based on the connection information, wherein
the one or more controllers determine, when an authentication scheme in the service providing apparatus is an open authorization (OAuth) authentication scheme in which an authorization is preliminarily required, whether or not the connection is practicable according to whether a token, as part of authentication information for the authorization, has been acquired; wherein the one or more controllers execute a connection test when the token has been acquired, and determine that the connection is practicable when the connection test succeeds.
2 . The information processing apparatus according to claim 1 , further comprising one or more memories which store the connection information, based on which the connection has been successfully established, as first connection information, wherein
the one or more controllers determine, when the token has been acquired, whether or not the connection is practicable by comparing the first connection information stored in the one or more memories with the connection information that has been received.
3 . The information processing apparatus according to claim 2 , wherein
the one or more controllers determine that:
the connection is practicable when the first connection information matches the connection information, and
the connection is impracticable when the first connection information does not match the connection information.
4 . The information processing apparatus according to claim 1 , wherein
the one or more controllers determine that the connection is impracticable when the token is unacquired.
5 . The information processing apparatus according to claim 1 , wherein
the one or more controllers make a notification when the token is unacquired, that the token is unacquired, is in a process of being acquired, or is invalid.
6 . The information processing apparatus according to claim 1 , wherein
the one or more controllers restrict, when the token is unacquired, receiving of the input of the connection information.
7 . The information processing apparatus according to claim 1 , wherein
the one or more controllers determine, when the authentication scheme is an authentication scheme in which an authorization is not preliminarily required, or when a status of preliminary authorization indicates unauthorized, whether or not the connection is practicable by using the connection information that has been received.
8 . A connection determination method comprising:
receiving an input of connection information; and
determining, when an authentication scheme in a service providing apparatus is an open authorization (OAuth) authentication scheme in which an authorization is preliminarily required, whether or not a connection to the service providing apparatus based on the connection information is practicable according to whether a token, as part of authentication information for the authorization, has been acquired;
wherein the one or more controllers execute a connection test when the token has been acquired, and determine that the connection is practicable when the connection test succeeds.