Information processing apparatus, method for controlling the same, and storage medium
An information processing apparatus provides a setting screen for performing authorizing for an email service, makes a request to the email service using an access token obtained as a result of the authorizing. The information processing apparatus provides settings setting screens for performing different types of authorizing are provided for a first email service and a second email service.
1 . An image forming apparatus comprising:
a scanner for scanning an original document;
one or more memory devices that store a set of instructions; and
one or more processors that execute the set of instructions to:
provide, to a web browser of an external terminal via a network, a first setting screen for performing authorizing settings of a first authorizing type for a first email service;
make a first request to the first email service using an access token obtained as a result of the authorizing settings of the first authorizing type, wherein the first request to the first email service is a request to send an email with image data attached, where the image data is generated by the scanner;
provide, to the web browser of the external terminal via the network, a second setting screen for performing authorizing settings of a second authorizing type, using a different access token issuance flow from the first authorizing type, for a second email service, and
make a second request to the second email service using an access token obtained as a result of the authorizing settings of the second authorizing type, wherein the second request to the second email service is a request to send another email with image data attached, where the image data is generated by the scanner.
2 . The image forming apparatus according to claim 1 ,
further comprising a printer,
wherein the printer prints image data generated by the scanner for copy processing.
3 . The image forming apparatus according to claim 1 , wherein the first setting screen or the second setting screen are provided based on a selection of a user.
4 . The image forming apparatus according to claim 1 , wherein
the authorizing settings of first authorizing type are settings for authorizing by means of a device flow, and
the first setting screen includes an object for giving the image forming apparatus an instruction to connect to an endpoint of an authorization server and make a request to authorize a device to the authorization server.
5 . The image forming apparatus according to claim 4 , wherein
the first setting screen further displays a result of obtaining the access token from the authorization server as a token availability status.
6 . The image forming apparatus according to claim 1 , wherein
the authorizing settings of the second authorizing type are settings for authorizing by means of an authorization code flow, and
the second setting screen includes an object for giving the information processing apparatus an instruction to generate an authorization server URL based on a client ID and a client secret.
7 . The image forming apparatus according to claim 6 , wherein
the second setting screen further includes an object for giving an instruction to obtain an authorization code from an authorization server based on the authorization server URL.
8 . The image forming apparatus according to claim 7 , wherein
the second setting screen further includes an object for giving an instruction for causing the image forming apparatus to obtain the access token from the authorization server.
9 . The image forming apparatus according to claim 8 , wherein
the authorization setting screen further displays a result of obtaining the access token from the authorization server as a token availability status.
10 . A method for controlling an image forming apparatus, the method comprising:
providing, to a web browser of an external terminal via a network, a first setting screen for performing authorizing settings of a first authorizing type for a first email service;
making a first request to the first email service using an access token obtained as a result of the authorizing settings of the first authorizing type, wherein the first request to the first email service is a request to send an email with image data attached, where the image data is generated by the scanner;
providing, to the web browser of the external terminal via the network, a second setting screen for performing authorizing settings of a second authorizing type, using a different access token issuance flow from the first authorizing type, for a second email service; and
making a second request to the second email service using an access token obtained as a result of the authorizing settings of the second authorizing type, wherein the second request to the second email service is a request to send another email with image data attached, where the image data is generated by the scanner.
11 . A non-transitory computer readable storage medium on which is stored a computer program for causing a computer to execute a method for controlling an image forming apparatus, the method comprising:
providing, to a web browser of an external terminal via a network, a first setting screen for performing authorizing settings of a first authorizing type for a first email service;
making a first request to the first email service using an access token obtained as a result of the authorizing settings of the first authorizing type, wherein the first request to the first email service is a request to send an email with image data attached, where the image data is generated by the scanner;
providing, to the web browser of the external terminal via the network, a second setting screen for performing authorizing settings of a second authorizing type, using a different access token issuance flow from the first authorizing type, for a second email service; and
making a second request to the second email service using an access token obtained as a result of the authorizing settings of the second authorizing type, wherein the second request to the second email service is a request to send another email with image data attached, where the image data is generated by the scanner.