Search

CN-122001658-A - Robot login control method and device

CN122001658ACN 122001658 ACN122001658 ACN 122001658ACN-122001658-A

Abstract

The disclosure provides a robot login control method and device, and relates to the technical field of artificial intelligence and safety. Firstly, receiving a login URL obtaining request sent by a robot, generating a corresponding secret key for the robot, then obtaining a corresponding robot virtual work number and a corresponding service system URL based on a robot identifier and a service system identifier, generating a token obtaining request based on the robot virtual work number and the secret key, sending the token obtaining request to a single sign-on system, then receiving an identity token returned by the single sign-on system, generating a login URL based on the identity token, the service system identifier and the service system URL, sending the login URL to the robot, finally receiving a login verification request sent by the single sign-on system, verifying the login behavior of the robot, obtaining a verification result and sending the verification result to the single sign-on system.

Inventors

  • WANG LONGTAO
  • WU GUOHUA
  • HE XIA

Assignees

  • 中国人民财产保险股份有限公司

Dates

Publication Date
20260508
Application Date
20260211

Claims (14)

  1. 1. A robot login control method, wherein the method is executed by an operation management platform and comprises the following steps: Receiving a login URL obtaining request sent by a robot, and generating a corresponding key for the robot, wherein the login URL obtaining request comprises a robot identifier and a service system identifier; Based on the robot identifier and the service system identifier, a corresponding robot virtual number and a service system URL are obtained; Generating a token obtaining request based on the robot virtual work number and the secret key and sending the token obtaining request to a single sign-on system; receiving an identity token returned by the single sign-on system, generating a login URL based on the identity token, the service system identifier and the service system URL, and sending the login URL to the robot; And receiving a login verification request sent by the single sign-on system, verifying the login behavior of the robot, obtaining a verification result and sending the verification result to the single sign-on system.
  2. 2. The method of claim 1, wherein the generating and sending a login URL to the robot based on the identity token, the business system identification, and the business system URL comprises: Generating a random number, and generating a corresponding callback parameter for the login URL acquisition request by combining a timestamp of the received robot request and an identifier of the request; Processing the identity token, the service system identifier, the service system URL and the callback parameter to generate a login URL; And sending the login URL to the robot.
  3. 3. The method of claim 2, wherein after generating the login URL, further comprising: determining the effective duration of the login URL; and caching the callback parameters as cache keys and the effective duration as a value.
  4. 4. The method of claim 3, wherein the receiving the login check request sent by the single sign-on system, checking the login behavior of the robot, obtaining a check result, and sending the check result to the single sign-on system, includes: Receiving a login check request sent by the single sign-on system, wherein the login check request comprises a robot virtual work number and a callback parameter; Acquiring a white list stored in a current operation management platform and the effective duration associated with the callback parameters; Determining an expiration time stamp based on the time stamp in the callback parameter and the effective duration; and under the condition that the robot virtual work number is in the white list and the current verification time stamp is smaller than the expiration time stamp, determining that the login behavior of the robot has validity and effectiveness, generating a verification passing result and sending the verification passing result to the single sign-on system.
  5. 5. The method of claim 4, wherein the method further comprises: And determining that the login behavior of the robot does not have validity and/or timeliness, generating a check failed result and sending the check failed result to the single sign-on system, wherein the robot virtual work number is not in the white list, the valid duration associated with the callback parameter is not acquired, and the current check time stamp is larger than or equal to the expiration time stamp.
  6. 6. The method of claim 1, wherein the obtaining the corresponding robot virtual number and service system URL based on the robot identification and the service system identification comprises: and searching a database based on the robot identifier and the service system identifier, and acquiring an associated robot virtual work number and a password-free login address.
  7. 7. A method of robot login control, the method performed by a single sign-on system, comprising: receiving a token obtaining request sent by an operation management platform, wherein the token obtaining request comprises a robot virtual work number and a secret key; Encrypting the robot virtual work number by using the secret key, generating an identity token and sending the identity token to the operation management platform; Receiving a login request sent by a robot through a login URL, and sending a login verification request to the operation management platform so as to verify the login behavior of the robot; Receiving a verification result returned by the operation management platform; analyzing the parameters of the login URL under the condition that the verification result is that verification is passed, and obtaining the virtual work number of the robot and the URL of the business system to be logged in; And jumping to the service system based on the virtual work number and the URL of the service system so as to enable the robot to finish the login of the service system.
  8. 8. The method of claim 7, wherein the receiving a login request sent by a robot through a login URL, sending a login verification request to the operation management platform to verify a login behavior of the robot, comprises: receiving a login request sent by a robot through a login URL, and decrypting an identity token in the login URL; under the condition that decryption is successful, obtaining a virtual work number of the robot; And generating a login verification request based on the virtual work number and the callback parameter in the login URL and sending the login verification request to the operation management platform so as to verify the login behavior of the robot.
  9. 9. The method of any one of claims 7-8, wherein the method further comprises: And (3) jumping to a login abnormal page to refuse the robot to log in the service system, wherein the verification result is that verification fails and decryption of the identity token in the login URL fails.
  10. 10. A robot login control method, the method being performed by a robot and comprising: responding to a login service system instruction, and generating a login URL obtaining request based on a current robot identifier and the service system identifier; sending the request for acquiring login URL to an operation management platform; Receiving a login URL returned by the operation management platform; and sending a login request to a single sign-on system through the login URL so as to log in the service system.
  11. 11. A robot registration control apparatus, the apparatus being configured in an operation management platform, comprising: the system comprises a first generation module, a second generation module and a third generation module, wherein the first generation module is used for receiving a login URL obtaining request sent by a robot and generating a corresponding secret key for the robot, and the login URL obtaining request comprises a robot identifier and a service system identifier; The first acquisition module is used for acquiring a corresponding robot virtual work number and a corresponding service system URL based on the robot identifier and the service system identifier; The second generation module is used for generating a token acquisition request based on the robot virtual work number and the secret key and sending the token acquisition request to a single sign-on system; The third generation module is used for receiving the identity token returned by the single sign-on system, generating a login URL based on the identity token, the robot virtual work number and the service system URL and sending the login URL to the robot; The first verification module is used for receiving a login verification request sent by the single sign-on system, verifying the login behavior of the robot, obtaining a verification result and sending the verification result to the single sign-on system.
  12. 12. A robot registration control device, the device being configured in a single sign-on system, comprising: The first receiving module is used for receiving a token obtaining request sent by the operation management platform, wherein the token obtaining request comprises a robot virtual work number and a secret key; the encryption module is used for encrypting the robot virtual work number by utilizing the secret key, generating an identity token and sending the identity token to the operation management platform; The first sending module is used for receiving a login request sent by the robot through a login URL, and sending a login verification request to the operation management platform so as to verify the login behavior of the robot; the second receiving module is used for receiving a verification result returned by the operation management platform; The analysis module is used for analyzing the parameters of the login URL to obtain the virtual work number of the robot and the URL of the business system to be logged in under the condition that the verification result is that the verification is passed; And the jump module is used for jumping to the service system based on the virtual work number and the URL of the service system so as to enable the robot to finish the login of the service system.
  13. 13. A robot registration control device, the device being configured in a robot, comprising: A fourth generation module, configured to generate a request for obtaining a login URL based on a current robot identifier and an identifier of the service system in response to a login service system instruction; the second sending module is used for sending the login URL obtaining request to an operation management platform; the third receiving module is used for receiving the login URL returned by the operation management platform; And the third sending module is used for sending a login request to the single sign-on system through the login URL so as to log in the service system.
  14. 14. A computer program product, characterized by comprising a computer program which, when executed by a processor, implements the robot login control method according to any one of claims 1-10.

Description

Robot login control method and device Technical Field The disclosure relates to the technical field of artificial intelligence and security, in particular to a robot login control method and device. Background Currently, in the process of robot process automation (Robotic Process Automation, RPA) development, RPA virtual job numbers and passwords are usually provided in an offline manner. However, this method is prone to information leakage, and the single sign-on system cannot confirm whether the login operation is an RPA robot or an artificial login operation. Disclosure of Invention The disclosure provides a robot login control method and device. According to an aspect of the present disclosure, there is provided a robot login control method, which is performed by an operation management platform, including: Receiving a login URL obtaining request sent by a robot, and generating a corresponding key for the robot, wherein the login URL obtaining request comprises a robot identifier and a service system identifier; Based on the robot identifier and the service system identifier, a corresponding robot virtual number and a service system URL are obtained; Generating a token obtaining request based on the robot virtual work number and the secret key and sending the token obtaining request to a single sign-on system; receiving an identity token returned by the single sign-on system, generating a login URL based on the identity token, the robot virtual work number and the service system URL, and sending the login URL to the robot; And receiving a login verification request sent by the single sign-on system, verifying the login behavior of the robot, obtaining a verification result and sending the verification result to the single sign-on system. According to another aspect of the present disclosure, there is provided a robot login control method, which is performed by a single sign-on system, including: receiving a token obtaining request sent by an operation management platform, wherein the token obtaining request comprises a robot virtual work number and a secret key; Encrypting the robot virtual work number by using the secret key, generating an identity token and sending the identity token to the operation management platform; Receiving a login request sent by a robot through a login URL, and sending a login verification request to the operation management platform so as to verify the login behavior of the robot; Receiving a verification result returned by the operation management platform; analyzing the parameters of the login URL under the condition that the verification result is that verification is passed, and obtaining the virtual work number of the robot and the URL of the business system to be logged in; And jumping to the service system based on the virtual work number and the URL of the service system so as to enable the robot to finish the login of the service system. According to another aspect of the present disclosure, there is provided a robot login control method, which is performed by a robot, including: responding to a login service system instruction, and generating a login URL obtaining request based on a current robot identifier and the service system identifier; sending the request for acquiring login URL to an operation management platform; Receiving a login URL returned by the operation management platform; and sending a login request to a single sign-on system through the login URL so as to log in the service system. According to another aspect of the present disclosure, there is provided a robot login control apparatus configured in an operation management platform, including: the system comprises a first generation module, a second generation module and a third generation module, wherein the first generation module is used for receiving a login URL obtaining request sent by a robot and generating a corresponding secret key for the robot, and the login URL obtaining request comprises a robot identifier and a service system identifier; The first acquisition module is used for acquiring a corresponding robot virtual work number and a corresponding service system URL based on the robot identifier and the service system identifier; The second generation module is used for generating a token acquisition request based on the robot virtual work number and the secret key and sending the token acquisition request to a single sign-on system; The third generation module is used for receiving the identity token returned by the single sign-on system, generating a login URL based on the identity token, the robot virtual work number and the service system URL and sending the login URL to the robot; The first verification module is used for receiving a login verification request sent by the single sign-on system, verifying the login behavior of the robot, obtaining a verification result and sending the verification result to the single sign-on system. According to another aspect of the present dis