Image processing apparatus and authentication processing method

By storing the account in the image processing device and switching to use when the token validity period expires, the problem of mail transmission interruption caused by the expiration of the token validity period in OAuth authentication is solved, and the reliability and success rate of mail transmission are improved.

CN118900303APending Publication Date: 2024-11-05SHARP KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410476773.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-02
Filing Date
2024-04-19
Publication Date
2024-11-05

Smart Images

  • Figure CN118900303A_ABST
    Figure CN118900303A_ABST
Patent Text Reader

Abstract

The invention provides an image processing device and the like which can avoid the situation that mail transmission cannot be carried out before re-authentication processing is carried out on an account due to expiration of the valid period of a token. An image processing apparatus includes: a storage unit that stores an account for a service providing apparatus; and a control unit that controls authentication processing for the service providing apparatus on the basis of the account, the control unit, upon receiving an input of a new account, determines that the new account and a first account stored in the storage unit correspond to the same authentication method, and if the new account and the first account stored in the storage unit correspond to the same authentication method, performs authentication processing for the service providing apparatus. And storing the new account in the storage unit as a second account, the second account being a substitute account for the first account.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an image processing device and the like. Background Art

[0002] As an authentication method related to mail transmission, the OAuth authentication method, which is a more secure authentication method than the conventional authentication method using a user ID and a password, has recently become mainstream.

[0003] The token used for OAuth authentication has an expiration date to ensure security. If the token has expired, re-authentication with authorization from the administrator who is the account owner is required, and emails cannot be sent during this period.

[0004] For example, Patent Document 1 describes a mechanism that prompts for re-authorization processing of OAuth authentication when the validity period of a token has expired. Prior art literature Patent Literature

[0005] Patent Document 1: Japanese Patent Application Publication No. 2020-170913 Summary of the invention Technical Problems to be Solved by the Invention

[0006] An object of the present disclosure is to provide an image processing apparatus and the like which can avoid a situation where mail cannot be sent before re-authentication processing is performed on the account due to expiration of the validity period of a token. Solutions for solving problems

[0007] In order to solve the above-mentioned problem, the image processing device involved in the present disclosure is characterized in that it includes: a storage unit, which stores an account for a service providing device; and a control unit, which controls the authentication processing for the service providing device based on the account, and when the control unit accepts the input of a new account, if it is determined that the new account and the first account stored in the storage unit correspond to the same authentication method, the new account is stored in the storage unit as a second account, and the second account is a substitute account for the first account.

[0008] In addition, the authentication processing method involved in the present disclosure is characterized in that an account for a service providing device is stored as a first account in a storage device. When a new account is input, if it is determined that the new account and the first account correspond to the same authentication method, the new account is stored as a second account in the storage device, and the second account is a substitute account for the first account. Based on the account stored in the storage device, authentication processing for the service providing device is performed. Effects of the Invention

[0009] According to the present disclosure, it is possible to provide an image processing apparatus or the like which can avoid a situation where mail cannot be sent until re-authentication processing is performed on the account due to expiration of the validity period of a token. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 This diagram explains how the multifunction device, cloud, and mail distribution server are connected. Figure 2 This is a functional configuration diagram of a multifunction device. Figure 3 This is a diagram for explaining the account management table. Figure 4 This is a flowchart illustrating the flow of processing according to the first embodiment. Figure 5 This is a sequence diagram for explaining the flow of commands according to the first embodiment. Figure 6 This is a sequence diagram for explaining the flow of commands according to the first embodiment. Figure 7 This is a flowchart illustrating the flow of processing according to the first embodiment. Figure 8 It is a diagram for explaining an operation example according to the first embodiment. Fig. 9 It is a diagram for explaining an operation example according to the first embodiment. Fig.10 It is a diagram for explaining an operation example according to the first embodiment. Fig.11 This is a flowchart illustrating the flow of processing according to the second embodiment. Fig.12 It is a diagram for explaining an operation example according to the second embodiment. Fig.13 It is a diagram for explaining an operation example according to the second embodiment. Fig.14 This is a flowchart illustrating the flow of processing according to the third embodiment. Fig.15 It is a diagram for explaining an operation example according to the third embodiment. Fig.16 It is a diagram for explaining an operation example according to the third embodiment. Fig.17 It is a diagram for explaining an operation example according to the third embodiment. Fig.18 This is a flowchart illustrating the flow of processing according to the fourth embodiment. Fig.19 This is a diagram for explaining the account management table. DETAILED DESCRIPTION

[0011] Hereinafter, an embodiment of the present disclosure will be described with reference to the drawings. In addition, the following embodiment is an example for describing the present disclosure, and the technical content of the description described in the claims is not limited to the following description.

[0012] When sending mail from the image processing device, an account pre-set by the administrator of the image processing device is used to perform authentication processing for mail distribution services, authentication services, etc. If the account at this time is an account corresponding to the OAuth authentication method, even if the administrator performs authentication processing during setting, the administrator is required to perform re-authentication processing when the validity period of the token has expired.

[0013] Furthermore, since the re-authentication process is often performed by the account owner (administrator), other users cannot send emails until the re-authentication process is completed. In particular, if the failure of email transmission occurs when the operation screen of the image processing device is not operated, such as in the case of automatic transmission of fax reception, the job may continue to fail for a long time without recognizing the failure of email transmission.

[0014] Furthermore, in OAuth authentication, the number of tokens that can be obtained for each account is sometimes limited. In the case where an account is used in many devices, when the number of tokens obtained reaches the upper limit, the possibility of email sending failure increases further.

[0015] In the present disclosure, an image processing apparatus or the like is realized through the following embodiments, which can avoid a situation where mail cannot be sent until re-authentication processing is performed on the account due to expiration of the validity period of a token.

[0016] [1. First embodiment] [1.1 Overall composition] Figure 1 This is a diagram for explaining an example of a connection method among the multifunction machine 10 as an image processing apparatus, the cloud 30 as a service providing apparatus, and the mail distribution server 50 according to the first embodiment.

[0017] The multifunction machine 10 involved in the first embodiment is an image processing device that can realize printing, copying, faxing (Internet FAX), mail sending, etc. in one housing. In addition, in the first embodiment, the multifunction machine 10 is described as a form of an image processing device, but as long as it is a configuration that can use an account corresponding to OAuth authentication for authentication processing, there is no particular limitation, and it may also be an image processing device such as a copier, a printer, or a fax machine.

[0018] The multifunction machine 10 is connected to the cloud 30 and the mail distribution server 50 via the network NW1. The multifunction machine 10 is configured based on a communication protocol such as IP (Internet Protocol), TCP (Transmission Control Protocol), HTTP (Hypertext Transfer Protocol), SMTP (Simple Mail Transfer Protocol), etc., and can communicate with the cloud 30 and the mail distribution server 50. In addition, the network NW represents a network line such as a LAN (Local Area Network), a WAN (Wide Area Network), and the Internet. In addition, the number of multifunction machines 10 connected to the network NW is not limited to 1. Figure 1 In another example, a plurality of multifunction peripherals 10 may be connected to the network NW.

[0019] The cloud 30 includes an authorization server (not shown) that authorizes the use of resources by, for example, implementing an authorization code flow based on the OAuth2.0 authentication method. The cloud 30 has no restrictions on the device configuration as long as it generates an authorization code, an access token as authorization information, a refresh token as update request information, etc. based on authentication (authorization). For example, the authorization server that processes the authorization code flow and the resource server that provides resources can be separately configured, or can be configured by a single device that has both authentication and resource provision functions.

[0020] The mail distribution server 50 distributes mails according to the SMTP protocol and the POP (Post Office Protocol). The mail distribution server 50 can send mails to a specific destination and distribute received mails according to a mail sending request from the cloud 30 (resource server) via an API (Application Programming Interface). In addition, the mail distribution server 50 can also be configured as a resource server of the cloud 30.

[0021] [1.2 Functional structure] [1.2.1 Regarding the multifunction device 10] Next, use Figure 2 The functional configuration of the multifunction peripheral 10 according to the first embodiment will be described. The multifunction peripheral 10 includes a control unit 11 , a display unit 13 , an operation input unit 15 , a communication unit 17 , an image processing unit 19 , an image input unit 21 , and a storage unit 23 .

[0022] The control unit 11 controls the entire multifunction device 10 . The control unit 11 is composed of, for example, one or more computing devices (CPU (Central Processing Unit) etc.), and realizes its functions by reading and executing various programs stored in the storage unit 23 .

[0023] The display unit 13 displays various information to the user. The display unit 13 is composed of, for example, an LCD (Liquid crystal display), an organic EL (Electro-luminescence) display, etc. The display unit 13 displays a screen based on the browsing screen information generated by the browser program 234 described later, based on the control performed by the control unit 11.

[0024] The operation input unit 15 receives information input from a user or the like. The operation input unit 15 may be composed of various input devices such as operation keys such as hard keys and software keys, buttons, etc. In addition, the operation input unit 15 may be configured as a touch panel that can be input via the display unit 13. In this case, the operation input unit 15 may function as a UI (User Interface) through a web browser screen or an application screen displayed on the display unit 13. In addition, as an input method of the touch panel, for example, a common method such as a resistive film method, an infrared method, an electromagnetic induction method, a capacitive method, etc. may be adopted.

[0025] The control unit 11 functions as an OS (Operating System) by reading a control program 231 described later. In the first embodiment, a UI driven under the control of the OS may be referred to as UI / OS 110 .

[0026] The communication unit 17 includes either or both of a wired / wireless interface for communicating with other devices (cloud 30, mail distribution server 50) via a network (NW) such as a LAN, WAN, the Internet, a telephone line, a fax line, etc. In addition, the communication unit 17 may also include an interface related to (short-range) wireless communication technology such as Bluetooth (registered trademark), NFC (Near field communication), Wi-Fi (registered trademark), ZigBee (registered trademark), Irda, and wireless USB.

[0027] The image processing unit 19 includes an image forming unit that forms an image based on image data on a paper or the like as a recording medium. The image forming unit supplies paper from a paper feed tray (not shown), forms an image based on the image data on the paper, and then discharges the paper to a paper discharge unit (not shown). The image forming unit may be composed of, for example, a laser printer that utilizes an electronic photography method. In this case, the image forming unit uses a toner supplied from a toner cartridge (not shown) corresponding to the toner color (for example, cyan, magenta, yellow, black) to form an image. In addition, the image processing unit 19 may also include a method of performing, for example, shading correction, concentration correction, etc. on the image data input from the image input unit 21 to generate output image data for attachment to mail.

[0028] The image input unit 21 generates image data by scanning a document. The image input unit 21 may be configured as a scanning device having an image sensor such as a CCD (Charge coupled device), a CID (Contact image sensor), an automatic document feeder (ADF), a platform for placing documents, and the like. There is no particular limitation on the configuration of the image input unit 21 as long as it is capable of generating image data by reading a reflected light image from a document image through an image sensor. In addition, the image input unit 21 may also be configured as an interface capable of acquiring image data stored in a removable storage medium such as a USB (Universal serial bus) memory, or image data sent from an external terminal device not shown in the figure.

[0029] The storage unit 23 stores various programs and various data required for the operation of the multifunction device 10. The storage unit 23 can be composed of a storage device such as a RAM (Random access memory), a HDD (Hard disk drive), a SSD (Solid state drive), or a ROM (Read only memory).

[0030] In the first embodiment, the storage unit 23 stores a control program 231 , an authentication program 232 , an application program 233 , a browser program 234 , and an account management program 235 , and secures an account storage area 236 .

[0031] The control program 231 is a program read by the control unit 11 when comprehensively controlling the multifunction device 10. The control unit 11 that has read the control program 231 functions as an OS, and performs setting, execution, post-processing, etc. of each job such as printing, copying, faxing, and mailing by controlling the driving of the display unit 13, the operation input unit 15, the communication unit 17, the image processing unit 19, and the image input unit 21.

[0032] The authentication program 232 is a program read by the control unit 11 when performing authentication processing with the cloud 30. The control unit 11 that has read the authentication program 232 implements the authentication processing for the cloud 30 via the Web browser described later. In addition, the control unit 11 that has read the authentication program 232 can also perform, on the basis of an authentication method that requires prior authorization such as OAuth authentication, an existing authentication processing (such as SMTP authentication processing, POP authentication processing) that performs authentication by a combination of a user name (user ID) and a password, and a login authentication for the multifunction machine 10. In addition, the control unit 11 that has read the authentication program 232 verifies, as an authentication processing, whether the access token that is the authorization information for utilizing the mail distribution service provided by the cloud 30 (mail distribution server 50) as a service provider can be updated (hereinafter referred to as update validity) based on a refresh token that is update request information corresponding to an account. In the present disclosure, the control unit 11 verifies the update validity of the access token based on the validity period set in the refresh token.

[0033] The application 233 is an application that is read by the control unit 11 and can realize functions such as printing, copying, faxing, and sending emails. As the application 233, it can be a comprehensive management application that manages the settings and management of the multifunction machine 10, or it can be a separate application (for example, a scanning and sending application, etc.) that sets the comprehensive management application as a platform. In addition, the control unit 11 that has read the application 233 can utilize the functions of other programs such as the authentication program 232 through the API. Through the collaboration of the application 233 and the authentication program 232, it is possible to obtain / update / hand over authentication information and access tokens between the clouds 30. In the description here, the application 233 and the authentication program 232 are described as separate structures, but the functions of the authentication program 232 can also be set in the application 233. In addition, in the subsequent description, the way in which the control unit 11 that has read the application 233 acts for the purpose of the user will be referred to as an application and described.

[0034] The browser program 234 is a program read by the control unit 11 when generating screen information for browsing by rendering the received input content. The control unit 11 that has read the browser program 234 functions as a web browser and can accept input and requests from the user through the displayed web browser screen, or display notifications from the application to the user.

[0035] The account management program 235 is a program read by the control unit 11 when managing an account set by a provider. The control unit 11 that has read the account management program 235, for example, determines whether the authentication method of the new account corresponds to the OAuth authentication method when receiving an input of a new account via a setting screen (not shown). Then, if the control unit 11 determines that the authentication method of the new account corresponds to the OAuth authentication method, the new account is stored as a second account as a replacement account for the first account already stored in the account storage area 236. In addition, if it is determined that the authentication method of the new account cannot correspond to the OAuth authentication method, the control unit 11 stores it in the account storage area 236 as an account of another authentication method.

[0036] The account storage area 236 is a storage area for storing accounts. The account storage area 236 stores accounts as Figure 3 The account management table exemplified in . Alternatively, the account storage area 236 may be provided in an external storage device or the like connected to the network NW other than the multifunction peripheral 10 .

[0037] Here, use Figure 3 An example of the configuration of the account management table according to the first embodiment will be described. Figure 3 The configuration example of the account management table illustrated in the example is only an example, and the management of the account involved in the present disclosure is not limited to Figure 3 For example, the account management table may include Figure 3 The management format of items other than the management items shown is not limited to the table format, and a database may be used.

[0038] The account management table 2361 contains ID, user name, provider, usage account, authentication method, account type, and token validity period as management items.

[0039] ID is an identifier for uniquely identifying an account to be managed. Username indicates the name of the owner of the account. Provider indicates the name of the authentication destination (cloud 30). Usage account indicates the account name used for authentication processing. Authentication method indicates the authentication method corresponding to the account. Account category indicates the account category corresponding to the OAuth authentication method. Token validity period indicates the validity period of the token issued from cloud 30 corresponding to the account. Here, the token involved in the present disclosure is intended to update the refresh token (update request information) of the access token (authorization information) used to utilize the resources of cloud 30 (mail distribution server 50). In addition, the validity period involved in the present disclosure indicates a certain period during which the token issued by cloud 30 is valid, which can be expressed by date, time, or by the period from the date issued by cloud 30 to a specific date. In addition, in addition to these management items, the account management table 2361 may also include a password corresponding to the usage account, a token (itself), an authorization code, and the contact information (email address, etc.) of the account owner in the management items.

[0040] For example, the account involved in ID "01" represents an account with the user name "admin" set as the owner. The account involved in ID "01" sets the provider "aabbcc" as the authentication destination, and the account used at this time is "admin@aabbcc.jp". The account involved in ID "01" corresponds to the OAuth authentication method (authentication method "OAuth authentication method"), and the category of the account is "first account". The first account is an account used as the main account in the authentication process related to email sending, and is an account already stored in the account storage area 236. In addition, the validity period of the token for the account associated with ID "01" is "2023 / 5 / 10". When the validity period of the token expires, the authentication process using the account fails.

[0041] The account involved in ID "02" represents an account with the user name "admin" set as the owner. The account involved in ID "02" sets the provider "aabbcc" as the authentication destination, and the account used at this time is "admin2@aabbcc.jp". The account involved in ID "02" corresponds to the OAuth authentication method (authentication method "OAuth authentication method"), and the category of the account is "second account". In the case where the control unit 11 determines that the authentication method of the account accepted by the new account corresponds to the OAuth authentication method, the second account is stored in the account storage area 236 as a substitute account for the first account already stored in the account storage area 236. When the validity period "2023 / 5 / 10" of the token involved in the first account has expired, the control unit 11 uses the second account as a substitute account for the first account to perform authentication processing. In addition, the authentication processing of the account used in the present disclosure refers to the concept of authentication / authorization processing based on the OAuth authentication method, for example, authentication processing for Cloud 30 using an account (account name), password, etc., authorization processing using an access token, token renewal request processing of an access token based on a refresh token, etc.

[0042] On the other hand, the account involved in ID "03" indicates an account with the user name "admin" set as the owner. The account involved in ID "03" sets the provider "gghhii" as the authentication destination, and the account used at this time is "user@gghhii.jp". The account involved in ID "03" does not correspond to the OAuth authentication method (authentication method "SMTP authentication method"), and the account does not belong to any of the account categories of "first account" and "second account" (account category: "-").

[0043] [1.2.2 About Cloud 30] The cloud 30 according to the first embodiment may use a known configuration as long as it includes an authorization server that authorizes the use of resources by executing an authorization code flow based on the OAuth authentication method. Therefore, the functional configuration of the mail server 30 will be omitted.

[0044] [1.2.3 About the mail distribution server 50] The mail delivery server 50 may use a known configuration as long as it can send mail to a specific destination and distribute received mail in response to a mail sending request via an API from the cloud 30 (resource server). Therefore, the functional configuration of the mail delivery server 50 is omitted.

[0045] [1.3 Processing Flow] Next, the flow of processing according to the first embodiment will be described. Figure 4 1 is a flowchart for explaining the process of setting (storing) the account as the second account when the authentication method of the account accepted by the new account corresponds to the OAuth authentication method. Figure 4 The processing described in the flowchart is the processing executed by the control unit 11 by reading the account management program 235, etc. Figure 4 In the description, the process of setting (storing) an account corresponding to the OAuth authentication method as the first account is described.

[0046] First, the control unit 11 receives a request from an administrator of the multifunction device 10 (for example, Figure 3 The control unit 11 receives the account owner indicated by the user name "admin" of ID "01" illustrated in the account management table 2361 of the example, and accepts the setting of the account corresponding to the OAuth authentication method. The control unit 11 sets the received account as the first account related to the authentication process of email sending. When the control unit 11 receives the setting of the first account, it stores the account in the account management table 2361 (step S10).

[0047] Next, the control unit 11 determines whether a new input of an account is accepted (step S12). If the control unit 11 determines that the input of a new account is accepted, it determines whether the authentication method of the account corresponds to the OAuth authentication method (step S12; yes → step S14). In addition, if the control unit 11 determines that the input of a new account is not accepted, it waits until the input of the account is accepted (step S12; no).

[0048] When the control unit 11 determines that the authentication method of the new account corresponds to the OAuth authentication method, it sets the new account as a second account that replaces the first account and ends the process (step S14; yes → step S16). At this time, the control unit 11 performs authentication processing using the second account for the cloud 30.

[0049] On the other hand, when the control unit 11 determines that the authentication method of the received account does not correspond to the OAuth authentication method, it sets the received account to an account of another authentication method and ends the process (step S14; No→step S18).

[0050] Next, use Figure 5 The command sequence between the user, UI / OS 110, application, and cloud 30 when a transmission error occurs due to expiration of the token validity period and the user (administrator) performs re-authentication will be described. In addition, the token update request process will be mainly described as the authentication process.

[0051] First, when the user inputs an instruction to execute mail transmission ( S100 ), the UI / OS 110 transmits a token update execution request command to the application ( S102 ).

[0052] The application sends a token update request command to the cloud 30 (S104). The cloud 30 that accepts the token update request command verifies the validity period of the token. At this time, if the validity period of the token has expired, the cloud 30 performs an error determination (error determination). Then, the cloud 30 returns an error caused by the expiration of the token's validity period to the application (S106). On the other hand, if the validity period of the token has not expired, an updated token (access token, refresh token) is issued, and a token response command is sent to the application. The application that receives the token response command passes the token to the UI / OS110. The UI / OS110 sends an email sending request command containing the acquired token to the cloud 30 (resource server). The cloud 30 (resource server) confirms the validity of the received token and makes an email sending request to the email distribution server 50. Then, when the email is sent successfully, the cloud 30 (resource server) sends a sending success response command to the UI / OS110. The UI / OS110 notifies the user that the email sending has been completed.

[0053] The application receiving the error response from the cloud 30 returns an error to the UI / OS 110 (S108). The UI / OS 110 notifies the user of a transmission error and the need for authentication associated with the transmission error (re-authentication required) (S110).

[0054] Next, a case where the administrator as a user performs re-authentication after a transmission error is described.

[0055] UI / OS 110 receives a re-authentication request instruction from the administrator (S112). When receiving the re-authentication request instruction, UI / OS 110 sends an authentication processing request command to the application (S114). The application that receives the authentication processing request command sends an authentication processing request command to the cloud 30 (S116).

[0056] The cloud 30 that receives the authentication processing request command sends an authentication screen response command to the application (S118). The authentication screen response command may include content related to the authentication screen for accepting input of authentication information (login information) for the administrator and a URL (Uniform Resource Locator) indicating the storage location of the content.

[0057] When receiving the authentication screen response command, the application sends the authentication screen response command (S120) to UI / OS110. The command sent from the application to UI / OS110 may include, in addition to the location information such as the content and URL related to the authentication screen received from the cloud 30, a display instruction of the web browser through the authentication screen.

[0058] The UI / OS 110 , which has received the authentication screen response command from the application, displays the authentication screen to the administrator ( S122 ).

[0059] UI / OS110 accepts the input of login information by the administrator (S124). When UI / OS110 accepts the input of login information, UI / OS110 sends a login execution request command to the application (S126). When the application receives the login execution request from UI / OS110, it sends a login request command to the cloud 30 (S128).

[0060] The cloud 30 performs login authentication by verifying the received login information. When the login authentication is successful (authentication OK), the cloud 30 sends an authorization screen response command to the application (S130). The authorization screen response command may include content related to the authorization screen for accepting input of whether to use the resource and a URL indicating the storage location of the content.

[0061] When receiving the authorization screen response command, the application sends the authorization screen response command (S132) to UI / OS110. In the command sent from the application to UI / OS110, in addition to the location information of the content, URL, etc. related to the authorization screen received from the cloud 30, it can also include a display instruction of the web browser through the authorization screen.

[0062] The UI / OS 110 , which has received the authorization screen response command from the application, displays the authorization screen to the administrator ( S134 ).

[0064] UI / OS110 accepts the administrator's input of an instruction to resend the email (S136). When UI / OS110 accepts the input of an instruction to resend the email, UI / OS110 sends a token acquisition execution request command to the application (S138). When the application receives the token acquisition execution request command from UI / OS110, the application sends a token acquisition request command including an authorization code to the cloud 30 (S140).

[0065] The cloud 30 issues a token based on the authorization code (authentication OK), and sends a token response command to the application (S142). The application that receives the token response command passes the token to the UI / OS 110 (S144).

[0066] UI / OS110 sends an email sending request command including the acquired token to cloud 30 (resource server) (S146). Cloud 30 (resource server) confirms the validity of the received token and makes an email sending request to email distribution server 50. Then, when the email is successfully sent, cloud 30 (resource server) sends a sending success response command to UI / OS110 (S148). UI / OS110 notifies the user that the email sending is completed (S150).

[0067] Next, use Figure 6 The command sequence between the user, UI / OS 110, application, and cloud 30 when a sending error occurs due to the expiration of the token validity period and the email is resent using the second account. In addition, the command sequence related to S100 to S108, S142 to S150 is similar to Figure 5 The description here is the same as that in , so it is omitted.

[0068] UI / OS110, which receives an error return from the application, switches the account to the second account and sends a token update execution request command to the application (S200). The application sends a token update request command to the cloud 30 (S202). The cloud 30, which has accepted the token update request command, verifies the validity period of the token. At this time, if it is within the validity period of the token associated with the second account, the cloud 30 makes an authentication success judgment (authentication OK). Then, the cloud 30 issues the token and sends a token response command to the application (S142). The application that receives the token response command passes the token to UI / OS110 (S144). On the other hand, if the validity period of the token associated with the second account expires, the cloud 30 makes an error judgment (error judgment). Then, the cloud 30 returns an error caused by the expiration of the token validity period to the application. The application that receives the error return from the cloud 30 returns an error to UI / OS110. UI / OS110 notifies the user of the meaning of the sending error and the authentication required to accompany the sending error (re-authentication is required).

[0069] UI / OS110 notifies the user that the account has been switched (S204). On the other hand, UI / OS110 sends the acquired token and the email sending request command to cloud 30 (resource server) (S146). Cloud 30 (resource server) confirms the validity of the received token and makes an email sending request to the email distribution server 50. Then, when the email is successfully sent, cloud 30 (resource server) sends a sending success response command to UI / OS110 (S148).

[0070] The UI / OS 110 notifies the user that the mail transmission is completed ( S150 ).

[0071] Figure 7It is explained in Figure 6 Flowchart of the process executed by the UI / OS 110 upon receiving an error return from the application in S108 .

[0072] UI / OS 110 determines whether a transmission error return is received (step S20). If it is determined that a transmission error return is received, UI / OS 110 analyzes the content of the received transmission error and determines whether the transmission error is caused by the expiration of the validity period of the token (step S20; yes → step S22). In addition, if it is determined that a transmission error return is not received, UI / OS 110 waits until the transmission error return is received (step S20; no).

[0073] If the analysis result of the sending error determines that the sending error is caused by the expiration of the validity period of the token, UI / OS110 switches the account to the second account (step S22; yes → step S24). On the other hand, if it is determined that the sending error is not caused by the expiration of the validity period of the token, UI / OS110 determines that the sending error is caused by, for example, a simple account authentication failure, and ends the processing without switching the account to the second account (step S22; no → "end").

[0074] After switching the account to the second account, the UI / OS 110 sends a token update execution request command to the application and ends the process (step S26 ).

[0075] If a switch to the second account is performed in all cases when a sending error occurs, the email will be sent even in a situation where the account authentication fails and the like, which is not preferred in terms of security. Therefore, in the first embodiment, the switch to the second account is performed based on certain conditions such as the expiration of the validity period of the token. By adopting such a configuration, it is possible to prevent the email from being sent uselessly in a situation where a sending error occurs and the like is not preferred in terms of security.

[0076] [1.4 Operation Example] Next, an operation example of the first embodiment is described. Figure 8 and Fig. 9 This is a diagram for explaining a configuration example of the SMTP setting screen W10. Figure 8 is a diagram for explaining the setting operation of the first account. Fig. 9 It is a diagram for explaining the setting operation of the second account. Figure 8 and Fig. 9 The example of action described in Figure 4 An example of an action corresponding to the processing illustrated in .

[0077] Figure 8 and Fig. 9The SMTP setting screen W10 illustrated in FIG. 2 includes an SMTP setting area R10 and an authentication method setting area R12 .

[0078] The SMTP setting area R10 includes, as setting items, a primary server and a secondary server, a port number, a timeout, a sender name, a sender address, and a check box for enabling SSL / TLS.

[0079] The input boxes for the primary server and the secondary server are input boxes for specifying the mail distribution server 50, and accept input of the name (domain name), IP address information, etc. of the mail distribution server 50. In addition, when the secondary server is not set, the input boxes may be blank.

[0080] The port number input box accepts input of the port number of the mail transmission server 50. The timeout input box accepts input of the length of time to maintain the idle state until the connection times out. The sender name input box accepts input of the sender name of the mail, and the sender address input box accepts input of the mail sender's mail address. The check box for enabling SSL / TLS is a check box for accepting a designation of whether to encrypt the data when sending and receiving data on the Internet.

[0081] The authentication method setting area R12 includes an authentication method selection pull-down menu PM10, a provider input box Bx10, and an account name input box Bx12.

[0082] The authentication method selection pull-down menu PM10 is a pull-down menu for accepting selection of an authentication method. Figure 8 and Fig. 9 This shows a configuration in which any one of “no authentication”, “SMTP authentication”, or “OAuth authentication” can be selected as a selectable authentication method, and is an example in which the OAuth authentication method is selected as the authentication method.

[0083] The provider input box Bx10 is an input box for accepting input of the name of the provider (cloud 30) of the authentication destination. Figure 8 and Fig. 9 This is an example where "aabbcc" is entered as the provider.

[0084] The account name input box Bx12 is an input box for accepting input of an account name for a provider of an authentication destination. Figure 8 This is an example of accepting input of "admin@aabbcc.jp" as the account name related to the first account. Fig. 9 This is an example of accepting input of "admin2@aabbcc.jp" as the account name related to the second account.

[0085] pass Figure 8 and Fig. 9The settings entered in the SMTP setting screen W10 are stored in Figure 3 In the account management table 2361 shown.

[0086] Fig.10 This is a diagram for explaining an example of the display configuration of an account switching notification screen. Fig.10 This is an example in which the message screen M10 is superimposed and displayed on the job execution screen W20 of the scan and transmit application.

[0087] The message screen M10 is an example of a message screen that shows the meaning of "The validity period of the token has expired. The account has been switched to the second account." as the notification content, indicating that the validity period of the token in the account name "admin@aabbcc.jp" (first account) has expired and the account has been switched to the second account. In addition, in the case of setting restrictions on scanning and sending (email sending) using the second account (for example, in the case of limiting the switch to the second account only when the validity period of the token has expired, or in the case of limiting the email sending using the second account to the re-authentication request for the account owner (administrator) (second embodiment)), for example, a message to prompt the user such as "The email sending by the second account may sometimes be restricted in function" can also be added.

[0088] As described above, according to the first embodiment, even when the validity period of the token for the first account has expired, it is possible to send an email by switching to the second account as a substitute account for the first account, thereby avoiding the situation where the email cannot be sent before the re-authentication process is performed for the first account due to the expiration of the validity period of the token. In addition, according to the first embodiment, it is possible to prevent the second account from being unnecessarily used for sending emails such as scanning and sending, and it is possible to limit the sending of emails to destinations that are not preferred in terms of security.

[0089] [2 Second Embodiment] The second implementation mode is to send a notification to the account owner of the first account based on the switched second account to remind the owner of the first account to re-authenticate.

[0090] [2.1 Functional structure] The functional configurations of the multifunction machine, the cloud, and the mail distribution server according to the second embodiment may be the same as the functional configurations of the multifunction machine 10 , the cloud 30 , and the mail distribution server 50 according to the first embodiment. Therefore, the description here is omitted.

[0091] [2.2 Processing Flow] Fig.11 : is a flowchart illustrating the flow of processing involved in the second embodiment. Fig.11 As a continuing Figure 7The processing described in steps S20 to S26 will be described below.

[0092] The UI / OS 110 notifies the account owner that a reminder is given to perform re-authentication processing on the first account (step S30 ).

[0093] Next, UI / OS110 performs re-authentication processing by the account owner and determines whether the re-authentication is successful (step S32). If it is determined that the re-authentication is successful, UI / OS110 switches the account related to email sending from the second account to the first account and ends the processing (step S32; yes → step S34). In addition, if it is determined that the re-authentication is unsuccessful, UI / OS110 waits until the re-authentication is successful (step 32: no).

[0094] [2.3 Action Example] Fig.12 This is a diagram for explaining an example of the display configuration of a notification screen that sends a notification to the account owner to remind him to re-authenticate. Fig.12 This is an example in which the message screen M12 is displayed superimposed on the job execution screen W20 of the scan and transmit application.

[0095] Message screen M12 is an example of a message screen with notification content indicating that the token in the account name "admin@aabbcc.jp" (first account) has expired and that a reminder for re-authentication of the account is required. "The token's validity period has expired. Notification has been sent to the account owner. Please wait until re-authentication is completed."

[0096] Fig.13 This is a diagram for explaining a configuration example of an email transmission screen W30 for notifying the account owner (administrator) that the validity period of the token in the account name "admin@aabbcc.jp" (first account) has expired and for prompting re-authentication of the account. Fig.13 An example of an email transmission screen showing the notification content "The validity period of the token has expired. Please re-authenticate with provider "aabbcc"." is shown. In addition, the email transmission screen W30 may include a link destination L10 to an authentication screen to facilitate re-authentication processing of the account owner.

[0097] As described above, according to the second embodiment, since a notification reminding the account owner of the first account to re-authenticate can be sent based on the switched second account, the account owner of the first account can easily understand that re-authentication of the account is required. In addition, in the second embodiment, after the email is sent based on the switch to the second account, if the re-authentication of the first account is successful, the account related to the email sending can be switched to the first account. By adopting such a configuration, if the re-authentication of the first account is successful, the effect of the user not having to manually switch accounts can also be obtained.

[0098] [3. Third Embodiment] If the validity period of the token used as the first account has expired and re-authentication is required, even if you want to send an email based on the second account described in the first embodiment or the second embodiment, if the validity period of the token used as the second account has expired, it is possible that the email cannot be sent and a sending error occurs. In order to avoid this situation, the third embodiment is as follows: if the provider involved in the already set first account and the provider involved in the account you want to set as the second account are the same provider, by limiting the setting of the account as the second account, the possibility of failure to obtain the token in both the first account and the second account due to, for example, server failure, token reset, etc. can be reduced.

[0099] [3.1 Functional structure] The functional configurations of the multifunction machine, the cloud, and the mail distribution server according to the third embodiment may be the same as the functional configurations of the multifunction machine 10 , the cloud 30 , and the mail distribution server 50 according to the first embodiment. Therefore, the description here is omitted.

[0100] [3.2 Processing Flow] The processing flow involved in the third embodiment can be Fig.14 The flowchart is replaced by Figure 4 Therefore, for the same processing, the same figure mark is given and its description is omitted.

[0101] When the control unit 11 determines that the authentication method of the accepted account corresponds to the OAuth authentication method, it determines whether the provider of the accepted account is the same as the provider involved in the first account (step S40). When the control unit 11 determines that the provider of the accepted account is the same as the provider involved in the first account, it does not set the account as the second account and ends the processing (step S40; yes→"end"). At this time, the user may be notified to remind him to set it through a provider different from the provider involved in the first account.

[0102] On the other hand, when the control unit 11 determines that the provider associated with the received account is different from the provider associated with the first account, it sets the account as the second account and ends the process (step S40; No→step S16→"End").

[0103] [3.3 Action Example] Fig.15 This is an example in which a message screen M14 indicating that the second account cannot be set is displayed superimposed on the SMTP setting screen W10.

[0104] The message screen M14 is an example of a message screen notifying that the account to be set as the second account (account name "admin2@aabbcc.jp", provider name "aabbcc") is the same as the provider (name) "aabbcc" set for the first account, so it is not possible to set it as the second account. "Since it is the same provider as the first account, it cannot be set as the second account. Please select a different provider." In this case, the administrator can set the input account as the second account by selecting a provider different from the provider "aabbcc" related to the first account.

[0105] Fig.16 This is a diagram for explaining a method of limiting the selection of the same provider as the first account as the second account. Fig.16 This is an example of a method in which the same provider as the first account (provider name "aabbcc") is grayed out in the drop-down menu PM12 for accepting provider selection, and the selection of the provider is limited. In this way, when setting the second account, it is also possible to control that the same provider as the provider involved in the first account cannot be selected.

[0106] As described above, according to the third embodiment, by restricting the account from being set as the second account, the provider involved in the already set first account and the provider involved in the account that is desired to be set as the second account are not the same provider, thereby reducing the possibility of failure to obtain tokens in both the first account and the second account due to server failure, token resetting, etc. due to the provider involved in the first account and the provider involved in the second account being the same provider.

[0107] Furthermore, for example, when the second account is set at a timing such that the validity period of the first account is separated from the validity period of the second account by a predetermined period (e.g., 3 months), the second account may be selected from the same provider as the first account. Fig.17As shown in the message screen M16, by displaying a message screen such as "The validity period of the first account and the validity period of the second account are more than 3 months apart. Although it is possible to set it using the same provider as the first account, it is recommended to select a different provider. ... Recommended provider: ddeeff", etc., it is preferred to prompt the selection of a provider different from the same provider as the first account as the second account, thereby realizing a reminder.

[0108] In addition, the provider determination process related to the above-mentioned account may also be implemented on the cloud 30 side. In this case, in the stage of the authentication process related to the second account, if it is determined that the provider related to the first account and the provider related to the second account are the same provider, the cloud 30 only needs to notify the control unit 11 of the multifunction device 10 that the authentication related to the second account is rejected or that a change to a different provider is prompted.

[0109] [4 Fourth Embodiment] The fourth implementation method is capable of confirming the validity period of the token involved in the first account and the validity period of the token involved in the second account, and reminding the appropriate date and time for re-authentication so that the validity periods of the tokens involved in these accounts will not expire at the same time.

[0110] [4.1 Functional structure] The functional configurations of the multifunction machine, the cloud, and the mail distribution server according to the fourth embodiment may be the same as the functional configurations of the multifunction machine 10 , the cloud 30 , and the mail distribution server 50 according to the first embodiment. Therefore, the description here is omitted.

[0111] [4.2 Processing Flow] Fig.18 is a flowchart illustrating the process flow involved in the fourth embodiment. Fig.14 The processing described in the flowchart is a processing executed by the control unit 11 by reading the account management program 235 and the like.

[0112] After setting the second account, the control unit 11 reads the expiration date of the token related to the second account and the expiration date of the token related to the first account from the account management table 2361 (step S50 → step S52 ). Then, the control unit 11 determines a notification date and time for prompting re-authentication based on the validity period of the token read out in step S52 (step S54 ).

[0113] Furthermore, before setting the second account, the validity period of the token related to the first account can be read, and the setting timing of the second account can be controlled so that the validity periods of the tokens related to the second account are separated by a predetermined time or more.

[0114] The control unit 11 updates the account management table 2361 by reflecting the notification date and time determined in step S54 on the account management table 2361 (step S56 ).

[0115] The control unit 11 determines whether the date and time measured by the timing unit (not shown) has reached the notification date and time for reminding re-authentication (step S58). If it is determined that the measured date and time has reached the notification date and time for reminding re-authentication, the control unit 11 notifies the account owner (administrator) etc. of the meaning of reminding re-authentication and ends the processing (step S58; yes → step S60). In addition, if it is determined that the measured date and time has not reached the notification date and time for reminding re-authentication, the control unit 11 continues to measure time using the timing unit (not shown) until the notification date and time is reached (step S58; no).

[0116] Here, use Fig.19 , yes Fig.18 The account management table 2363 updated in the update process of step S56 is described below. Fig.19 The account management table 2363 illustrated in Figure 3 In addition to the management items managed in the account management table 2361 illustrated in the example, the re-authentication notification date and time are also included as management items. Here, for example, the tokens of the two accounts involved in ID "01" and ID "02" are issued on "May 10, 2023" and expire on "November 10, 2023" (valid for 6 months from the date of issuance of the token).

[0117] Here, for example, if the re-authentication notification date and time is not determined and the re-authentication notification is not performed, the tokens associated with the two accounts involving ID "01" and ID "02" will expire on November 10, 2023.

[0118] However, if Fig.19 As in the example in , the token associated with either account with ID "01" or ID "02" ( Fig.19 In the example above, the token for ID "01" is notified, and the re-authentication notification date and time is set from the token issuance date (May 10, 2023) to, for example, 3 months later (August 10, 2023). This prevents the tokens for accounts with ID "01" or ID "02" from expiring at the same time (on the same day). Fig.19 In the example, a re-authentication notification date and time is set for the token of either account of ID "01" or ID "02", but of course, a re-authentication notification date and time with different dates and times can also be set for the tokens of the two accounts of ID "01" and ID "02".

[0119] As described above, according to the fourth embodiment, by setting a re-authentication notification date and time for either or both of the tokens involved in the first account and the tokens involved in the second account to remind re-authentication, it is possible to prevent the validity periods of the tokens involved in the first account and the tokens involved in the second account from expiring at the same time.

[0120] [5. Modification Example] In OAuth authentication, a limit is sometimes set on the number of tokens that can be obtained for each account. In the case where an account is used in many devices, when the number of tokens obtained reaches the upper limit, the possibility of email sending failure increases further. In this case, a second account or more than one account can be set for the multifunction machine 10, and by using the account related to email sending in rotation, the occurrence of sending errors can also be suppressed.

[0121] As an authentication method, the present disclosure can be applied to token-based authentication methods such as GNAP (Grant Negotiation and Authorization Protocol) in addition to OAuth authentication. The present disclosure is not limited to the above-mentioned embodiments, and various changes can be made. That is, the embodiments obtained by combining appropriately changed technical means within the scope of the main purpose of the present disclosure are also included in the technical scope of the present disclosure.

[0122] In addition, for the sake of convenience of explanation, the above-mentioned embodiments have parts described separately, but it goes without saying that they can also be combined and executed within the scope of technical possibility.

[0123] In addition, the programs running in the various devices of the embodiments are programs that control the CPU and the like (programs that enable the computer to function) to realize the functions of the above-mentioned embodiments. Furthermore, the information processed by these devices is temporarily stored in a temporary storage device (e.g., RAM) while being processed, and is then stored in various ROM (Read Only Memory), HDD, SSD storage devices and read, modified, and written by the CPU as needed.

[0124] Here, the recording medium for storing the program may be any one of a semiconductor medium (e.g., a ROM, a nonvolatile memory card, etc.), an optical recording medium / magneto-optical recording medium (e.g., a DVD (Digital Versatile Disc), an MO (Magneto Optical Disc), an MD (Mini Disc), a CD (Compact Disc), a BD (Blu-ray (registered trademark) Disc), etc.), a magnetic recording medium (e.g., a magnetic tape, a floppy disk, etc.). In addition, by executing the downloaded program, not only the functions of the above-mentioned embodiments can be realized, but also the functions of the present disclosure can be realized through joint processing by an operating system or other application programs based on the instructions of the program.

[0125] Furthermore, when the program is distributed to the market, it can be stored in a portable recording medium and distributed, or transferred to a server computer connected via a network such as the Internet. In this case, the storage device of the server computer is of course also included in the present invention.

[0126] In addition, each functional module or each feature of the device used in the above-mentioned embodiments can be installed and executed by a circuit, such as an integrated circuit or multiple integrated circuits. Circuits designed in a manner to implement the functions described in this specification may include: a general-purpose processor, a digital signal processor (DSP), an integrated circuit for a specific purpose (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic, discrete hardware components, or a combination thereof. The general-purpose processor may be a microprocessor, or it may be an existing type of processor, controller, microcontroller or state machine. The aforementioned circuit may be composed of digital circuits or analog circuits. In addition, with the advancement of semiconductor technology, when integrated circuit technology that replaces current integrated circuits has emerged, one or more of the methods disclosed in the present invention may also use new integrated circuits based on the technology. Description of Reference Numerals

[0127] 10Compound machine 11Control Unit 13 Display unit 15 Operation input unit 17 Ministry of Communications 19Image Processing Unit 21 Image input unit 23 Storage 231 Control Program 232 Authentication Procedure 233 Applications 234 Browser Program 235 Account Management Program 236 Account storage area 110UI / OS 30 Cloud 50Mail Distribution Server

Claims

1. An image processing device, characterized in that: include: a storage unit that stores an account for the service providing device; as well as a control unit that controls authentication processing for the service providing device based on the account, When the control unit receives input of a new account, if it is determined that the new account and the first account stored in the storage unit correspond to the same authentication method, the control unit stores the new account as a second account in the storage unit, and the second account is a substitute account for the first account.

2. The image processing device according to claim 1, wherein: The control unit performs authentication processing for the service providing device using the second account when the authentication processing using the first account cannot be performed.

3. The image processing device according to claim 2, wherein: The authentication process includes a step of verifying update validity of authorization information for utilizing a service provided by the service providing device based on update request information associated with the first account, wherein an expiration date is provided in the update request information.

4. The image processing device according to claim 3, wherein: The control unit performs authentication processing with the service providing device using the update request information related to the second account only when a validity period of the update request information related to the first account has expired.

5. The image processing device according to claim 2, wherein: The control unit notifies the owner of the first account of a reminder for re-authentication processing using the first account.

6. The image processing device according to claim 5, characterized in that: The control unit limits the authentication process for the service providing device using the second account to a case where a notification indicates a reminder for re-authentication process using the first account.

7. The image processing device according to claim 1, wherein: The control unit stores the new account as the second account in the storage unit when the new account and the first account are accounts for different service providing devices.

8. The image processing device according to claim 3, wherein: The control unit checks the validity period of the update request information, and notifies the owner of the first account or the owner of the second account to remind the owner to update the authorization information before the validity period expires.

9. An authentication processing method, characterized in that: storing the account for the service providing device as a first account in the storage device, When receiving input of a new account, if it is determined that the new account and the first account correspond to the same authentication method, the new account is stored in the storage device as a second account, wherein the second account is a substitute account for the first account, Based on the account stored in the storage device, an authentication process is performed on the service providing device.