[go: up one dir, main page]

CN116112262A - Automatic login method, device, electronic device and medium - Google Patents

Automatic login method, device, electronic device and medium Download PDF

Info

Publication number
CN116112262A
CN116112262A CN202310109090.7A CN202310109090A CN116112262A CN 116112262 A CN116112262 A CN 116112262A CN 202310109090 A CN202310109090 A CN 202310109090A CN 116112262 A CN116112262 A CN 116112262A
Authority
CN
China
Prior art keywords
target page
server
server address
data information
token
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310109090.7A
Other languages
Chinese (zh)
Inventor
陈祥明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202310109090.7A priority Critical patent/CN116112262A/en
Publication of CN116112262A publication Critical patent/CN116112262A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/321Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
    • H04L9/3213Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides an automatic login method, an automatic login device, automatic login equipment, a storage medium and a program product, relates to the technical field of big data, and can be applied to the technical field of finance. The method comprises the following steps: responding to the received access request for the target page, and acquiring first data information corresponding to the target page according to the access request, wherein the first data information comprises an attribute value and a first server address; accessing a first server corresponding to the first server address according to the attribute value, and acquiring second data information corresponding to the target page, wherein the second data information comprises a token and the second server address; determining version information of the target page according to the second server address; and accessing a second server corresponding to the second server address according to the token and the version information, and logging in the target page.

Description

自动登录方法、装置、电子设备和介质Automatic login method, device, electronic device and medium

技术领域technical field

本公开涉及大数据技术领域,可以应用于金融技术领域,更具体地涉及一种自动登录方法、装置、设备、介质和程序产品。The present disclosure relates to the field of big data technology, can be applied to the field of financial technology, and more specifically relates to an automatic login method, device, equipment, medium and program product.

背景技术Background technique

现有的自动登录方法,如接收针对目标页界面的访问请求;响应访问请求,如若目标网页界面符合自动登录条件的网页界面,获取目标界面中的与密码对应的第一界面元素、与用户名对称的第二界面元素、与登录控件对应的第三界面元素;获取目标网页界面关联的用户名和密码;确定密码与第一界面元素匹配且用户名与第二界面元素匹配时,基于第三界面元素模拟登录操作;基于登录操作,发送用户名和密码至目标网页界面对应的认证服务器;若认证服务器对用户名和密码认证通过,登录目标网页页面。The existing automatic login method, such as receiving an access request for the target page interface; responding to the access request, if the target web page interface meets the web interface of the automatic login condition, obtain the first interface element corresponding to the password in the target interface, and the user name Symmetrical second interface element, third interface element corresponding to the login control; obtain the user name and password associated with the target web interface; determine that the password matches the first interface element and the user name matches the second interface element, based on the third interface The element simulates the login operation; based on the login operation, the user name and password are sent to the authentication server corresponding to the target web interface; if the authentication server passes the authentication of the user name and password, log in to the target web page.

现有技术是基于网页的登录服务器的自动登录,即从客户端到服务端的单步认证。因此,现有技术无法针对两步认证的登录场景,实现自动化登录。The prior art is an automatic login based on a webpage login server, that is, a single-step authentication from the client to the server. Therefore, the existing technology cannot realize automatic login for the login scenario of two-step authentication.

发明内容Contents of the invention

鉴于上述问题,本公开提供了自动登录方法、装置、设备、介质和程序产品,通过响应于接收到针对目标页面的访问请求,根据访问请求获取与目标页面对应的第一数据信息,第一数据信息包括属性值和第一服务器地址;根据属性值访问与第一服务器地址对应的第一服务器,获取与目标页面对应的第二数据信息,第二数据信息包括令牌和第二服务器地址;根据第二服务器地址确定目标页面的版本信息;以及根据令牌和版本信息访问与第二服务器地址对应的第二服务器,登录目标页面可以针对目标页面的不同版本,实现两步认证的完整过程,从而实现自动化的登录认证。In view of the above problems, the present disclosure provides an automatic login method, device, device, medium, and program product. By responding to receiving an access request for the target page, the first data information corresponding to the target page is obtained according to the access request. The first data The information includes an attribute value and a first server address; according to the attribute value, the first server corresponding to the first server address is accessed to obtain second data information corresponding to the target page, and the second data information includes a token and a second server address; according to The second server address determines the version information of the target page; and accesses the second server corresponding to the second server address according to the token and the version information, and the login target page can realize the complete process of two-step authentication for different versions of the target page, thereby Realize automated login authentication.

根据本公开的第一个方面,提供了一种自动登录方法,包括:响应于接收到针对目标页面的访问请求,根据所述访问请求获取与所述目标页面对应的第一数据信息,所述第一数据信息包括属性值和第一服务器地址;根据所述属性值访问与所述第一服务器地址对应的第一服务器,获取与所述目标页面对应的第二数据信息,所述第二数据信息包括令牌和第二服务器地址;根据所述第二服务器地址确定所述目标页面的版本信息;以及根据所述令牌和所述版本信息访问与所述第二服务器地址对应的第二服务器,登录所述目标页面。According to a first aspect of the present disclosure, there is provided an automatic login method, including: in response to receiving an access request for a target page, acquiring first data information corresponding to the target page according to the access request, the The first data information includes an attribute value and a first server address; access the first server corresponding to the first server address according to the attribute value, and obtain the second data information corresponding to the target page, the second data The information includes a token and a second server address; determining version information of the target page according to the second server address; and accessing a second server corresponding to the second server address according to the token and the version information , to log in to the target page.

根据本公开实施例,所述第一服务器地址包括认证服务器地址,所述响应于接收到针对目标页面的访问请求,根据所述访问请求获取与所述目标页面对应的第一数据信息,所述第一数据信息包括属性值和第一服务器地址,包括:根据所述访问请求获取所述认证服务器地址;以及根据所述认证服务器地址获取所述属性值。According to an embodiment of the present disclosure, the first server address includes an authentication server address, and in response to receiving an access request for a target page, acquiring first data information corresponding to the target page according to the access request, the The first data information includes an attribute value and a first server address, including: obtaining the authentication server address according to the access request; and obtaining the attribute value according to the authentication server address.

根据本公开实施例,所述根据所述属性值访问与所述第一服务器地址对应的第一服务器,获取与所述目标页面对应的第二数据信息,所述第二数据信息包括令牌和第二服务器地址,包括:根据所述属性值、账号以及密码构建请求报文;以及根据所述请求报文访问与所述第一服务器地址对应的第一服务器,获取与所述目标页面对应的第二数据信息。According to an embodiment of the present disclosure, the first server corresponding to the first server address is accessed according to the attribute value, and the second data information corresponding to the target page is obtained, and the second data information includes a token and The second server address, including: constructing a request message according to the attribute value, account number and password; and accessing the first server corresponding to the first server address according to the request message, and obtaining the address corresponding to the target page Second data information.

根据本公开实施例,所述根据所述第二服务器地址确定所述目标页面的版本信息,包括:根据所述第二服务器地址确定资源定位符;以及根据所述资源定位符确定所述目标页面的版本信息。According to an embodiment of the present disclosure, the determining the version information of the target page according to the second server address includes: determining a resource locator according to the second server address; and determining the target page according to the resource locator version information.

根据本公开实施例,所述根据所述令牌和所述版本信息访问与所述第二服务器地址对应的第二服务器,登录所述目标页面,包括:根据所述令牌和所述版本信息构建请求头;以及根据所述请求头访问与所述第二服务器地址对应的第二服务器,登录所述目标页面。According to an embodiment of the present disclosure, the accessing the second server corresponding to the second server address according to the token and the version information, and logging into the target page includes: according to the token and the version information constructing a request header; and accessing a second server corresponding to the address of the second server according to the request header, and logging in to the target page.

根据本公开实施例,所述自动登录方法还包括,在登录所述目标页面之后:响应于接收到与所述目标页面对应的第三数据信息,根据所述第三数据信息确定目标集群的监控指标;以及根据与所述监控指标对应的监控数据,确定所述目标集群的运行状态。According to an embodiment of the present disclosure, the automatic login method further includes, after logging in the target page: in response to receiving third data information corresponding to the target page, determining the monitoring of the target cluster according to the third data information indicators; and determining the running status of the target cluster according to the monitoring data corresponding to the monitoring indicators.

本公开的第二方面提供了一种自动登录装置,包括:第一获取模块,用于响应于接收到针对目标页面的访问请求,根据所述访问请求获取与所述目标页面对应的第一数据信息,所述第一数据信息包括属性值和第一服务器地址;第二获取模块,用于根据所述属性值访问与所述第一服务器地址对应的第一服务器,获取与所述目标页面对应的第二数据信息,所述第二数据信息包括令牌和第二服务器地址;确定模块,用于根据所述第二服务器地址确定所述目标页面的版本信息;以及登录模块,用于根据所述令牌和所述版本信息访问与所述第二服务器地址对应的第二服务器,登录所述目标页面。A second aspect of the present disclosure provides an automatic login device, including: a first acquisition module, configured to acquire first data corresponding to the target page according to the access request in response to receiving an access request for the target page information, the first data information includes an attribute value and a first server address; a second acquiring module, configured to access the first server corresponding to the first server address according to the attribute value, and acquire the corresponding address of the target page The second data information includes a token and a second server address; a determination module, configured to determine the version information of the target page according to the second server address; and a login module, configured to determine the version information of the target page according to the second server address; Access the second server corresponding to the address of the second server by using the token and the version information, and log in to the target page.

本公开的第三方面提供了一种电子设备,包括:一个或多个处理器;存储器,用于存储一个或多个程序,其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得一个或多个处理器执行上述自动登录方法。A third aspect of the present disclosure provides an electronic device, including: one or more processors; a memory for storing one or more programs, wherein, when the one or more programs are executed by the one or more When the processor is executed, one or more processors are made to execute the above automatic login method.

本公开的第四方面还提供了一种计算机可读存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器执行上述自动登录方法。The fourth aspect of the present disclosure also provides a computer-readable storage medium, on which executable instructions are stored, and when the instructions are executed by a processor, the processor executes the above automatic login method.

本公开的第五方面还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述自动登录方法。The fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above automatic login method when the computer program is executed by a processor.

本实施例提供的自动登录方法,通过响应于接收到针对目标页面的访问请求,根据访问请求获取与目标页面对应的第一数据信息,第一数据信息包括属性值和第一服务器地址;根据属性值访问与第一服务器地址对应的第一服务器,获取与目标页面对应的第二数据信息,第二数据信息包括令牌和第二服务器地址;根据第二服务器地址确定目标页面的版本信息;以及根据令牌和版本信息访问与第二服务器地址对应的第二服务器,登录目标页面可以针对目标页面的不同版本,实现两步认证的完整过程,从而实现自动化的登录认证。In the automatic login method provided by this embodiment, in response to receiving an access request for the target page, the first data information corresponding to the target page is obtained according to the access request, the first data information includes attribute values and the first server address; according to the attribute accessing the first server corresponding to the first server address, obtaining second data information corresponding to the target page, the second data information including the token and the second server address; determining the version information of the target page according to the second server address; and Accessing the second server corresponding to the address of the second server according to the token and version information, the login target page can realize the complete process of two-step authentication for different versions of the target page, thereby realizing automatic login authentication.

附图说明Description of drawings

通过以下参照附图对本公开实施例的描述,本公开的上述内容以及其他目的、特征和优点将更为清楚,在附图中:Through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, the above content and other objects, features and advantages of the present disclosure will be more clear, in the accompanying drawings:

图1示意性示出了根据本公开实施例的自动登录方法、装置、设备、介质和程序产品的应用场景图;FIG. 1 schematically shows an application scenario diagram of an automatic login method, device, device, medium, and program product according to an embodiment of the present disclosure;

图2示意性示出了根据本公开实施例的自动登录方法的流程图;FIG. 2 schematically shows a flowchart of an automatic login method according to an embodiment of the present disclosure;

图3示意性示出了根据本公开实施例的集群监控的流程图;Fig. 3 schematically shows a flow chart of cluster monitoring according to an embodiment of the present disclosure;

图4示意性示出了根据本公开实施例的自动登录装置的结构框图;以及Fig. 4 schematically shows a structural block diagram of an automatic login device according to an embodiment of the present disclosure; and

图5示意性示出了根据本公开实施例的适于实现自动登录方法的电子设备的方框图。Fig. 5 schematically shows a block diagram of an electronic device suitable for implementing an automatic login method according to an embodiment of the present disclosure.

具体实施方式Detailed ways

以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。在下面的详细描述中,为便于解释,阐述了许多具体的细节以提供对本公开实施例的全面理解。然而,明显地,一个或多个实施例在没有这些具体细节的情况下也可以被实施。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. It should be understood, however, that these descriptions are exemplary only, and are not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concept of the present disclosure.

在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing particular embodiments only, and is not intended to be limiting of the present disclosure. The terms "comprising", "comprising", etc. used herein indicate the presence of stated features, steps, operations and/or components, but do not exclude the presence or addition of one or more other features, steps, operations or components.

在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the meaning commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted to have a meaning consistent with the context of this specification, and not be interpreted in an idealized or overly rigid manner.

在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。Where expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted as those skilled in the art would normally understand the expression (for example, "having A, B, and C A system of at least one of "shall include, but not be limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc. ).

本公开的实施例提供了一种自动登录方法和装置,响应于接收到针对目标页面的访问请求,根据访问请求获取与目标页面对应的第一数据信息,第一数据信息包括属性值和第一服务器地址;根据属性值访问与第一服务器地址对应的第一服务器,获取与目标页面对应的第二数据信息,第二数据信息包括令牌和第二服务器地址;根据第二服务器地址确定目标页面的版本信息;以及根据令牌和版本信息访问与第二服务器地址对应的第二服务器,登录目标页面。Embodiments of the present disclosure provide an automatic login method and device. In response to receiving an access request for a target page, the first data information corresponding to the target page is obtained according to the access request. The first data information includes attribute values and first Server address; access the first server corresponding to the first server address according to the attribute value, obtain the second data information corresponding to the target page, the second data information includes a token and the second server address; determine the target page according to the second server address and accessing the second server corresponding to the address of the second server according to the token and the version information, and logging into the target page.

图1示意性示出了根据本公开实施例的自动登录方法、装置、设备、介质和程序产品的应用场景图。Fig. 1 schematically shows an application scenario diagram of an automatic login method, device, device, medium and program product according to an embodiment of the present disclosure.

如图1所示,根据该实施例的应用场景100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , an application scenario 100 according to this embodiment may include terminal devices 101 , 102 , and 103 , a network 104 and a server 105 . The network 104 is used as a medium for providing communication links between the terminal devices 101 , 102 , 103 and the server 105 . Network 104 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等(仅为示例)。Users can use terminal devices 101 , 102 , 103 to interact with server 105 via network 104 to receive or send messages and the like. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (just for example).

终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, 103 may be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers and the like.

服务器105可以是提供各种服务的服务器,例如对用户利用终端设备101、102、103所浏览的网站提供支持的后台管理服务器(仅为示例)。后台管理服务器可以对接收到的用户请求等数据进行分析等处理,并将处理结果(例如根据用户请求获取或生成的网页、信息、或数据等)反馈给终端设备。The server 105 may be a server that provides various services, such as a background management server that provides support for websites browsed by users using the terminal devices 101 , 102 , 103 (just an example). The background management server can analyze and process received data such as user requests, and feed back processing results (such as webpages, information, or data obtained or generated according to user requests) to the terminal device.

需要说明的是,本公开实施例所提供的自动登录方法一般可以由服务器105执行。相应地,本公开实施例所提供的自动登录装置一般可以设置于服务器105中。本公开实施例所提供的自动登录方法也可以由不同于服务器105且能够与终端设备101、102、103和/或服务器105通信的服务器或服务器集群执行。相应地,本公开实施例所提供的自动登录装置也可以设置于不同于服务器105且能够与终端设备101、102、103和/或服务器105通信的服务器或服务器集群中。It should be noted that, generally, the automatic login method provided by the embodiment of the present disclosure may be executed by the server 105 . Correspondingly, the automatic login device provided by the embodiment of the present disclosure can generally be set in the server 105 . The automatic login method provided by the embodiments of the present disclosure may also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101 , 102 , 103 and/or the server 105 . Correspondingly, the automatic login device provided by the embodiments of the present disclosure may also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101 , 102 , 103 and/or the server 105 .

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.

以下将基于图1描述的场景,通过图2对公开实施例的自动登录方法进行详细描述。Based on the scenario described in FIG. 1 , the automatic login method of the disclosed embodiment will be described in detail through FIG. 2 .

图2示意性示出了根据本公开实施例的自动登录方法的流程图。Fig. 2 schematically shows a flowchart of an automatic login method according to an embodiment of the present disclosure.

如图2所示,该实施例包括操作S210~操作S240,该自动登录方法可以通过服务器执行。As shown in FIG. 2 , this embodiment includes operation S210 to operation S240, and the automatic login method may be executed by a server.

在本公开的技术方案中,对数据的获取、收集、存储、使用、加工、传输、提供、公开和应用等处理,均符合相关法律法规的规定,采取了必要保密措施,且不违背公序良俗。In the technical solution of this disclosure, the acquisition, collection, storage, use, processing, transmission, provision, disclosure, and application of data are all in compliance with relevant laws and regulations, necessary confidentiality measures have been taken, and they do not violate public order and good customs.

在操作S210,响应于接收到针对目标页面的访问请求,根据访问请求获取与目标页面对应的第一数据信息,第一数据信息包括属性值和第一服务器地址。In operation S210, in response to receiving the access request for the target page, first data information corresponding to the target page is acquired according to the access request, where the first data information includes an attribute value and a first server address.

目标页面如管理页面,具体可以为Fusion Insight Manager(FI管理页面),即Hadoop大数据产品提供给用户的管理页面,可通过FI Manager对集群进行权限管理、变更操作,指标监控等日常运维操作。The target page, such as the management page, can be specifically Fusion Insight Manager (FI management page), that is, the management page provided by Hadoop big data products to users. Through FI Manager, daily operation and maintenance operations such as authority management, change operations, and indicator monitoring can be performed on the cluster. .

属性值如attribute values such as

可以理解,FI管理页面加入了cas认证,即从客户端到cas服务端再到登录认证服务端的两步认证,且不同版本间的差异较大。It can be understood that cas authentication has been added to the FI management page, that is, two-step authentication from the client to the cas server and then to the login authentication server, and there are large differences between different versions.

第一服务器地址可以为cas认证服务器地址。属性值可以为隐藏属性lt值。The first server address may be a cas authentication server address. The attribute value can be a hidden attribute lt value.

在操作S220,根据属性值访问与第一服务器地址对应的第一服务器,获取与目标页面对应的第二数据信息,第二数据信息包括令牌和第二服务器地址。In operation S220, access the first server corresponding to the first server address according to the attribute value, and obtain second data information corresponding to the target page, the second data information including the token and the second server address.

可以理解,获取令牌以实现自动登录;第二服务器地址可以为登录地址。It can be understood that the token is acquired to realize automatic login; the second server address may be a login address.

在操作S230,根据第二服务器地址确定目标页面的版本信息。In operation S230, version information of the target page is determined according to the second server address.

可以理解,针对目标页面的不同版本,为了解决兼容性问题,在本步骤中确定目标页面的版本信息,以便于针对不同的版本构建不同的请求头。It can be understood that, for different versions of the target page, in order to solve the compatibility problem, the version information of the target page is determined in this step, so as to construct different request headers for different versions.

在操作S240,根据令牌和版本信息访问与第二服务器地址对应的第二服务器,登录目标页面。In operation S240, access the second server corresponding to the address of the second server according to the token and the version information, and log in the target page.

登录目标页面从而实现目标页面的自动登录。Log in to the target page to automatically log in to the target page.

Hadoop生态技术体系较为庞杂,包含数十个技术组件,支撑实时和离线等各类大数据业务。按技术场景看,Hadoop生态组件主要分为数据采集、数据存储和计算分析。从Hadoop运维管理角度看,需重点关注数据存储与计算分析类组件。The Hadoop ecological technology system is relatively complex, including dozens of technical components, supporting various big data services such as real-time and offline. According to technical scenarios, Hadoop ecological components are mainly divided into data collection, data storage and computing analysis. From the perspective of Hadoop operation and maintenance management, it is necessary to focus on data storage and computing and analysis components.

举例来说,首先通过http的get请求访问FI管理页面(即目标页面)的浮动IP地址,获取请求返回页面的隐藏属性lt值和cas认证服务器地址,将lt值、账号密码构造请求报文。然后通过http的post请求访问FI页面的浮动IP地址,获取返回的ticket和登录地址的url。根据返回的登录地址url来判断FI管理页面的版本,构造不同的带ticket的请求头,使用post方法访问登录地址的url,就可以实现FI管理页面的自动登录。从而可以适配Hadoop集群FI管理页面,实现了两步认证的完整过程,完成了自动化的登录认证。进一步地,通过自动登录获取返回的cookie。通过构造相应的请求头,可以按照需求对集群进行自动化管理。For example, first access the floating IP address of the FI management page (i.e. the target page) through the get request of http, obtain the hidden attribute lt value and the cas authentication server address of the page returned by the request, and construct a request message with the lt value and account password. Then access the floating IP address of the FI page through the http post request, and obtain the returned ticket and the url of the login address. Judging the version of the FI management page according to the returned login address url, constructing different request headers with a ticket, and using the post method to access the url of the login address, the automatic login of the FI management page can be realized. In this way, it can adapt to the Hadoop cluster FI management page, realize the complete process of two-step authentication, and complete the automatic login authentication. Further, the returned cookie is obtained through automatic login. By constructing corresponding request headers, the cluster can be managed automatically according to requirements.

本实施例提供的自动登录方法,通过响应于接收到针对目标页面的访问请求,根据访问请求获取与目标页面对应的第一数据信息,第一数据信息包括属性值和第一服务器地址;根据属性值访问与第一服务器地址对应的第一服务器,获取与目标页面对应的第二数据信息,第二数据信息包括令牌和第二服务器地址;根据第二服务器地址确定目标页面的版本信息;以及根据令牌和版本信息访问与第二服务器地址对应的第二服务器,登录目标页面可以针对目标页面的不同版本,实现两步认证的完整过程,从而实现自动化的登录认证。In the automatic login method provided by this embodiment, in response to receiving an access request for the target page, the first data information corresponding to the target page is obtained according to the access request, the first data information includes attribute values and the first server address; according to the attribute accessing the first server corresponding to the first server address, obtaining second data information corresponding to the target page, the second data information including the token and the second server address; determining the version information of the target page according to the second server address; and Accessing the second server corresponding to the address of the second server according to the token and version information, the login target page can realize the complete process of two-step authentication for different versions of the target page, thereby realizing automatic login authentication.

图3示意性示出了根据本公开实施例的集群监控的流程图。Fig. 3 schematically shows a flowchart of cluster monitoring according to an embodiment of the present disclosure.

如图3所示,该实施例包括操作S310~操作S320。As shown in FIG. 3 , this embodiment includes operation S310 to operation S320.

在操作S310,响应于接收到与目标页面对应的第三数据信息,根据第三数据信息确定目标集群的监控指标。In operation S310, in response to receiving the third data information corresponding to the target page, a monitoring index of the target cluster is determined according to the third data information.

在操作S320,根据与监控指标对应的监控数据,确定目标集群的运行状态。In operation S320, the running state of the target cluster is determined according to the monitoring data corresponding to the monitoring index.

举例来说,通过http请求获取集群级别的监控指标,能及时反应集群当前运行状况,发现问题能及时响应。因此,需要构造监控指标的访问地址,通过post方式提交请求获得监控数据。进一步,获取到的监控数据可以通过构建监控数据库的方式进行存储。当监控指标超过阈值,触发告警规则时,可通过短信或者邮件形式告知告警接收人,及时响应告警。For example, obtaining cluster-level monitoring indicators through http requests can reflect the current operating status of the cluster in a timely manner, and respond in a timely manner when problems are found. Therefore, it is necessary to construct the access address of the monitoring indicator, and submit the request through the post method to obtain the monitoring data. Further, the obtained monitoring data can be stored by building a monitoring database. When the monitoring index exceeds the threshold and the alarm rule is triggered, the alarm receiver can be notified by SMS or email to respond to the alarm in time.

进一步地,可以对集群自动化变更,如首先要构建变更url,通过post方式提交请求。通过返回结果获取变更执行情况,通过一定形式存储执行结果。对不成功变更可设置重试次数,多次重试后不成功根据结果返回记录不成功原因。Furthermore, it is possible to automate changes to the cluster, such as first constructing the change url, and submitting the request through post. Obtain the change execution status by returning the result, and store the execution result in a certain form. For unsuccessful changes, the number of retries can be set. After multiple retries, it will return to record the reason for the failure according to the result.

自动化监控提高了监控效率,降低了成本。Automated monitoring improves monitoring efficiency and reduces costs.

可以对大数据集群整体指标的监控。可以在登录目标页面后进行集群的变更。可以自动批量进行对多集群的监控及变更操作。有利于对历史监控数据进行处理和聚合,可定期对集群运行情况进行。It can monitor the overall indicators of big data clusters. You can change the cluster after logging in to the target page. It can automatically monitor and change multiple clusters in batches. It is conducive to the processing and aggregation of historical monitoring data, and can regularly monitor the cluster operation.

本实施例提供的自动登录方法,在实现目标页面的自动登录后,可以通过根据第三数据信息确定目标集群的监控指标,以及根据与监控指标对应的监控数据,确定目标集群的运行状态,可以实现对多集群的实时监控,提高监控效率,降低告警相应时间。In the automatic login method provided by this embodiment, after the automatic login of the target page is realized, the monitoring index of the target cluster can be determined according to the third data information, and the running state of the target cluster can be determined according to the monitoring data corresponding to the monitoring index. Realize real-time monitoring of multiple clusters, improve monitoring efficiency, and reduce alarm response time.

第一服务器地址包括认证服务器地址,响应于接收到针对目标页面的访问请求,根据访问请求获取与目标页面对应的第一数据信息,第一数据信息包括属性值和第一服务器地址,包括:根据访问请求获取认证服务器地址;以及根据认证服务器地址获取属性值。The first server address includes the address of the authentication server. In response to receiving the access request for the target page, the first data information corresponding to the target page is obtained according to the access request. The first data information includes attribute values and the first server address, including: The access request obtains the address of the authentication server; and obtains the attribute value according to the address of the authentication server.

举例来说,获取第一服务器地址,如根据不同集群的FI地址构造访问请求,通过get方法获取cas服务器地址。然后,请求cas服务器,获取属性值,如用get方法请求cas服务器地址,并且根据返回的网页内容定位lt值。For example, to obtain the address of the first server, such as constructing an access request according to the FI addresses of different clusters, and obtaining the address of the cas server through the get method. Then, request the cas server to obtain the attribute value, such as requesting the address of the cas server with the get method, and locate the lt value according to the returned web page content.

本实施例提供的自动登录方法,通过根据访问请求获取认证服务器地址;以及根据认证服务器地址获取属性值,可以得到属性值,以便于利用属性值构造报文。In the automatic login method provided by this embodiment, the attribute value can be obtained by obtaining the address of the authentication server according to the access request; and obtaining the attribute value according to the address of the authentication server, so as to construct a message using the attribute value.

根据属性值访问与第一服务器地址对应的第一服务器,获取与目标页面对应的第二数据信息,第二数据信息包括令牌和第二服务器地址,包括:根据属性值、账号以及密码构建请求报文;以及根据请求报文访问与第一服务器地址对应的第一服务器,获取与目标页面对应的第二数据信息。Access the first server corresponding to the first server address according to the attribute value, obtain the second data information corresponding to the target page, the second data information includes the token and the second server address, including: constructing the request according to the attribute value, account number and password message; and accessing the first server corresponding to the address of the first server according to the request message, and obtaining the second data information corresponding to the target page.

在本实施例中,构造请求报文访问,访问第一服务器。例如,将用户名、密码、lt值和固定值构造成请求的data,通过post请求访问cas的地址,以获取与目标页面对应的第二数据信息。In this embodiment, a request packet is constructed to access the first server. For example, the user name, password, lt value and fixed value are constructed as the requested data, and the address of the cas is accessed through a post request to obtain the second data information corresponding to the target page.

本实施例提供的自动登录方法,可以根据属性值、账号以及密码构建请求报文,访问与第一服务器地址对应的第一服务器,从而获取与目标页面对应的第二数据信息。The automatic login method provided in this embodiment can construct a request message according to the attribute value, account number and password, access the first server corresponding to the first server address, and obtain the second data information corresponding to the target page.

根据第二服务器地址确定目标页面的版本信息,包括:根据第二服务器地址确定资源定位符;以及根据资源定位符确定目标页面的版本信息。Determining version information of the target page according to the second server address includes: determining a resource locator according to the second server address; and determining version information of the target page according to the resource locator.

在本实施例中确定目标页面的版本信息。例如,根据相应代码判断FI管理页面版本,获取访问的请求头。In this embodiment, the version information of the target page is determined. For example, judge the version of the FI management page according to the corresponding code, and obtain the request header of the access.

例如,C50及C60版本:如果请求的相应代码为500,则说明FI管理页面的版本为C50和C60版本。这两个版本在第一次请求cas的服务器地址时会要求重定向到一个新地址。该地址通过返回的网页内容进行定位。获得新的cas地址后,构造请求的data,对url_relogin进行post请求,即可获得ticket。For example, C50 and C60 versions: If the corresponding code of the request is 500, it means that the versions of the FI management page are C50 and C60. These two versions will ask to be redirected to a new address when the cas server address is requested for the first time. This address is located by the content of the returned web page. After obtaining the new cas address, construct the requested data and make a post request to url_relogin to obtain the ticket.

例如,6.5.1及8.0版本:如果相应代码不为500,这说明FI管理页面的版本为6.5.1或者8.0版本。进一步,两个版本的返回又有细微的差异。通过reponse_cas_login可以获取到跳转后的地址,根据url_cas_login区分两个不同的版本,判断依据为url_cas_login中“http”字符串的位置。For example, versions 6.5.1 and 8.0: If the corresponding code is not 500, it means that the version of the FI management page is version 6.5.1 or 8.0. Further, there are subtle differences in the return of the two versions. The address after the jump can be obtained through response_cas_login, and two different versions can be distinguished according to url_cas_login, and the judgment is based on the position of the "http" string in url_cas_login.

本实施例提供的自动登录方法,通过根据第二服务器地址确定资源定位符;以及根据资源定位符确定目标页面的版本信息,可以针对不同版本的目标页面,对认证处理方式进行调整,有利于解决兼容性问题。In the automatic login method provided by this embodiment, by determining the resource locator according to the second server address; and determining the version information of the target page according to the resource locator, the authentication processing method can be adjusted for different versions of the target page, which is beneficial to solve Compatibility issues.

根据令牌和版本信息访问与第二服务器地址对应的第二服务器,登录目标页面,包括:根据令牌和版本信息构建请求头;以及根据请求头访问与第二服务器地址对应的第二服务器,登录目标页面。Accessing a second server corresponding to the second server address according to the token and version information, and logging into the target page, including: constructing a request header according to the token and version information; and accessing the second server corresponding to the second server address according to the request header, Log in to the target page.

在本实施中,通过FI管理页面的认证,获取令牌登录目标页面,以获取cookie。In this implementation, through the authentication of the FI management page, a token is obtained to log in to the target page to obtain a cookie.

由于FI管理页面不同版本的认证地址也是有区别的,构建请求头,进行post请求,即可获得token和cookie,说明完成了认证。Since the authentication addresses of different versions of the FI management page are also different, construct the request header and make a post request to obtain the token and cookie, indicating that the authentication is completed.

可以理解,有了认证地址后对该地址发起认证请求,即可获取返回的cookie和token,说明自动认证已经完成。从而完成了对现有版本管理页面的认证流程,在获取了token和cookie后,就可以实现对集群的自动化管理。It can be understood that after an authentication address is obtained and an authentication request is initiated to the address, the returned cookie and token can be obtained, indicating that the automatic authentication has been completed. In this way, the authentication process of the existing version management page is completed, and after the token and cookie are obtained, the automatic management of the cluster can be realized.

本实施例提供的自动登录方法,可以根据令牌和版本信息构建请求头;然后根据请求头访问与第二服务器地址对应的第二服务器,登录目标页面,有利于实现对集群的自动化管理。The automatic login method provided in this embodiment can construct a request header according to the token and version information; then access the second server corresponding to the address of the second server according to the request header, and log in to the target page, which is beneficial to realize automatic management of the cluster.

基于上述自动登录方法,本公开还提供了一种自动登录装置。以下将结合图4对该装置进行详细描述。Based on the above automatic login method, the present disclosure also provides an automatic login device. The device will be described in detail below with reference to FIG. 4 .

图4示意性示出了根据本公开实施例的自动登录装置的结构框图。Fig. 4 schematically shows a structural block diagram of an automatic login device according to an embodiment of the present disclosure.

如图4所示,该实施例的自动登录装置400包括第一获取模块410、第二获取模块420、确定模块430和登录模块440。As shown in FIG. 4 , the automatic login device 400 of this embodiment includes a first acquisition module 410 , a second acquisition module 420 , a determination module 430 and a login module 440 .

第一获取模块410,用于响应于接收到针对目标页面的访问请求,根据所述访问请求获取与所述目标页面对应的第一数据信息,所述第一数据信息包括属性值和第一服务器地址;第二获取模块420,用于根据所述属性值访问与所述第一服务器地址对应的第一服务器,获取与所述目标页面对应的第二数据信息,所述第二数据信息包括令牌和第二服务器地址;确定模块430,用于根据所述第二服务器地址确定所述目标页面的版本信息;以及登录模块440,用于根据所述令牌和所述版本信息访问与所述第二服务器地址对应的第二服务器,登录所述目标页面。The first acquiring module 410 is configured to, in response to receiving an access request for a target page, acquire first data information corresponding to the target page according to the access request, the first data information including an attribute value and a first server address; the second obtaining module 420, configured to access the first server corresponding to the first server address according to the attribute value, and obtain second data information corresponding to the target page, the second data information including order card and a second server address; a determining module 430, configured to determine the version information of the target page according to the second server address; and a login module 440, configured to access the page associated with the token and the version information The second server corresponding to the second server address logs in the target page.

在一些实施例中,所述第一获取模块,包括:第一获取子模块,用于根据所述访问请求获取所述认证服务器地址;以及第二获取子模块,用于根据所述认证服务器地址获取所述属性值。In some embodiments, the first obtaining module includes: a first obtaining submodule, configured to obtain the address of the authentication server according to the access request; and a second obtaining submodule, configured to obtain the address of the authentication server according to the address of the authentication server Get the property value.

在一些实施例中,所述第二获取模块,包括:第一构建模块,用于根据所述属性值、账号以及密码构建请求报文;以及第三获取子模块,用于根据所述请求报文访问与所述第一服务器地址对应的第一服务器,获取与所述目标页面对应的第二数据信息。In some embodiments, the second acquisition module includes: a first construction module, configured to construct a request message according to the attribute value, account number, and password; and a third acquisition submodule, configured to construct a request message according to the request message The text accesses the first server corresponding to the address of the first server, and acquires the second data information corresponding to the target page.

在一些实施例中,所述确定模块,包括:第一确定子模块,用于根据所述第二服务器地址确定资源定位符;以及第二确定子模块,用于根据所述资源定位符确定所述目标页面的版本信息。In some embodiments, the determining module includes: a first determining submodule, configured to determine a resource locator according to the second server address; and a second determining submodule, configured to determine the resource locator according to the resource locator Describe the version information of the target page.

在一些实施例中,所述登录模块,包括:第二构建模块,用于根据所述令牌和所述版本信息构建请求头;以及登录子模块,用于根据所述请求头访问与所述第二服务器地址对应的第二服务器,登录所述目标页面。In some embodiments, the login module includes: a second building module, configured to construct a request header according to the token and the version information; and a login submodule, configured to access the The second server corresponding to the second server address logs in the target page.

在一些实施例中,所述装置还包括:第三确定子模块,用于响应于接收到与所述目标页面对应的第三数据信息,根据所述第三数据信息确定目标集群的监控指标;以及第四确定子模块,用于根据与所述监控指标对应的监控数据,确定所述目标集群的运行状态。In some embodiments, the device further includes: a third determining submodule, configured to determine the monitoring index of the target cluster according to the third data information in response to receiving third data information corresponding to the target page; And a fourth determining submodule, configured to determine the running state of the target cluster according to the monitoring data corresponding to the monitoring index.

根据本公开的实施例,第一获取模块410、第二获取模块420、确定模块430和登录模块440中的任意多个模块可以合并在一个模块中实现,或者其中的任意一个模块可以被拆分成多个模块。或者,这些模块中的一个或多个模块的至少部分功能可以与其他模块的至少部分功能相结合,并在一个模块中实现。根据本公开的实施例,第一获取模块410、第二获取模块420、确定模块430和登录模块440中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,第一获取模块410、第二获取模块420、确定模块430和登录模块440中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。According to an embodiment of the present disclosure, any number of modules in the first acquisition module 410, the second acquisition module 420, the determination module 430, and the login module 440 may be implemented in one module, or any one of the modules may be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules may be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first acquisition module 410, the second acquisition module 420, the determination module 430, and the login module 440 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), programmable logic array (PLA), system-on-chip, system-on-substrate, system-on-package, application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuits, such as hardware or firmware, may be implemented, Or it may be realized by any one of software, hardware and firmware, or by an appropriate combination of any of them. Alternatively, at least one of the first obtaining module 410, the second obtaining module 420, the determining module 430 and the logging module 440 may be at least partially implemented as a computer program module, and when the computer program module is executed, corresponding functions may be performed .

图5示意性示出了根据本公开实施例的适于实现自动登录方法的电子设备的方框图。Fig. 5 schematically shows a block diagram of an electronic device suitable for implementing an automatic login method according to an embodiment of the present disclosure.

如图5所示,根据本公开实施例的电子设备500包括处理器501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储部分508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。处理器501例如可以包括通用微处理器(例如CPU)、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC))等等。处理器501还可以包括用于缓存用途的板载存储器。处理器501可以包括用于执行根据本公开实施例的方法流程的不同动作的单一处理单元或者是多个处理单元。As shown in FIG. 5 , an electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that can be loaded into a random access memory (RAM) 503 according to a program stored in a read-only memory (ROM) 502 or from a storage section 508 Various appropriate actions and processing are performed by the program. The processor 501 may include, for example, a general-purpose microprocessor (eg, a CPU), an instruction set processor and/or a related chipset, and/or a special-purpose microprocessor (eg, an application-specific integrated circuit (ASIC)), and the like. Processor 501 may also include on-board memory for caching purposes. The processor 501 may include a single processing unit or a plurality of processing units for executing different actions of the method flow according to the embodiments of the present disclosure.

在RAM 503中,存储有电子设备500操作所需的各种程序和数据。处理器501、ROM502以及RAM 503通过总线504彼此相连。处理器501通过执行ROM 502和/或RAM 503中的程序来执行根据本公开实施例的方法流程的各种操作。需要注意,所述程序也可以存储在除ROM 502和RAM 503以外的一个或多个存储器中。处理器501也可以通过执行存储在所述一个或多个存储器中的程序来执行根据本公开实施例的方法流程的各种操作。In the RAM 503, various programs and data necessary for the operation of the electronic device 500 are stored. The processor 501, ROM 502, and RAM 503 are connected to each other through a bus 504. The processor 501 executes various operations according to the method flow of the embodiment of the present disclosure by executing programs in the ROM 502 and/or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. The processor 501 may also perform various operations according to the method flow of the embodiments of the present disclosure by executing programs stored in the one or more memories.

根据本公开的实施例,电子设备500还可以包括输入/输出(I/O)接口505,输入/输出(I/O)接口505也连接至总线504。电子设备500还可以包括连接至I/O接口505的以下部件中的一项或多项:包括键盘、鼠标等的输入部分506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分507;包括硬盘等的存储部分508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分508。According to an embodiment of the present disclosure, the electronic device 500 may further include an input/output (I/O) interface 505 which is also connected to the bus 504 . The electronic device 500 may also include one or more of the following components connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, etc.; An output section 507 of a speaker or the like; a storage section 508 including a hard disk or the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 510 as necessary so that a computer program read therefrom is installed into the storage section 508 as necessary.

本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备/装置/系统中所包含的;也可以是单独存在,而未装配入该设备/装置/系统中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被执行时,实现根据本公开实施例的方法。The present disclosure also provides a computer-readable storage medium. The computer-readable storage medium may be included in the device/apparatus/system described in the above embodiments; it may also exist independently without being assembled into the device/system device/system. The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed, the method according to the embodiment of the present disclosure is realized.

根据本公开的实施例,计算机可读存储介质可以是非易失性的计算机可读存储介质,例如可以包括但不限于:便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。例如,根据本公开的实施例,计算机可读存储介质可以包括上文描述的ROM 502和/或RAM 503和/或ROM 502和RAM 503以外的一个或多个存储器。According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as may include but not limited to: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM) , erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include one or more memories other than the above-described ROM 502 and/or RAM 503 and/or ROM 502 and RAM 503.

本公开的实施例还包括一种计算机程序产品,其包括计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。当计算机程序产品在计算机系统中运行时,该程序代码用于使计算机系统实现本公开实施例所提供的自动登录方法。Embodiments of the present disclosure also include a computer program product, which includes a computer program including program codes for executing the methods shown in the flowcharts. When the computer program product runs in the computer system, the program code is used to make the computer system realize the automatic login method provided by the embodiments of the present disclosure.

在该计算机程序被处理器501执行时执行本公开实施例的系统/装置中限定的上述功能。根据本公开的实施例,上文描述的系统、装置、模块、单元等可以通过计算机程序模块来实现。When the computer program is executed by the processor 501, the above-mentioned functions defined in the system/apparatus of the embodiment of the present disclosure are executed. According to the embodiments of the present disclosure, the above-described systems, devices, modules, units, etc. may be implemented by computer program modules.

在一种实施例中,该计算机程序可以依托于光存储器件、磁存储器件等有形存储介质。在另一种实施例中,该计算机程序也可以在网络介质上以信号的形式进行传输、分发,并通过通信部分509被下载和安装,和/或从可拆卸介质511被安装。该计算机程序包含的程序代码可以用任何适当的网络介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program can also be transmitted and distributed in the form of a signal on a network medium, downloaded and installed through the communication part 509, and/or installed from the removable medium 511. The program code contained in the computer program can be transmitted by any appropriate network medium, including but not limited to: wireless, wired, etc., or any appropriate combination of the above.

在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。在该计算机程序被处理器501执行时,执行本公开实施例的系统中限定的上述功能。根据本公开的实施例,上文描述的系统、设备、装置、模块、单元等可以通过计算机程序模块来实现。In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 509 and/or installed from removable media 511 . When the computer program is executed by the processor 501, the above-mentioned functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiments of the present disclosure, the above-described systems, devices, devices, modules, units, etc. may be implemented by computer program modules.

根据本公开的实施例,可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例提供的计算机程序的程序代码,具体地,可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。程序设计语言包括但不限于诸如Java,C++,python,“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。According to the embodiments of the present disclosure, the program codes for executing the computer programs provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages, specifically, high-level procedural and/or object-oriented programming language, and/or assembly/machine language to implement these computing programs. Programming languages include, but are not limited to, programming languages such as Java, C++, python, "C" or similar programming languages. The program code can execute entirely on the user computing device, partly on the user device, partly on the remote computing device, or entirely on the remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (for example, using an Internet service provider). business to connect via the Internet).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that includes one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block in the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a A combination of dedicated hardware and computer instructions.

本领域技术人员可以理解,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,即使这样的组合或结合没有明确记载于本公开中。特别地,在不脱离本公开精神和教导的情况下,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本公开的范围。Those skilled in the art can understand that various combinations and/or combinations can be made in the various embodiments of the present disclosure and/or the features described in the claims, even if such combinations or combinations are not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the various embodiments of the present disclosure and/or the features described in the claims can be combined and/or combined in various ways. All such combinations and/or combinations fall within the scope of the present disclosure.

以上对本公开的实施例进行了描述。但是,这些实施例仅仅是为了说明的目的,而并非为了限制本公开的范围。尽管在以上分别描述了各实施例,但是这并不意味着各个实施例中的措施不能有利地结合使用。本公开的范围由所附权利要求及其等同物限定。不脱离本公开的范围,本领域技术人员可以做出多种替代和修改,这些替代和修改都应落在本公开的范围之内。The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the various embodiments have been described separately above, this does not mean that the measures in the various embodiments cannot be advantageously used in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of the present disclosure, and these substitutions and modifications should all fall within the scope of the present disclosure.

Claims (10)

1. An automatic login method, comprising:
responding to receiving an access request aiming at a target page, and acquiring first data information corresponding to the target page according to the access request, wherein the first data information comprises an attribute value and a first server address;
accessing a first server corresponding to the first server address according to the attribute value, and acquiring second data information corresponding to the target page, wherein the second data information comprises a token and a second server address;
determining version information of the target page according to the second server address; and
and accessing a second server corresponding to the second server address according to the token and the version information, and logging in the target page.
2. The method of claim 1, wherein the first server address comprises an authentication server address, the obtaining, in response to receiving an access request for a target page, first data information corresponding to the target page according to the access request, the first data information comprising an attribute value and a first server address, comprising:
acquiring the authentication server address according to the access request; and
and acquiring the attribute value according to the authentication server address.
3. The method of claim 1, wherein the accessing the first server corresponding to the first server address according to the attribute value obtains second data information corresponding to the target page, the second data information including a token and a second server address, comprising:
constructing a request message according to the attribute value, the account number and the password; and
and accessing a first server corresponding to the first server address according to the request message, and acquiring second data information corresponding to the target page.
4. The method of claim 1, wherein the determining version information of the target page from the second server address comprises:
determining a resource locator from the second server address; and
and determining version information of the target page according to the resource locator.
5. The method of claim 1, wherein the accessing a second server corresponding to the second server address according to the token and the version information, logging in the target page, comprises:
constructing a request header according to the token and the version information; and
and accessing a second server corresponding to the second server address according to the request head, and logging in the target page.
6. The method of claim 1, further comprising, after logging in the target page:
responding to receiving third data information corresponding to the target page, and determining a monitoring index of a target cluster according to the third data information; and
and determining the running state of the target cluster according to the monitoring data corresponding to the monitoring index.
7. An automatic login device comprising:
the first acquisition module is used for responding to the received access request for the target page, acquiring first data information corresponding to the target page according to the access request, wherein the first data information comprises an attribute value and a first server address;
the second acquisition module is used for accessing a first server corresponding to the first server address according to the attribute value, and acquiring second data information corresponding to the target page, wherein the second data information comprises a token and a second server address;
the determining module is used for determining version information of the target page according to the second server address; and
and the login module is used for accessing a second server corresponding to the second server address according to the token and the version information and logging in the target page.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
9. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1-6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.
CN202310109090.7A 2023-02-13 2023-02-13 Automatic login method, device, electronic device and medium Pending CN116112262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310109090.7A CN116112262A (en) 2023-02-13 2023-02-13 Automatic login method, device, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310109090.7A CN116112262A (en) 2023-02-13 2023-02-13 Automatic login method, device, electronic device and medium

Publications (1)

Publication Number Publication Date
CN116112262A true CN116112262A (en) 2023-05-12

Family

ID=86259567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310109090.7A Pending CN116112262A (en) 2023-02-13 2023-02-13 Automatic login method, device, electronic device and medium

Country Status (1)

Country Link
CN (1) CN116112262A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245554A (en) * 2015-11-24 2016-01-13 无锡江南计算技术研究所 Dynamic property access control method in cloud environment
CN111404921A (en) * 2020-03-12 2020-07-10 广州市百果园信息技术有限公司 Webpage application access method, device, equipment, system and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245554A (en) * 2015-11-24 2016-01-13 无锡江南计算技术研究所 Dynamic property access control method in cloud environment
CN111404921A (en) * 2020-03-12 2020-07-10 广州市百果园信息技术有限公司 Webpage application access method, device, equipment, system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DENGER: "CAS之自定义登录页实践", pages 2, Retrieved from the Internet <URL:http://www.iteye.com/blog/denger-809170> *

Similar Documents

Publication Publication Date Title
CN111416811A (en) Unauthorized vulnerability detection method, system, equipment and storage medium
CN107370806B (en) HTTP status code monitoring method, device, storage medium and electronic device
US20170093828A1 (en) System and method for detecting whether automatic login to a website has succeeded
US8407766B1 (en) Method and apparatus for monitoring sensitive data on a computer network
CN114218283A (en) Abnormality detection method, apparatus, device, and medium
CN115357761A (en) Link tracking method and device, electronic equipment and storage medium
KR20200119176A (en) System, apparatuses, and methods of processing and managing web traffic data
CN109639804A (en) Monitoring method, system and the production equipment of production system, terminal, server
CN114153703A (en) Exception localization method, device, electronic device and program product for microservices
CN115550141A (en) Event processing method, device, electronic device and readable storage medium
CN114281586A (en) Fault determination method and device, electronic equipment and computer readable storage medium
CN117331804A (en) Front-end page monitoring method and device, computer equipment and storage medium
CN115033634B (en) Data collection method, device, electronic device and medium
CN114861054B (en) Information collection method, device, electronic device and storage medium
CN115408461A (en) Data information acquisition method, device, electronic equipment and medium
CN112948733B (en) Interface maintenance method, device, computing equipment and medium
CN118337783B (en) Functional verification methods, apparatus, equipment, storage media, and program products for distributed systems
CN114218160A (en) Log processing method, device, electronic device and medium
CN113794719A (en) Network abnormal traffic analysis method and device based on Elasticissearch technology and electronic equipment
CN113064834A (en) Abnormality detection method, abnormality detection apparatus, electronic device, abnormality detection medium, and program product
CN113760568A (en) Method and apparatus for data processing
CN116112262A (en) Automatic login method, device, electronic device and medium
CN116302561A (en) State control method, device, equipment and storage medium for application instance
CN114138914A (en) MySQL database management method and device, electronic equipment and storage medium
CN115687284A (en) Information processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230512