[go: up one dir, main page]

CN110493184A - The processing method of login page, device, electronic device in the client - Google Patents

The processing method of login page, device, electronic device in the client Download PDF

Info

Publication number
CN110493184A
CN110493184A CN201910615730.5A CN201910615730A CN110493184A CN 110493184 A CN110493184 A CN 110493184A CN 201910615730 A CN201910615730 A CN 201910615730A CN 110493184 A CN110493184 A CN 110493184A
Authority
CN
China
Prior art keywords
client
sign
page
log
authentication center
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.)
Granted
Application number
CN201910615730.5A
Other languages
Chinese (zh)
Other versions
CN110493184B (en
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910615730.5A priority Critical patent/CN110493184B/en
Publication of CN110493184A publication Critical patent/CN110493184A/en
Application granted granted Critical
Publication of CN110493184B publication Critical patent/CN110493184B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

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

Abstract

本发明提供了一种在客户端中登录页面的处理方法、装置、电子装置,其中,该方法包括:接收在客户端中登录目标H5页面的业务请求;获取在客户端中本地存储的单点登录凭证,其中,单点登录凭证为单点登录认证中心基于客户端的本地登录授权发放的凭证;基于单点登录凭证向单点登录认证中心请求授权,以登录目标H5页面。通过本发明,解决了相关技术中在已登录的客户端中登录H5页面时需要用户重复在H5页面中输入登录信息的技术问题。

The present invention provides a processing method, device, and electronic device for logging in a page in a client, wherein the method includes: receiving a service request for logging in a target H5 page in the client; obtaining a single point stored locally in the client Login credentials, where the SSO credentials are issued by the SSO authentication center based on the client's local login authorization; based on the SSO credentials, the SSO authentication center requests authorization to log in to the target H5 page. The invention solves the technical problem in the related art that the user needs to repeatedly input the login information in the H5 page when logging in the H5 page in the logged-in client.

Description

在客户端中登录页面的处理方法、装置、电子装置Method, device and electronic device for processing login page in client

技术领域technical field

本发明涉及计算机领域,具体而言,涉及一种在客户端中登录页面的处理方法、装置、电子装置。The present invention relates to the field of computers, and in particular, to a method, device, and electronic device for processing a login page in a client.

背景技术Background technique

为了实现在native客户端(APP)中浏览web网页的需求,可以采用native+h5的hybrid混合开发模式,其中,native是通过Java和C代码实现客户端的本地方法,h5则实现在客户端中显示web网页的功能,通过native模式与h5模式的结合,能够在客户端中通过web页面展示相关信息,或结合客户端与web页面实现一定的功能。In order to meet the needs of browsing web pages in the native client (APP), the hybrid development mode of native+h5 can be used, in which native is the local method of realizing the client through Java and C code, and h5 is realized on the client. The function of the web page, through the combination of the native mode and the h5 mode, can display relevant information in the client through the web page, or combine the client and the web page to achieve certain functions.

但是,现有技术中,客户端的native登录与h5登录是相互独立的,也即,如果用户已经在客户端中登录了,在客户端中进入h5页面时仍需要用户在h5页面中登录,用户需要多次执行登录操作,体验不佳。However, in the prior art, the native login of the client and the h5 login are independent of each other, that is, if the user has already logged in in the client, the user still needs to log in in the h5 page when entering the h5 page in the client. Need to perform multiple login operations, the experience is not good.

针对相关技术中存在的上述问题,目前尚未发现有效的解决方案。For the above problems existing in the related art, no effective solution has been found so far.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种在客户端中登录页面的处理方法、装置、电子装置,以至少解决现有技术中在已登录的客户端中登录H5页面时需要用户重复在H5页面中输入登录信息的技术问题。The embodiments of the present invention provide a processing method, device, and electronic device for logging in a page in a client, so as to at least solve the problem that in the prior art, when logging in an H5 page in a logged-in client, the user needs to repeatedly input the login in the H5 page. Information technology issues.

根据本发明的一个实施例,提供了一种在客户端中登录页面的处理方法,包括:接收在客户端中登录目标H5页面的业务请求;获取在客户端中本地存储的单点登录凭证,其中,单点登录凭证为单点登录认证中心基于客户端的本地登录授权发放的凭证;基于单点登录凭证向单点登录认证中心请求授权,以登录目标H5页面。According to an embodiment of the present invention, a processing method for logging in a page in a client is provided, including: receiving a service request for logging in a target H5 page in the client; acquiring a single sign-on credential stored locally in the client, The single sign-on credential is a credential issued by the single sign-on authentication center based on the client's local login authorization; based on the single sign-on credential, an authorization is requested from the single sign-on authentication center to log in to the target H5 page.

进一步地,获取在客户端中本地存储的单点登录凭证,包括:在客户端中不存在单点登录凭证的情况下,调出客户端的本地登录界面,以接收用户输入的用户账户的登录信息;将登录信息发送至单点登录认证中心;接收并存储单点登录认证中心对登录信息验证成功之后授权发放的单点登录凭证。Further, acquiring the SSO credential stored locally in the client includes: in the case that the SSO credential does not exist in the client, calling out the local login interface of the client to receive the login information of the user account input by the user ; Send the login information to the SSO authentication center; Receive and store the SSO credentials authorized and issued by the SSO authentication center after the successful verification of the login information.

进一步地,单点登录凭证具有有效时长,基于单点登录凭证向单点登录认证中心请求授权,以登录目标H5页面,包括:在超出有效时长之后,基于单点登录凭证向单点登录认证中心请求授权失败;调出客户端的本地登录界面,以接收用户输入的用户账户的登录信息;将登录信息发送至单点登录认证中心;接收并存储单点登录认证中心对登录信息验证成功之后授权发放的单点登录凭证。Further, the single sign-on credential has a valid duration, and based on the single sign-on credential, requesting authorization from the single sign-on authentication center to log in to the target H5 page includes: after the valid time period is exceeded, requesting authorization from the single sign-on authentication center based on the single sign-on credential. Request authorization fails; call up the local login interface of the client to receive the login information of the user account entered by the user; send the login information to the SSO authentication center; receive and store the SSO authentication center to verify the login information successfully. single sign-on credentials.

进一步地,调出客户端的本地登录界面,包括:通过目标H5页面中的预设JS函数调用目标native接口函数,其中,目标native接口函数为预先在客户端的本地登录界面的网页视图程序中添加的native接口函数;执行目标native接口函数对应的方法。Further, calling out the local login interface of the client includes: calling the target native interface function through the preset JS function in the target H5 page, wherein the target native interface function is added in advance in the web page view program of the local login interface of the client. native interface function; executes the method corresponding to the target native interface function.

进一步地,调出客户端的本地登录界面,包括:通过针对目标H5页面预先在操作系统中注册的schemaURL,跳转至schemaURL中所指示的跳转目标页面,其中,schemaURL中所指示的跳转目标页面为本地登录界面。Further, calling out the local login interface of the client includes: jumping to the jump target page indicated in the schemaURL through the schemaURL pre-registered in the operating system for the target H5 page, wherein the jump target indicated in the schemaURL The page is the local login interface.

进一步地,基于单点登录凭证向单点登录认证中心请求授权,包括:通过JS回调函数监测是否接收到单点登录凭证,并在接收到单点登录凭证之后将单点登录凭证发送至单点登录认证中心请求授权。Further, requesting authorization from the SSO authentication center based on the SSO credential includes: monitoring whether the SSO credential is received through the JS callback function, and after receiving the SSO credential, sending the SSO credential to the SSO Log in to the certificate authority to request authorization.

根据本发明的另一个实施例,提供了一种在客户端中登录页面的处理装置,包括:接收模块,用于接收在客户端中登录目标H5页面的业务请求;获取模块,用于获取在客户端中本地存储的单点登录凭证,其中,单点登录凭证为单点登录认证中心基于客户端的本地登录授权发放的凭证;请求模块,用于基于单点登录凭证向单点登录认证中心请求授权,以登录目标H5页面。According to another embodiment of the present invention, a processing device for logging in a page in a client is provided, comprising: a receiving module for receiving a service request for logging in a target H5 page in the client; an acquiring module for acquiring The single sign-on credentials stored locally in the client, wherein the single sign-on credentials are the credentials issued by the single sign-on authentication center based on the client's local login authorization; the request module is used to request the single sign-on authentication center based on the single sign-on credentials Authorization to log in to the target H5 page.

进一步地,获取模块包括:调用单元,用于在客户端中不存在单点登录凭证的情况下,调出客户端的本地登录界面,以接收用户输入的用户账户的登录信息;发送单元,用于将登录信息发送至单点登录认证中心;接收单元,用于接收并存储单点登录认证中心对登录信息验证成功之后授权发放的单点登录凭证。Further, the acquisition module includes: a calling unit for calling out a local login interface of the client when there is no single sign-on credential in the client to receive the login information of the user account input by the user; a sending unit for Send the login information to the single sign-on authentication center; the receiving unit is used to receive and store the single sign-on credentials authorized and issued by the single sign-on authentication center after the successful verification of the login information.

进一步地,单点登录凭证具有有效时长,请求模块还包括:请求单元,用于在超出有效时长之后,基于单点登录凭证向单点登录认证中心请求授权失败;调用单元,用于调出客户端的本地登录界面,以接收用户输入的用户账户的登录信息;发送单元,用于将登录信息发送至单点登录认证中心;接收单元,用于接收并存储单点登录认证中心对登录信息验证成功之后授权发放的单点登录凭证。Further, the single sign-on credential has a valid duration, and the requesting module further includes: a requesting unit for requesting authorization failure from the single sign-on authentication center based on the single sign-on credential after the valid duration is exceeded; a calling unit for calling out the client The local login interface of the terminal is used to receive the login information of the user account input by the user; the sending unit is used to send the login information to the single sign-on authentication center; the receiving unit is used to receive and store the successful verification of the login information by the single sign-on authentication center Single sign-on credentials issued after authorization.

进一步地,请求单元还用于通过目标H5页面中的预设JS函数调用目标native接口函数,其中,目标native接口函数为预先在客户端的本地登录界面的网页视图程序中添加的native接口函数;执行目标native接口函数对应的方法。Further, the request unit is also used to call the target native interface function through the preset JS function in the target H5 page, wherein the target native interface function is the native interface function added in advance in the web page view program of the local login interface of the client; execute The method corresponding to the target native interface function.

进一步地,请求单元还用于通过针对目标H5页面预先在操作系统中注册的schemaURL,跳转至schemaURL中所指示的跳转目标页面,其中,schemaURL中所指示的跳转目标页面为本地登录界面。Further, the request unit is also used to jump to the jump target page indicated in the schemaURL through the schemaURL registered in the operating system in advance for the target H5 page, wherein the jump target page indicated in the schemaURL is the local login interface .

进一步地,请求模块还用于通过JS回调函数监测是否接收到单点登录凭证,并在接收到单点登录凭证之后将单点登录凭证发送至单点登录认证中心请求授权。Further, the request module is further configured to monitor whether the single sign-on credential is received through the JS callback function, and after receiving the single sign-on credential, send the single sign-on credential to the single sign-on authentication center to request authorization.

根据本发明的又一个实施例,还提供了一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, a storage medium is also provided, wherein a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.

根据本发明的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, there is also provided an electronic device comprising a memory and a processor, wherein the memory stores a computer program, the processor is configured to run the computer program to execute any of the above Steps in Method Examples.

通过本发明,通过接收在客户端中登录目标H5页面的业务请求;获取在客户端中本地存储的单点登录凭证,其中,单点登录凭证为单点登录认证中心基于客户端的本地登录授权发放的凭证;基于单点登录凭证向单点登录认证中心请求授权,以登录目标H5页面,解决了相关技术中在已登录的客户端中登录H5页面时需要用户重复在H5页面中输入登录信息的技术问题,无需用户反复输入登录信息,在客户端已登录的情况下,可以直接登录进入H5页面。Through the present invention, by receiving the business request for logging in the target H5 page in the client; obtaining the single sign-on credential stored locally in the client, wherein the single sign-on credential is issued by the single sign-on authentication center based on the local login authorization of the client based on the single sign-on credentials to request authorization from the single sign-on authentication center to log in to the target H5 page, which solves the problem of requiring the user to repeatedly enter the login information in the H5 page when logging in to the H5 page in the logged-in client in the related technology. For technical problems, users do not need to repeatedly enter login information. If the client is logged in, they can directly log in to the H5 page.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:

图1是根据本发明实施例的在客户端中登录页面的处理方法的流程图;1 is a flowchart of a method for processing a login page in a client according to an embodiment of the present invention;

图2是根据本发明实施例的在客户端中登录页面的处理装置的示意图;2 is a schematic diagram of a processing apparatus for logging in a page in a client according to an embodiment of the present invention;

图3是本发明实施例的一种电子装置的硬件结构框图。FIG. 3 is a block diagram of a hardware structure of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, rather than all the embodiments, and the embodiments of the present application and the features of the embodiments may be combined with each other under the condition of no conflict. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

实施例1Example 1

本实施例提供了一种在客户端中登录页面的处理方法,可以应用于客户端侧,其中,客户端可以运行中移动终端、手持终端或类似的运算设备之中。运行在不同的运算设备仅是方案在执行主体上的差异,本领域人员可预见在不同运算设备中运行能够产生相同的技术效果。This embodiment provides a method for processing a login page in a client, which can be applied to the client, where the client may be running a mobile terminal, a handheld terminal, or a similar computing device. Running on different computing devices is only the difference in the execution body of the solution, and those skilled in the art can predict that running on different computing devices can produce the same technical effect.

如图1所示,本实施例提供的在客户端中登录页面的处理方法包括如下步骤:As shown in FIG. 1 , the method for processing a login page in a client provided by this embodiment includes the following steps:

步骤101,接收在客户端中登录目标H5页面的业务请求。Step 101: Receive a service request for logging in the target H5 page in the client.

客户端是安装在终端设备(如手机)中的客户端软件(APP),客户端的本地登录是通过native实现的,native基于终端设备的本地操作系统(如iOS、Android、WP)编写运行。此外,客户端中还可以登录H5页面,H5页面用于提供业务请求对应的业务。The client is a client software (APP) installed in a terminal device (such as a mobile phone), and the local login of the client is realized by native, which is written and run based on the local operating system (such as iOS, Android, WP) of the terminal device. In addition, the client can also log in to the H5 page, and the H5 page is used to provide the service corresponding to the service request.

客户端中提供的native业务和网页中提供的业务可以分别属于独立的业务系统例如,客户端提供的业务可以是针对银行账户的查询、转账等操作,而H5页面的业务系统是该银行提供的基金业务信息。The native business provided in the client and the business provided in the webpage can belong to independent business systems. For example, the business provided by the client can be operations such as inquiry and transfer of bank accounts, while the business system of the H5 page is provided by the bank. Fund business information.

步骤102,获取在客户端中本地存储的单点登录凭证,其中,单点登录凭证为单点登录认证中心基于客户端的本地登录授权发放的凭证;Step 102, obtaining a single sign-on credential stored locally in the client, wherein the single sign-on credential is a credential issued by the single sign-on authentication center based on the client's local login authorization;

在本实施例中,客户端中提供的native业务和网页中提供的业务系统都通过单点登录(Single Sign-On,简称SSO)认证中心来管理。In this embodiment, both the native service provided in the client and the service system provided in the webpage are managed by a single sign-on (Single Sign-On, SSO for short) authentication center.

在客户端接收到需要登录目标H5页面的业务请求时,可以请求客户端提供单点登录认证中心为客户端发放的单点登录凭证,并基于单点登录凭证向单点登录认证中心请求授权。When the client receives a service request that needs to log in to the target H5 page, it can request the client to provide the SSO credentials issued by the SSO authentication center for the client, and request authorization from the SSO authentication center based on the SSO credentials.

单点登录认证中心能够控制多个相关但彼此独立的系统的访问权限,拥有这一访问权限的用户可以使用单一的用户ID和密码(例如,预先注册的账号及密码、或手机号及短信验证码)访问各个系统,从而避免在各个业务系统中使用不同的用户名或密码。The single sign-on authentication center can control the access rights of multiple related but independent systems, and users with this access rights can use a single user ID and password (for example, a pre-registered account and password, or mobile phone number and SMS verification password) to access each system, thereby avoiding the use of different usernames or passwords in each business system.

当用户在客户端中输入用户ID和密码成功的本地登录之后,单点登录认证中心会对客户端产生授权(如session),或者说信任客户端,并产生单点登录凭证(如sessionID)反馈给客户端,其中,单点登录凭证是单点登录认证中心查找授权的标识。任意系统在向单点登录认证中心提供正确的单点登录凭证之后,会获取到单点登录认证中心提供的授权,从而登录进对应的业务系统。When the user enters the user ID and password in the client and successfully logs in locally, the single sign-on authentication center will authorize the client (such as session), or trust the client, and generate a single sign-on credential (such as sessionID) feedback For the client, the single sign-on credential is the identification of the search authorization of the single sign-on authentication center. After any system provides the correct SSO credentials to the SSO authentication center, it will obtain the authorization provided by the SSO authentication center to log in to the corresponding business system.

在一种可选的应用场景中,每一次本地登录产生的单点登录凭证是不同的,且每一个单点登录凭证是具有时效性的,也即,单点登录凭证的时效可以是在预先定义的时段或时机截至,例如,单点登录凭证的时效性可以是预设时长、或者在客户端退出终端设备的前端时截止。在获得单点登录凭证之后,如果客户端需要请求某一本地业务,单点登录认证中心可以基于客户端发送的单点登录凭证查找对应的授权(如sessionID对应的session),如果查找到了对应的授权,则允许客户端访问对应的业务。In an optional application scenario, the SSO credentials generated by each local login are different, and each SSO credential is time-sensitive, that is, the validity period of the SSO credentials can be set in advance The defined period or timing expires, for example, the validity of the single sign-on credential may be a preset period of time, or expire when the client exits the front end of the terminal device. After obtaining the SSO credentials, if the client needs to request a local service, the SSO authentication center can search for the corresponding authorization (such as the session corresponding to the session ID) based on the SSO credentials sent by the client. Authorization allows the client to access the corresponding service.

在这种应用场景中,在基于单点登录凭证向单点登录认证中心请求授权,以登录目标H5页面时,如果超出有效时长之后,基于单点登录凭证向单点登录认证中心请求授权会失败,则客户端会调出客户端的本地登录界面,以接收用户输入的用户账户的登录信息,将登录信息发送至单点登录认证中心;接收并存储单点登录认证中心对登录信息验证成功之后授权发放的单点登录凭证。In this application scenario, when requesting authorization from the SSO authentication center based on the SSO credential to log in to the target H5 page, if the validity period expires, the request for authorization from the SSO authentication center based on the SSO credential will fail. , the client will call up the local login interface of the client to receive the login information of the user account entered by the user, and send the login information to the SSO authentication center; receive and store the SSO authentication center to authorize after the successful verification of the login information Issued single sign-on credentials.

可选的,在获取在客户端中本地存储的单点登录凭证时,会存在两种情况:Optionally, when obtaining SSO credentials stored locally in the client, there are two situations:

第一种情况是客户端中已经本地登录过了,此时可以在单点登录认证中心中请求到授权,从而登录请求H5页面的业务所对应的业务系统,实现对H5页面的访问,实现对应的业务功能。The first case is that the client has already logged in locally. At this time, you can request authorization in the single sign-on authentication center, so as to log in to the business system corresponding to the business requesting the H5 page, realize the access to the H5 page, and realize the corresponding business function.

第二种情况是客户端中并未本地登录过,在这种情况下,不可以在单点登录认证中心中请求到授权,从而无法登录请求H5页面的业务所对应的业务系统,此时可以调出客户端的本地登录界面,通过本地登录界面接收用户输入的账号密码。The second case is that the client has not logged in locally. In this case, authorization cannot be requested in the single sign-on authentication center, so that the business system corresponding to the business requesting the H5 page cannot be logged in. Call up the local login interface of the client, and receive the account password entered by the user through the local login interface.

可选的,上述的调出本地登录界面的方式可以通过js-native或者schemaUrl等方式来实现。Optionally, the above method of calling out the local login interface can be implemented by js-native or schemaUrl.

如果采用js-native方式,调出客户端的本地登录界面的步骤,可以包括:通过目标H5页面中的预设JS函数调用目标native接口函数,其中,目标native接口函数为预先在客户端的本地登录界面的网页视图程序中添加的native接口函数;执行目标native接口函数对应的方法。If the js-native method is adopted, the steps of calling up the local login interface of the client may include: calling the target native interface function through the preset JS function in the target H5 page, wherein the target native interface function is the local login interface of the client in advance The native interface function added in the web view program of the , executes the method corresponding to the target native interface function.

举例而言,可以预先在客户端的本地登录界面的网页视图程序中添加一个供H5页面调用的native接口函数;当H5页面接收到访问指令时,H5页面通过H5页面中预设的Js函数把native接口函数名发送给native,以调用在客户端的本地登录界面中预设的native接口函数的名称,实现了H5页面调用本地登录界面。For example, you can add a native interface function for the H5 page to call in the web page view program of the client's local login interface in advance; when the H5 page receives an access command, the H5 page uses the preset Js function in the H5 page to call the native interface function. The interface function name is sent to the native to call the name of the native interface function preset in the local login interface of the client, so that the H5 page can call the local login interface.

如果采用schemaUrl的方式实现,调出客户端的本地登录界面,包括:通过针对目标H5页面预先在操作系统中注册的schemaURL,跳转至schemaURL中所指示的跳转目标页面,其中,schemaURL中所指示的跳转目标页面为本地登录界面。If the schemaUrl method is adopted, the local login interface of the client is called up, including: jumping to the jump target page indicated in the schemaURL through the schemaURL pre-registered in the operating system for the target H5 page, wherein the indicated in the schemaURL The jump target page is the local login interface.

举例而言,预先向操作系统注册一个schemaUrl,注册的schemaUrl中包括了URL链接和跳转目标页面(也即本地客户端的登录界面)。当注册的URL页面链接(URL页面链接的参数中携带有用于指示需要登录和当前未登录的参数,也即,访问的URL页面链接是需要登录的页面,且当前未登录)被访问时,操作系统的页面跳转路由中心根据预先注册的schemaURL确定跳转目标页面,从而指示客户端跳转到schemaURL中指定的本地登录界面。For example, a schemaUrl is pre-registered with the operating system, and the registered schemaUrl includes a URL link and a jump target page (that is, the login interface of the local client). When the registered URL page link (the parameters of the URL page link carry parameters indicating the need to log in and not currently logged in, that is, the visited URL page link is the page that needs to be logged in and is not currently logged in) is accessed, the operation The page jump routing center of the system determines the jump target page according to the pre-registered schemaURL, thereby instructing the client to jump to the local login interface specified in the schemaURL.

在通过本地登录界面接收到用户输入的账户密码之后,将账户密码发送至单点登录认证中心。其中,如果单点登录认证中心验证登录成功,会反馈一个单点登录凭证给客户端,拥有该单点登录凭证可以登录单点登录认证中心所管理的所有业务系统,包括本实施例中的本地客户端中的业务对应的业务系统和H5页面中的业务所对应的业务系统。进而,在客户端获取到单点登录凭证之后,H5页面可以通过回调JS的方法重新获取客户端的单点登录凭证,并基于单点登录凭证向单点登录认证中心请求授权,实现在H5页面中自动登录的效果。After receiving the account password entered by the user through the local login interface, the account password is sent to the single sign-on authentication center. Among them, if the single sign-on authentication center verifies that the login is successful, it will feed back a single sign-on credential to the client. With the single sign-on credential, you can log in to all business systems managed by the single sign-on authentication center, including the local The business system corresponding to the business in the client and the business system corresponding to the business in the H5 page. Furthermore, after the client obtains the SSO credentials, the H5 page can re-obtain the client SSO credentials by calling back JS, and request authorization from the SSO authentication center based on the SSO credentials, which is implemented in the H5 page. The effect of automatic login.

步骤103,基于单点登录凭证向单点登录认证中心请求授权,以登录目标H5页面。Step 103 , request authorization from the single sign-on authentication center based on the single sign-on credential to log in to the target H5 page.

在获取到单点登录凭证之后,发送至单点登录认证中心以请求授权。在单点登录认证中心授权之后,登录进入目标H5页面。After obtaining the single sign-on credentials, send it to the single sign-on authentication center to request authorization. After the single sign-on authentication center is authorized, log in to the target H5 page.

在基于单点登录凭证向单点登录认证中心请求授权,包括:通过JS回调函数监测是否接收到单点登录凭证,并在接收到单点登录凭证之后将单点登录凭证发送至单点登录认证中心请求授权。Requesting authorization from the SSO authentication center based on the SSO credentials, including: monitoring whether the SSO credentials are received through the JS callback function, and sending the SSO credentials to the SSO authentication after receiving the SSO credentials The center requests authorization.

本实施例通过单点登录认证中心来统一地管理所有的业务系统的相互登录认证,使得在客户端中本地业务对应的业务系统登录成功之后,可以被H5页面中提供的业务的业务系统认可,并利用H5页面与客户端native之间的相互调用实现对客户端本地登录的单点登录凭证的获取,并在客户端未本地登录时,调出本地登录界面执行登录流程,通过本地登录的方式实现在H5页面登录的效果,简化了客户端中登录H5页面的操作流程,无需用户在客户端中和H5页面中分别进行登录,极大的提高了用户体验。This embodiment uniformly manages the mutual login authentication of all business systems through the single sign-on authentication center, so that after the business system corresponding to the local business in the client is successfully logged in, it can be recognized by the business system of the business provided in the H5 page, And use the mutual call between the H5 page and the client native to obtain the single sign-on credentials for the client's local login, and when the client is not logged in locally, call up the local login interface to execute the login process, and log in locally. Realize the effect of logging in on the H5 page, simplifies the operation process of logging in to the H5 page in the client, and does not require the user to log in separately in the client and the H5 page, which greatly improves the user experience.

需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps shown in the flowcharts of the accompanying drawings may be executed in a computer system, such as a set of computer-executable instructions, and, although a logical sequence is shown in the flowcharts, in some cases, Steps shown or described may be performed in an order different from that herein.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

实施例2Example 2

在本实施例中还提供了一种在客户端中登录页面的处理装置,该装置用于实现上述实施例1及其优选实施方式,对于本实施例中未详述的术语或实现方式,可参见实施例1中的相关说明,已经进行过说明的不再赘述。This embodiment also provides a processing device for logging in a page in a client. The device is used to implement the above-mentioned Embodiment 1 and its preferred implementation. For terms or implementations that are not described in detail in this embodiment, you can Refer to the relevant descriptions in Embodiment 1, and those that have already been described will not be repeated.

如以下所使用的术语“模块”,是可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可以被构想的。The term "module", as used below, is a combination of software and/or hardware that can implement predetermined functions. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also contemplated.

图2是根据本发明实施例的在客户端中登录页面的处理装置的示意图,如图2所示,该装置包括:接收模块10,获取模块20,请求模块30。FIG. 2 is a schematic diagram of an apparatus for processing a login page in a client according to an embodiment of the present invention. As shown in FIG. 2 , the apparatus includes: a receiving module 10 , an obtaining module 20 , and a requesting module 30 .

接收模块,用于接收在客户端中登录目标H5页面的业务请求;获取模块,用于获取在客户端中本地存储的单点登录凭证,其中,单点登录凭证为单点登录认证中心基于客户端的本地登录授权发放的凭证;请求模块,用于基于单点登录凭证向单点登录认证中心请求授权,以登录目标H5页面。The receiving module is used to receive the business request for logging in the target H5 page in the client; the obtaining module is used to obtain the single sign-on credential stored locally in the client, wherein the single sign-on credential is that the single sign-on authentication center is based on the client The certificate issued by the local login authorization of the terminal; the request module is used to request authorization from the single sign-on authentication center based on the single sign-on certificate to log in to the target H5 page.

可选的,获取模块包括:调用单元,用于在客户端中不存在单点登录凭证的情况下,调出客户端的本地登录界面,以接收用户输入的用户账户的登录信息;发送单元,用于将登录信息发送至单点登录认证中心;接收单元,用于接收并存储单点登录认证中心对登录信息验证成功之后授权发放的单点登录凭证。Optionally, the obtaining module includes: a calling unit, used for calling out the local login interface of the client when there is no single sign-on credential in the client, to receive the login information of the user account input by the user; the sending unit, using It is used to send the login information to the single sign-on authentication center; the receiving unit is used to receive and store the single sign-on certificate authorized and issued by the single sign-on authentication center after the successful verification of the login information.

可选的,单点登录凭证具有有效时长,请求模块还包括:请求单元,用于在超出有效时长之后,基于单点登录凭证向单点登录认证中心请求授权失败;调用单元,用于调出客户端的本地登录界面,以接收用户输入的用户账户的登录信息;发送单元,用于将登录信息发送至单点登录认证中心;接收单元,用于接收并存储单点登录认证中心对登录信息验证成功之后授权发放的单点登录凭证。Optionally, the single sign-on credential has a valid duration, and the requesting module further includes: a request unit, used to request authorization failure from the single sign-on authentication center based on the single sign-on credential after the valid duration is exceeded; a calling unit, used to call out The local login interface of the client is used to receive the login information of the user account input by the user; the sending unit is used to send the login information to the single sign-on authentication center; the receiving unit is used to receive and store the authentication of the login information by the single sign-on authentication center A single sign-on credential issued after a successful authorization.

可选的,请求单元还用于通过目标H5页面中的预设JS函数调用目标native接口函数,其中,目标native接口函数为预先在客户端的本地登录界面的网页视图程序中添加的native接口函数;执行目标native接口函数对应的方法。Optionally, the requesting unit is further configured to call the target native interface function through the preset JS function in the target H5 page, wherein the target native interface function is a native interface function added in advance in the web page view program of the local login interface of the client; Execute the method corresponding to the target native interface function.

可选的,请求单元还用于通过针对目标H5页面预先在操作系统中注册的schemaURL,跳转至schemaURL中所指示的跳转目标页面,其中,schemaURL中所指示的跳转目标页面为本地登录界面。Optionally, the requesting unit is further configured to jump to the jump target page indicated in the schemaURL through the schemaURL pre-registered in the operating system for the target H5 page, where the jump target page indicated in the schemaURL is a local login interface.

可选的,请求模块还用于通过JS回调函数监测是否接收到单点登录凭证,并在接收到单点登录凭证之后将单点登录凭证发送至单点登录认证中心请求授权。Optionally, the request module is further configured to monitor whether the single sign-on credential is received through the JS callback function, and after receiving the single sign-on credential, send the single sign-on credential to the single sign-on authentication center to request authorization.

通过本发明,通过接收在客户端中登录目标H5页面的业务请求;获取在客户端中本地存储的单点登录凭证,其中,单点登录凭证为单点登录认证中心基于客户端的本地登录授权发放的凭证;基于单点登录凭证向单点登录认证中心请求授权,以登录目标H5页面,解决了相关技术中在已登录的客户端中登录H5页面时需要用户重复在H5页面中输入登录信息的技术问题,无需用户反复输入登录信息,在客户端已登录的情况下,可以直接登录进入H5页面。Through the present invention, by receiving the business request for logging in the target H5 page in the client; obtaining the single sign-on credential stored locally in the client, wherein the single sign-on credential is issued by the single sign-on authentication center based on the local login authorization of the client based on the single sign-on credentials to request authorization from the single sign-on authentication center to log in to the target H5 page, which solves the problem of requiring the user to repeatedly enter the login information in the H5 page when logging in to the H5 page in the logged-in client in the related technology. For technical problems, users do not need to repeatedly enter login information. If the client is logged in, they can directly log in to the H5 page.

需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above modules can be implemented by software or hardware, and the latter can be implemented in the following ways, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination The forms are located in different processors.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device and executed by the computing device, and in some cases, in a different order than here The steps shown or described are performed either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module. As such, the present invention is not limited to any particular combination of hardware and software.

实施例3Example 3

本发明的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。An embodiment of the present invention further provides a storage medium, where a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.

可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), Various media that can store computer programs, such as removable hard disks, magnetic disks, or optical disks.

本实施例通过单点登录认证中心来统一地管理所有的业务系统的相互登录认证,使得在客户端中本地业务对应的业务系统登录成功之后,可以被H5页面中提供的业务的业务系统认可,并利用H5页面与客户端native之间的相互调用实现对客户端本地登录的单点登录凭证的获取,并在客户端未本地登录时,调出本地登录界面执行登录流程,通过本地登录的方式实现在H5页面登录的效果,简化了客户端中登录H5页面的操作流程,无需用户在客户端中和H5页面中分别进行登录,极大的提高了用户体验。This embodiment uniformly manages the mutual login authentication of all business systems through the single sign-on authentication center, so that after the business system corresponding to the local business in the client is successfully logged in, it can be recognized by the business system of the business provided in the H5 page, And use the mutual call between the H5 page and the client native to obtain the single sign-on credentials for the client's local login, and when the client is not logged in locally, call up the local login interface to execute the login process, and log in locally. Realize the effect of logging in on the H5 page, simplifies the operation process of logging in to the H5 page in the client, and does not require the user to log in separately in the client and the H5 page, which greatly improves the user experience.

实施例4Example 4

本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, comprising a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.

本实施例通过单点登录认证中心来统一地管理所有的业务系统的相互登录认证,使得在客户端中本地业务对应的业务系统登录成功之后,可以被H5页面中提供的业务的业务系统认可,并利用H5页面与客户端native之间的相互调用实现对客户端本地登录的单点登录凭证的获取,并在客户端未本地登录时,调出本地登录界面执行登录流程,通过本地登录的方式实现在H5页面登录的效果,简化了客户端中登录H5页面的操作流程,无需用户在客户端中和H5页面中分别进行登录,极大的提高了用户体验。This embodiment uniformly manages the mutual login authentication of all business systems through the single sign-on authentication center, so that after the business system corresponding to the local business in the client is successfully logged in, it can be recognized by the business system of the business provided in the H5 page, And use the mutual call between the H5 page and the client native to obtain the single sign-on credentials for the client's local login, and when the client is not logged in locally, call up the local login interface to execute the login process, and log in locally. Realize the effect of logging in on the H5 page, simplifies the operation process of logging in to the H5 page in the client, and does not require the user to log in separately in the client and the H5 page, which greatly improves the user experience.

可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。以电子装置为电子装置为例,图3是本发明实施例的一种电子装置的硬件结构框图。如图3所示,电子装置可以包括一个或多个(图3中仅示出一个)处理器302(处理器302可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器304,可选地,上述电子装置还可以包括用于通信功能的传输设备306以及输入输出设备308。本领域普通技术人员可以理解,图3所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,电子装置还可包括比图3中所示更多或者更少的组件,或者具有与图3所示不同的配置。Optionally, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor. Taking the electronic device as an electronic device as an example, FIG. 3 is a block diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in FIG. 3 , the electronic device may include one or more (only one is shown in FIG. 3 ) processor 302 (the processor 302 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 304 for storing data, optionally, the above electronic device may further include a transmission device 306 and an input/output device 308 for communication functions. Those skilled in the art can understand that the structure shown in FIG. 3 is only a schematic diagram, which does not limit the structure of the above electronic device. For example, the electronic device may also include more or fewer components than shown in FIG. 3 , or have a different configuration than that shown in FIG. 3 .

存储器304可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的图像的识别方法对应的计算机程序,处理器302通过运行存储在存储器304内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器304可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器304可进一步包括相对于处理器302远程设置的存储器,这些远程存储器可以通过网络连接至电子装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 304 can be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the image recognition method in the embodiment of the present invention. The processor 302 executes the computer programs stored in the memory 304 by running the computer programs. Various functional applications and data processing implement the above method. Memory 304 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 304 may further include memory located remotely from processor 302, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

传输装置306用于经由一个网络接收或者发送数据。上述的网络具体实例可包括电子装置的通信供应商提供的无线网络。在一个实例中,传输装置306包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置306可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。Transmission means 306 is used to receive or transmit data via a network. A specific example of the above-mentioned network may include a wireless network provided by a communication provider of the electronic device. In one example, the transmission device 306 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through the base station so as to communicate with the Internet. In one example, the transmission device 306 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet in a wireless manner.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1. a kind of processing method of login page in the client, which is characterized in that the described method includes:
Receive the service request for logging in the target H5 page in the client;
Obtain the single-sign-on voucher being locally stored in the client, wherein the single-sign-on voucher is single-sign-on The voucher of the client-based local log-on authorization granting of authentication center;
Based on the single-sign-on voucher to the single sign-on authentication center requests authorization, to log in the target H5 page.
2. the method according to claim 1, wherein described obtain the single-point being locally stored in the client Logging on authentication, comprising:
In the case where the single-sign-on voucher is not present in the client, local log-on circle of the client is recalled Face, to receive the log-on message of the user account of user's input;
The log-on message is sent to the single sign-on authentication center;
Receive and store the list that authorization is provided after the single sign-on authentication center is proved to be successful the log-on message Point logging on authentication.
3. the method according to claim 1, wherein the single-sign-on voucher has effective time, the base In the single-sign-on voucher to the single sign-on authentication center requests authorization, to log in the target H5 page, comprising:
After beyond the effective time, the single-sign-on voucher is based on to the single sign-on authentication center requests authorization Failure;
The local log-on interface of the client is recalled, to receive the log-on message of the user account of user's input;
The log-on message is sent to the single sign-on authentication center;
Receive and store the list that authorization is provided after the single sign-on authentication center is proved to be successful the log-on message Point logging on authentication.
4. according to the method in claim 2 or 3, which is characterized in that the local log-on interface for recalling the client, Include:
Pass through the default JS function call target native interface function in the target H5 page, wherein the target Native interface function is that the native added in the webpage view program at the local log-on interface of the client in advance connects Mouth function;
Execute the corresponding method of the target native interface function.
5. according to the method in claim 2 or 3, which is characterized in that the local log-on interface for recalling the client, Include:
By the schemaURL registered in an operating system in advance for the target H5 page, the schemaURL is jumped to In the indicated jump target page, wherein the indicated jump target page is the local log-on in the schemaURL Interface.
6. the method according to claim 1, wherein described stepped on based on the single-sign-on voucher to the single-point Record authentication center's request authorization, comprising:
Monitor whether to receive the single-sign-on voucher by JS call back function, and receive the single-sign-on voucher it The single-sign-on voucher is sent to the single sign-on authentication center requests authorization afterwards.
7. a kind of processing unit of login page in the client, which is characterized in that described device includes:
Receiving module, for receiving the service request for logging in the target H5 page in the client;
Obtain module, for obtaining the single-sign-on voucher being locally stored in the client, wherein the single-sign-on with Card is the voucher of the client-based local log-on authorization granting in single sign-on authentication center;
Request module, for being based on the single-sign-on voucher to the single sign-on authentication center requests authorization, to log in State the target H5 page.
8. device according to claim 7, which is characterized in that the acquisition module includes:
Call unit recalls the client in the case where for the single-sign-on voucher to be not present in the client Local log-on interface, with receive user input user account log-on message;
Transmission unit, for the log-on message to be sent to the single sign-on authentication center;
Receiving unit is authorized for receiving and storing after the single sign-on authentication center is proved to be successful the log-on message The single-sign-on voucher provided.
9. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to perform claim when operation and requires method described in 1 to 6 any one.
10. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to run the computer program in method described in perform claim 1 to 6 any one of requirement.
CN201910615730.5A 2019-07-09 2019-07-09 Method, device and electronic device for processing login page in client Expired - Fee Related CN110493184B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910615730.5A CN110493184B (en) 2019-07-09 2019-07-09 Method, device and electronic device for processing login page in client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910615730.5A CN110493184B (en) 2019-07-09 2019-07-09 Method, device and electronic device for processing login page in client

Publications (2)

Publication Number Publication Date
CN110493184A true CN110493184A (en) 2019-11-22
CN110493184B CN110493184B (en) 2022-10-14

Family

ID=68546871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910615730.5A Expired - Fee Related CN110493184B (en) 2019-07-09 2019-07-09 Method, device and electronic device for processing login page in client

Country Status (1)

Country Link
CN (1) CN110493184B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381824A (en) * 2020-03-11 2020-07-07 苏州金羲智慧科技有限公司 Method, system, device and medium for synchronizing user data in multi-architecture
CN111556060A (en) * 2020-04-29 2020-08-18 上海中通吉网络技术有限公司 Method, device, equipment and storage medium for embedding target software into external H5 page
CN111770072A (en) * 2020-06-23 2020-10-13 北京思特奇信息技术股份有限公司 Method and device for accessing function page through single sign-on
CN112416462A (en) * 2020-11-28 2021-02-26 郑州信大捷安信息技术股份有限公司 Offline H5 application loading method and system
CN113051492A (en) * 2021-04-30 2021-06-29 中国银行股份有限公司 Method and device for inquiring information of bank outlets
CN113452693A (en) * 2021-06-24 2021-09-28 青岛海尔科技有限公司 Login method and device for page back end, storage medium and electronic device
CN113824691A (en) * 2021-08-25 2021-12-21 浪潮软件股份有限公司 A method for realizing silent login strategy of mobile terminal third-party H5 application
CN114117371A (en) * 2021-11-11 2022-03-01 奇安信科技集团股份有限公司 Access right detection method and device, computer equipment and storage medium
CN114822507A (en) * 2022-04-25 2022-07-29 中国农业银行股份有限公司 A voice conversion method, device, equipment and storage medium
CN115134110A (en) * 2021-03-25 2022-09-30 国际商业机器公司 Injecting risk assessment in user authentication

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791324A (en) * 2016-05-12 2016-07-20 腾讯科技(深圳)有限公司 Account login method and device
US20160301685A1 (en) * 2015-04-13 2016-10-13 Ilantus Technologies Pvt. Ltd. System and method for web single sign-on through a browser extension
WO2017080385A1 (en) * 2015-11-10 2017-05-18 阿里巴巴集团控股有限公司 Webpage application acquiring method, device and system
CN107026847A (en) * 2017-02-09 2017-08-08 阿里巴巴集团控股有限公司 A trust login method, server and system
CN108259435A (en) * 2016-12-29 2018-07-06 中国移动通信集团浙江有限公司 Access the implementation method and device of the mixing application of Web components
CN109165499A (en) * 2018-08-21 2019-01-08 努比亚技术有限公司 Single-point logging method, mobile terminal and computer readable storage medium
CN109362074A (en) * 2018-09-05 2019-02-19 福建福诺移动通信技术有限公司 A method for secure communication between h5 and server in mixed mode APP
CN109660487A (en) * 2017-10-10 2019-04-19 武汉斗鱼网络科技有限公司 Authorization method, storage medium, electronic equipment and system based on H5 webpage
CN109815115A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Method and device for debugging bridge interface, computer equipment, and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160301685A1 (en) * 2015-04-13 2016-10-13 Ilantus Technologies Pvt. Ltd. System and method for web single sign-on through a browser extension
WO2017080385A1 (en) * 2015-11-10 2017-05-18 阿里巴巴集团控股有限公司 Webpage application acquiring method, device and system
CN105791324A (en) * 2016-05-12 2016-07-20 腾讯科技(深圳)有限公司 Account login method and device
CN108259435A (en) * 2016-12-29 2018-07-06 中国移动通信集团浙江有限公司 Access the implementation method and device of the mixing application of Web components
CN107026847A (en) * 2017-02-09 2017-08-08 阿里巴巴集团控股有限公司 A trust login method, server and system
CN109660487A (en) * 2017-10-10 2019-04-19 武汉斗鱼网络科技有限公司 Authorization method, storage medium, electronic equipment and system based on H5 webpage
CN109165499A (en) * 2018-08-21 2019-01-08 努比亚技术有限公司 Single-point logging method, mobile terminal and computer readable storage medium
CN109362074A (en) * 2018-09-05 2019-02-19 福建福诺移动通信技术有限公司 A method for secure communication between h5 and server in mixed mode APP
CN109815115A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Method and device for debugging bridge interface, computer equipment, and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
伍孟轩等: "跨域单点登录解决方案研究", 《网络安全技术与应用》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381824A (en) * 2020-03-11 2020-07-07 苏州金羲智慧科技有限公司 Method, system, device and medium for synchronizing user data in multi-architecture
CN111556060A (en) * 2020-04-29 2020-08-18 上海中通吉网络技术有限公司 Method, device, equipment and storage medium for embedding target software into external H5 page
CN111770072B (en) * 2020-06-23 2022-04-19 北京思特奇信息技术股份有限公司 Method and device for accessing function page through single sign-on
CN111770072A (en) * 2020-06-23 2020-10-13 北京思特奇信息技术股份有限公司 Method and device for accessing function page through single sign-on
CN112416462A (en) * 2020-11-28 2021-02-26 郑州信大捷安信息技术股份有限公司 Offline H5 application loading method and system
CN112416462B (en) * 2020-11-28 2022-04-08 郑州信大捷安信息技术股份有限公司 Offline H5 application loading method and system
CN115134110A (en) * 2021-03-25 2022-09-30 国际商业机器公司 Injecting risk assessment in user authentication
CN115134110B (en) * 2021-03-25 2024-10-18 国际商业机器公司 Injecting risk assessment into user authentication
US12143396B2 (en) 2021-03-25 2024-11-12 International Business Machines Corporation Injecting risk assessment in user authentication
CN113051492A (en) * 2021-04-30 2021-06-29 中国银行股份有限公司 Method and device for inquiring information of bank outlets
CN113452693A (en) * 2021-06-24 2021-09-28 青岛海尔科技有限公司 Login method and device for page back end, storage medium and electronic device
CN113452693B (en) * 2021-06-24 2024-01-23 青岛海尔科技有限公司 Login methods and devices, storage media and electronic devices at the back end of the page
CN113824691A (en) * 2021-08-25 2021-12-21 浪潮软件股份有限公司 A method for realizing silent login strategy of mobile terminal third-party H5 application
CN114117371A (en) * 2021-11-11 2022-03-01 奇安信科技集团股份有限公司 Access right detection method and device, computer equipment and storage medium
CN114822507A (en) * 2022-04-25 2022-07-29 中国农业银行股份有限公司 A voice conversion method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110493184B (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN110493184B (en) Method, device and electronic device for processing login page in client
US8701199B1 (en) Establishing a trusted session from a non-web client using adaptive authentication
US10515232B2 (en) Techniques for facilitating secure, credential-free user access to resources
US11695747B2 (en) Multi-device single sign-on
US10230736B2 (en) Invisible password reset protocol
CN102710640B (en) Authorization requesting method, device and system
CN103746812B (en) A kind of access authentication method and system
US20170170963A1 (en) Step-up authentication for single sign-on
CN111131242A (en) Authority control method, device and system
CN102882835B (en) A kind of method and system realizing single-sign-on
CN112800411A (en) Multi-protocol and multi-mode supporting safe and reliable identity authentication method and device
US9787678B2 (en) Multifactor authentication for mail server access
CN110730174A (en) Network access control method, device, equipment and medium
US20130007867A1 (en) Network Identity for Software-as-a-Service Authentication
CN107172054A (en) A CAS-based authority authentication method, device and system
CN110069909B (en) Method and device for login of third-party system without secret
US12476957B2 (en) System and method for providing multi factor authorization to RDP services through a zero trust cloud environment
CN103200159A (en) Network access method and equipment
US20250112961A1 (en) Techniques for generating policy recommendations and insights using generative ai
KR101824562B1 (en) Gateway and method for authentication
CN105592026A (en) Multi-network-segment multi-system single sign on method
CN114338078B (en) A CS client login method and device
TWI868701B (en) Systems and methods for single sign on (sso) redirecting in the presence of multiple service providers for a cloud service
JP6848275B2 (en) Program, authentication system and authentication cooperation system
US20240306111A1 (en) Secure process for device registration with a service

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20221014

CF01 Termination of patent right due to non-payment of annual fee