WO2015188453A1 - 一种客户端接入方法及装置 - Google Patents
一种客户端接入方法及装置 Download PDFInfo
- Publication number
- WO2015188453A1 WO2015188453A1 PCT/CN2014/084945 CN2014084945W WO2015188453A1 WO 2015188453 A1 WO2015188453 A1 WO 2015188453A1 CN 2014084945 W CN2014084945 W CN 2014084945W WO 2015188453 A1 WO2015188453 A1 WO 2015188453A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- client
- user
- service node
- login request
- interface
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
Definitions
- a video surveillance system is a system for managing a front-end camera, which can forward a real-time video stream of a front-end camera to a client according to the set authority, for viewing by the client, and realizing a function of real-time video recording according to the setting.
- the front end is the camera + video encoder
- the client is the interface tool for user monitoring and operation
- the platform is the core module of the entire business logic processing.
- the client and the front end are connected through the platform. It can be seen that there is an interface between the platform and the front end, the platform and the client.
- the interface between the platform and the front end has many standard specifications, such as the commonly used China Telecom global eye specification, onvif (Open Network Video Interface Forum) specifications.
- the interface between the platform and the client is basically a private interface.
- C/S Client/Server, Client/Server
- B/S Borrowser/Server, browser/server
- mobile terminal client Currently, the mainstream client types are C/S (Client/Server, Client/Server) mode client, B/S (Browser/Server, browser/server) mode client, and mobile terminal client. These three types of clients are indispensable for different application scenarios and user groups. As a video surveillance platform, it is necessary to implement multiple client interfaces for different types of clients. This not only complicates the implementation, but also causes problems in which the user perception is inconsistent due to different implementations between different client interfaces. SUMMARY OF THE INVENTION
- the technical problem to be solved by the present invention is to provide a client access method and apparatus, which are used to at least solve the inconsistency of user perception caused by different interfaces between different types of clients and monitoring platforms in the prior art. Experience the problem of poor.
- an embodiment of the present invention provides a client access method, including: Receiving a user login request from the client through the same type of interface; determining a service node corresponding to the user according to the user login request; instructing the client to log in to the service node, to enable the client and the service
- the node communicates.
- the client includes at least one of a browser/server B/S mode client, a client/server C/S mode client, and a mobile terminal client; the same type of interface includes HTTP ( The hypertext transfer protocol is based on a hypertext transfer protocol.
- the user login request includes a login parameter, and the login parameter is carried by a URL (Uniform Resoure Locator) of the hypertext transfer protocol.
- the determining, according to the user login request, the service node corresponding to the user includes: performing verification on the verification code information in the user login request; and in the case of verifying, according to the user
- the login request determines the service node corresponding to the user; the indicating that the client logs in to the service node specifically includes: instructing the client to redirect to the service node.
- the embodiment of the present invention further provides a client access method, including: sending a user login request initiated by the client to the monitoring platform by using the same type of interface; and logging in to the corresponding according to the indication of the monitoring platform. Service node to communicate with the service node.
- the client includes at least one of a browser/server B/S mode client, a client/server C/S mode client, and a mobile terminal client; the same type of interface includes a super-based An interface of the text transmission protocol HTTP, where the user login request includes a login parameter, and the login parameter is carried by the uniform resource locator URL of the hypertext transfer protocol.
- an embodiment of the present invention further provides a client access apparatus, including: a receiving unit, configured to receive a user login request from a client by using the same type of interface; and a determining unit, configured to perform a login request according to the user Determining a service node corresponding to the user; the indication unit is configured to instruct the client to log in to the service node, so that the client communicates with the service node.
- the client includes at least one of a browser/server B/S mode client, a client/server C/S mode client, and a mobile terminal client; the same type of interface includes a super-based An interface of the text transmission protocol HTTP, where the user login request includes a login parameter, and the login parameter is carried by the uniform resource locator URL of the hypertext transfer protocol.
- the determining unit is specifically configured to: perform verification on the verification code information in the user login request; and in the case of passing the verification, determine, according to the user login request, a service node corresponding to the user;
- the indication unit is specifically configured to: instruct the client to redirect to the service node.
- an embodiment of the present invention further provides a client access apparatus, including: a sending unit, configured to send, by using a same type of interface, a user login request initiated by a client to a monitoring platform; and the login unit is set according to The indication of the monitoring platform is logged into a corresponding service node to communicate with the service node.
- the client includes at least one of a browser/server B/S mode client, a client/server C/S mode client, and a mobile terminal client; the same type of interface includes a super-based An interface of the text transmission protocol HTTP, where the user login request includes a login parameter, and the login parameter is carried by the uniform resource locator URL of the hypertext transfer protocol.
- the monitoring platform can receive a user login request from the client through the same type of interface, and determine a service node corresponding to the user according to the user login request, and then indicate the The client logs into the service node, thereby enabling the client to communicate directly with the service node.
- different types of clients can access the same interface and find the corresponding service node, and can directly communicate with the service node without forwarding the message through other devices, thereby avoiding the relationship between the client and the monitoring platform.
- the problem of inconsistent user perception caused by different interfaces greatly improves the user experience.
- FIG. 1 is a flow chart of a client access method according to an embodiment of the present invention
- FIG. 2 is another flowchart of a client access method according to an embodiment of the present invention
- FIG. 4 is another detailed flowchart of a client access method according to an embodiment of the present invention
- FIG. 5 is a client access method according to an embodiment of the present invention
- FIG. 6 is a schematic structural diagram of a client access device according to an embodiment of the present invention
- FIG. 7 is another schematic structural diagram of a client access device according to an embodiment of the present invention.
- DETAILED DESCRIPTION OF THE INVENTION The present invention will be described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
- an embodiment of the present invention provides a client access method, where the method may include:
- the client access method provided by the embodiment of the present invention can receive a user login request from various clients through the same type of interface, and determine a service node corresponding to the user according to the user login request, and then instruct the client.
- the terminal logs into the service node, thereby enabling the client to communicate directly with the service node.
- different types of clients can access the same interface and find the corresponding service node, and can directly communicate with the service node without forwarding the message through other devices, thereby avoiding the relationship between the client and the monitoring platform.
- the problem of inconsistent user perception caused by different interfaces greatly improves the user experience.
- the monitoring platform may be various servers or distributed systems with central processing functions, such as a central operating platform of a video monitoring system or a server of a large portal, etc., can log in to the monitoring platform.
- the client provides the corresponding information service.
- the client may be one or more of a B/S mode client, a C/S mode client, and a mobile terminal client.
- B/S mode client a B/S mode client
- C/S mode client C/S mode client
- mobile terminal client a mobile terminal client.
- other applications that can log in to the monitoring platform may be used. This is not a limitation.
- the client access method of the present invention is described in detail below by taking the video surveillance system as an example. However, the client access method provided by the present invention is not limited thereto. Specifically, in order to support different types of client access with a unified interface, it is first necessary to determine an interface type.
- the B/S mode client requires the most strict interface type, because the B/S mode uses the browser as the client, and the browser and the server need to use HTTP. Protocol interface. Therefore, as the same type of interface to which various clients are to be accessed, it is also an interface based on the HTTP protocol. Then it is necessary to implement the C/S mode client through the HTTP protocol interface.
- the monitoring platform is a distributed system.
- client access also requires distributed access, which involves service distribution. Commonly used for the distribution of the HTTP protocol, are based on the distribution of messages, such as the use of nginx solutions.
- All messages are forwarded via a distribution module in the monitoring platform that is responsible for distributing the message (such as nginx, "engine x", a high-performance HTTP and reverse proxy server), so the burden of the distribution module will be very high. Heavy, it is likely to become a performance bottleneck of the entire system.
- the interface based on the HTTP protocol breaks the original login and message forwarding mode, and the client only obtains the address of the service node accessed by the distribution module when logging in, and subsequently The message interaction is directly between the client and the service node it accesses, and is no longer distributed through the distribution module, so that the C/S mode client, the B/S mode client, the mobile terminal client, etc.
- the user login request includes various login parameters, such as a username, a password, etc., whether for a C/S mode client, a B/S mode client, or a mobile terminal client.
- Login parameters can be carried through the Uniform Resource Locator URL of the Hypertext Transfer Protocol.
- the verification code information may be included in the user login request, which is generally used when the B/S mode client is used.
- step S12 Determining, according to the user login request, the service node corresponding to the user may include: verifying the verification code information; and if the verification is performed, determining, according to the user login request, the service corresponding to the user Node; in this way, the identity of the user can be further verified and verified. Only when the verification code information in the login parameter matches the verification information preset in the monitoring platform, the address of the service node corresponding to the user is determined, otherwise no calculation is needed.
- Corresponding service nodes which not only enhance security, but also save system resources.
- instructing the client to log in to the service node may include: instructing the client to redirect to the service node.
- an embodiment of the present invention further provides a client access method, where the method may include:
- each type of client can send a user login request to the monitoring platform through the same type of interface, and can log in to the corresponding service node according to the instruction of the monitoring platform.
- communicating with the service node so that different types of clients can access and find the corresponding service node by using the same interface, and can directly communicate with the service node without forwarding the message through other devices, thereby avoiding
- the user experience is inconsistent due to different interfaces between the client and the monitoring platform, which greatly improves the user experience.
- the present invention can be implemented as long as it is compatible with a plurality of types of clients, such as a B/S mode client, a C/S mode client, or a mobile terminal client, and the embodiment of the present invention does not limit.
- the B/S mode client has the strictest interface type requirement, because the B/S mode uses a browser as a client, and between the browser and the server. , need to use the HTTP protocol interface. Therefore, as the same type of interface to which various clients are to be accessed, it is also an interface based on the HTTP protocol.
- the user login request includes various login parameters, such as a username, a password, etc., whether for a C/S mode client, a B/S mode client, or a mobile terminal client.
- Login parameters can be carried through the Uniform Resource Locator URL of the Hypertext Transfer Protocol.
- the client access method provided by the present invention is described in detail below through specific embodiments. As shown in FIG. 3, in an embodiment of the present invention, for a client in the B/S mode, the access method includes the following steps:
- the client browser accesses the login homepage of the distribution module, where the user needs to input the username and password information;
- the user enters the user name and password and clicks the login.
- the client browser sends the user to log in to the distribution module of the monitoring platform, where the request carries the user information;
- the distribution module calculates, according to user information, a service node to which the user belongs; 5104.
- the distribution module returns the address information of the service node to the client browser.
- the client browser submits a user login request to the service node
- the service node authenticates the user information, and determines whether the login is successful.
- the service node returns the main page after login to the client browser.
- the monitoring platform has a dynamic code check function for the user login.
- the access method of the B/S client may include the following steps:
- the client browser accesses a login homepage of the distribution module, where the user needs to input a user name, a password, and a verification code information;
- the distribution module verifies the verification code information.
- the distribution module calculates the service node to which the user belongs according to the user information in the user login request;
- the distribution module returns a self-refresh page to the client browser for redirection, and redirects the client browser to the service node;
- the client browser submits the user login request to the service node by triggering the redirect;
- the service node sends a message to the distribution module for verification of the verification code information in the user login request;
- the service node continues to authenticate the user information to determine whether the login is successful;
- the service node returns the main page after login to the client browser.
- the specific implementation manners of the above two B/S mode client accesses differ in whether or not the dynamic verification code is supported.
- the first embodiment has the advantage that the implementation is simple, and the second embodiment has the advantage of being able to support the dynamic verification code, thereby preventing brute force cracking.
- the access method may specifically include:
- the user enters a user name and password on the client, and then clicks the login.
- the client sends a user login request to the distribution module, where the request carries the user information.
- the distribution module calculates the service node to which the user belongs according to the user information. ;
- the distribution module returns the address information of the service node to the client;
- the client submits a user login request to the service node;
- the service node authenticates the user information, and determines whether the login is successful.
- an embodiment of the present invention further provides a client access device 1 that can be disposed in a monitoring platform.
- the client access device 1 can include: a receiving unit 10 configured to The interface of the type receives the user login request from the client; the determining unit 12 is configured to determine the service node corresponding to the user according to the user login request; the indicating unit 14 is configured to instruct the client to log in to the service node, The client is in communication with the service node.
- the client access device 1 provided by the embodiment of the present invention can receive the user login request from various clients through the same type of interface, and the determining unit 12 can determine the service corresponding to the user according to the user login request.
- the node, the instructing unit 14 can instruct the client to log in to the serving node, thereby enabling each of the clients to communicate directly with the serving node.
- different types of clients can access the same interface and find the corresponding service node, and can directly communicate with the service node without forwarding the message through other devices, thereby avoiding the relationship between the client and the monitoring platform.
- the problem of inconsistent user perception caused by different interfaces greatly improves the user experience.
- the client includes at least one of a browser/server B/S mode client, a client/server C/S mode client, and a mobile terminal client.
- the interface of the same type may be an interface based on a Hypertext Transfer Protocol (HTTP), and the user login request may include a login parameter, such as a username, a password, etc., and the login parameter may be unified by a hypertext transfer protocol.
- the resource locator URL is carried.
- the user login request may further include verification code information, where the determining unit 12 may be specifically configured to: verify the verification code information; and in case of passing verification, according to the user login request Determining the service node corresponding to the user; correspondingly, the indicating unit 13 may be specifically configured to: instruct the client to redirect to the service node.
- the present invention further provides a client access device 2, which can be disposed on a mobile terminal such as a user's personal PC or mobile phone, and the device 2 can include: a sending unit 20, configured to pass the same The interface of the type sends a user login request initiated by the client to the monitoring platform.
- the login unit 22 is configured to log in to the corresponding service node according to the indication of the monitoring platform to communicate with the service node.
- the client access device 2 provided by the embodiment of the present invention, the sending unit 20 of each type of client can send a user login request to the monitoring platform through the same type of interface, and the login unit 22 can log in according to the instruction of the monitoring platform.
- the client includes at least one of a browser/server B/S mode client, a client/server C/S mode client, and a mobile terminal client.
- the interface of the same type includes an interface based on a hypertext transfer protocol (HTTP), where the user login request includes a login parameter, and the login parameter is carried by a uniform resource locator URL of the hypertext transfer protocol.
- HTTP hypertext transfer protocol
- a client access method and apparatus provided by an embodiment of the present invention have the following beneficial effects: Different types of clients can access and find corresponding service nodes by using the same interface, without going through Other devices can directly communicate with the service node by performing message forwarding, thereby avoiding the problem of inconsistent user perception caused by different interfaces between the client and the monitoring platform, and greatly improving the user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种客户端接入方法及装置,涉及通信技术领域,能够解决现有技术中不同类型的客户端与监控平台之间因接口不同而导致的用户感知不一致,用户体验差的问题。所述方法包括:通过同一类型的接口接收来自客户端的用户登录请求;根据所述用户登录请求确定所述用户对应的服务节点;指示所述客户端登录到所述服务节点,以使所述客户端与所述服务节点进行通信。本发明可用于各种具备服务器和客户端的分布式系统中。
Description
一种客户端接入方法及装置 技术领域 本发明涉及通信技术领域, 特别是涉及一种客户端接入方法及装置。 背景技术 视频监控系统是一种管理前端摄像头, 可以按设置的权限将前端摄像头的实时视 频码流转发给客户端, 供客户端观看, 同时可以根据设置实现实时视频录像等功能的 系统。 随着科技越来越发达, 人们的安全防范意识越来越高, 其对周围环境的监控需 求也越来越多, 视频监控系统的应用也就越来越广泛。 尤其是在国家安全等领域, 视 频监控系统更是起着不可替代的作用。 视频监控系统粗略的划分, 可以分为平台、 客户端、 前端三个部分。 前端就是摄 像头 +视频编码器, 客户端是用户监控、操作用的界面化工具, 而平台是整个业务逻辑 处理的核心模块, 客户端和前端通过平台联系起来。 可见, 平台和前端、 平台和客户 端之间都要有接口。 其中, 平台和前端之间的接口, 有很多标准的规范, 比如常用的 有中国电信全球眼规范、 onvif ( Open Network Video Interface Forum, 开放型网络视频 接口论坛) 规范等。 而平台和客户端之间的接口, 目前基本上都是私有接口。 随着用户应用模式的不断革新, 目前视频监控客户端也已呈现出多样性的特征。 目前比较主流的客户端类型, 有 C/S (Client/Server, 客户机 /服务器)模式客户端、 B/S (Browser/Server, 浏览器 /服务器)模式客户端、移动终端客户端三种。 这三种类型客 户端分别针对不同的应用场景和用户人群, 都不可缺少。 而作为视频监控平台, 则必 须要实现针对不同类型客户端的多种客户端接口。 这样不仅实现复杂, 而且容易出现 不同客户端接口之间因实现不一样导致用户感知不一致的问题。 发明内容 本发明要解决的技术问题是提供一种客户端接入方法及装置, 用以至少解决现有 技术中不同类型的客户端与监控平台之间因接口不同而导致的用户感知不一致, 用户 体验差的问题。 为解决上述技术问题, 一方面, 本发明实施例提供一种客户端接入方法, 包括:
通过同一类型的接口接收来自客户端的用户登录请求; 根据所述用户登录请求确 定所述用户对应的服务节点; 指示所述客户端登录到所述服务节点, 以使所述客户端 与所述服务节点进行通信。 可选的,所述客户端包括浏览器 /服务器 B/S模式客户端、客户机 /服务器 C/S模式 客户端以及移动终端客户端中的至少一种;所述同一类型的接口包括 HTTP (Hypertext transfer protocol, 基于超文本传输协议) 的接口, 所述用户登录请求中包括登录参数, 所述登录参数通过所述超文本传输协议的 URL (Uniform Resoure Locator,统一资源定 位符) 携带。 可选的, 所述根据所述用户登录请求确定所述用户对应的服务节点具体包括: 对 所述用户登录请求中的验证码信息进行校验; 在通过校验的情况下, 根据所述用户登 录请求确定所述用户对应的服务节点; 所述指示所述客户端登录到所述服务节点具体包括: 指示所述客户端重定向到所 述服务节点。 另一方面, 本发明的实施例还提供一种客户端接入方法, 包括: 通过同一类型的 接口向监控平台发送由客户端发起的用户登录请求; 根据所述监控平台的指示, 登录 到对应的服务节点, 以与所述服务节点进行通信。 可选的,所述客户端包括浏览器 /服务器 B/S模式客户端、客户机 /服务器 C/S模式 客户端以及移动终端客户端中的至少一种; 所述同一类型的接口包括基于超文本传输 协议 HTTP的接口, 所述用户登录请求中包括登录参数, 所述登录参数通过所述超文 本传输协议的统一资源定位符 URL携带。 又一方面, 本发明的实施例还提供一种客户端接入装置, 包括: 接收单元, 设置 为通过同一类型的接口接收来自客户端的用户登录请求; 确定单元, 设置为根据所述 用户登录请求确定所述用户对应的服务节点; 指示单元, 设置为指示所述客户端登录 到所述服务节点, 以使所述客户端与所述服务节点进行通信。 可选的,所述客户端包括浏览器 /服务器 B/S模式客户端、客户机 /服务器 C/S模式 客户端以及移动终端客户端中的至少一种; 所述同一类型的接口包括基于超文本传输 协议 HTTP的接口, 所述用户登录请求中包括登录参数, 所述登录参数通过所述超文 本传输协议的统一资源定位符 URL携带。
可选的, 所述确定单元具体设置为: 对所述用户登录请求中的验证码信息进行校 验; 在通过校验的情况下, 根据所述用户登录请求确定所述用户对应的服务节点; 所 述指示单元具体设置为: 指示所述客户端重定向到所述服务节点。 另一方面, 本发明的实施例还提供一种客户端接入装置, 包括: 发送单元, 设置 为通过同一类型的接口向监控平台发送由客户端发起的用户登录请求; 登录单元, 设 置为根据所述监控平台的指示, 登录到对应的服务节点, 以与所述服务节点进行通信。 可选的,所述客户端包括浏览器 /服务器 B/S模式客户端、客户机 /服务器 C/S模式 客户端以及移动终端客户端中的至少一种; 所述同一类型的接口包括基于超文本传输 协议 HTTP的接口, 所述用户登录请求中包括登录参数, 所述登录参数通过所述超文 本传输协议的统一资源定位符 URL携带。 本发明的实施例提供的客户端接入方法及装置, 监控平台能够通过同一类型的接 口接收来自客户端的用户登录请求, 并根据所述用户登录请求确定所述用户对应的服 务节点, 然后指示所述客户端登录到所述服务节点, 从而使所述客户端能够直接与所 述服务节点进行通信。 这样, 不同类型的客户端都能以同样的接口接入并找到对应的 服务节点, 无需经过其他设备进行消息转发即可直接与服务节点进行通信, 从而避免 了由于客户端与监控平台之间因接口不同而导致的用户感知不一致的问题, 大大提高 了用户体验。 附图说明 图 1是本发明实施例提供的客户端接入方法的一种流程图; 图 2是本发明实施例提供的客户端接入方法的另一种流程图; 图 3是本发明实施例提供的客户端接入方法的一种详细流程图; 图 4是本发明实施例提供的客户端接入方法的另一种详细流程图; 图 5是本发明实施例提供的客户端接入方法的又一种详细流程图; 图 6是本发明实施例提供的客户端接入装置的一种结构示意图; 图 7是本发明实施例提供的客户端接入装置的另一种结构示意图。
具体实施方式 以下结合附图对本发明进行详细说明。 应当理解, 此处所描述的具体实施例仅仅 用以解释本发明, 并不限定本发明。 如图 1所示, 本发明的实施例提供一种客户端接入方法, 基于监控平台, 该方法 可包括:
511 , 通过同一类型的接口接收来自客户端的用户登录请求;
512, 根据所述用户登录请求确定所述用户对应的服务节点;
513 ,指示所述客户端登录到所述服务节点, 以使所述客户端与所述服务节点进行 通信。 本发明的实施例提供的客户端接入方法, 能够通过同一类型的接口接收来自各种 客户端的用户登录请求, 并根据所述用户登录请求确定所述用户对应的服务节点, 然 后指示所述客户端登录到所述服务节点, 从而使所述客户端能够直接与所述服务节点 进行通信。 这样, 不同类型的客户端都能以同样的接口接入并找到对应的服务节点, 无需经过其他设备进行消息转发即可直接与服务节点进行通信, 从而避免了由于客户 端与监控平台之间因接口不同而导致的用户感知不一致的问题,大大提高了用户体验。 需要说明的是, 本实施例中, 监控平台可以是各种具有中央处理器功能的服务器 或分布式系统, 例如视频监控系统的中央操作平台或者大型门户网站的服务器等能够 为登录到该监控平台的客户端提供相应的信息服务。而客户端可以为 B/S模式客户端、 C/S 模式客户端以及移动终端客户端中的一种或多种; 当然还可以是其他可以登录到 监控平台的应用, 本发明的实施例对此不做限制。 下面以视频监控系统为例, 对本发明的客户端接入方法进行详细说明, 但本发明 提供的客户端接入方法不限于此。 具体而言, 为了实现以统一接口支持不同类型客户端接入, 首先需要确定接口类 型。 在上述三种主要的客户端类型中, B/S 模式客户端对接口类型要求最为严格, 因 为 B/S模式采用的是浏览器作为客户端, 而浏览器和服务端之间, 需要使用 HTTP协 议接口。 因此, 作为要将各种客户端都接入的同一类型的接口, 也要是基于 HTTP协 议的接口。 那么也就需要将 C/S模式的客户端通过 HTTP协议接口来实现。
监控平台是一个分布式的系统, 相应的, 客户端的接入也需要分布式的接入, 这 就涉及到业务分发。 常见针对 HTTP协议的分发方式, 都是基于消息的分发, 比如采 用 nginx的方案等。 所有的消息都要经由监控平台中的一个专门负责分发消息的分发 模块 (如 nginx, 即 "engine x", 一种高性能的 HTTP和 反向代理服务器) 来转发, 因此分发模块的负担将很重, 很可能成为整个系统的性能瓶颈。 为了避免上述问题, 本发明的实施例中, 基于 HTTP协议的接口打破了原有的登录和消息转发模式, 客户 端只在登录的时候, 到分发模块获取其接入的服务节点的地址, 后续消息交互就直接 在客户端与其接入的服务节点之间进行, 不再通过分发模块分发, 从而使 C/S模式客 户端、 B/S模式客户端、 移动终端客户端等全部都可以通过基于 HTTP协议的接口快 速高效地获得相应的信息服务, 从而有效避免了不同接口带来的用户感受不一致的问 题。 在基于超文本传输协议 HTTP的接口中, 用户登录请求中包括各种登录参数, 如 用户名、 密码等, 无论对于 C/S模式客户端、 B/S模式客户端还是移动终端客户端, 这些登录参数都可以通过超文本传输协议的统一资源定位符 URL携带。 为了加强安全性, 可选的, 在本发明的一个实施例中, 用户登录请求中还可包括 验证码信息, 一般在使用 B/S模式客户端时较常见, 这种情况下, 步骤 S12中, 根据 所述用户登录请求确定所述用户对应的服务节点具体可包括: 对所述验证码信息进行校验; 在通过校验的情况下, 根据所述用户登录请求确定所述用户对应的服务节点; 这样, 可以对用户的身份进行进一步验证核实, 只有登录参数中的验证码信息与 监控平台中预设的验证信息相符时, 才会去确定该用户对应的服务节点的地址, 否则 无需计算对应的服务节点, 从而既加强了安全性, 又节省了系统资源。 相应的, 步骤 S13中, 指示所述客户端登录到所述服务节点具体可包括: 指示所 述客户端重定向到所述服务节点。 本实施例中, 由于登录主页是由监控平台的分发模块提供的, 因此如果要支持动 态验证码, 该验证码也只能由分发模块生成, 后续的校验也只能由分发模块完成。 因 此, 在接收到用户登录请求之后, 监控平台的分发模块先对该验证码进行验证, 如果 通过验证, 监控平台会触发该用户登录到对应的服务节点上。
相应的, 如图 2所示, 本发明的实施例还提供一种客户端接入方法, 基于客户端, 该方法可包括:
521 , 通过同一类型的接口向监控平台发送由客户端发起的用户登录请求;
522, 根据所述监控平台的指示, 登录到对应的服务节点, 以与所述服务节点进行 通信。 本发明的实施例提供的客户端接入方法, 各种类型的客户端都能够通过同一类型 的接口向监控平台发送用户登录请求, 并能根据所述监控平台的指示登录到对应的服 务节点, 从而与所述服务节点进行通信, 这样, 不同类型的客户端都能以同样的接口 接入并找到对应的服务节点, 无需经过其他设备进行消息转发即可直接与服务节点进 行通信, 从而避免了由于客户端与监控平台之间因接口不同而导致的用户感知不一致 的问题, 大大提高了用户体验。 本发明实施例中, 只要是能够兼容 B/S模式客户端、 C/S模式客户端或移动终端 客户端等多种客户端的接口类型, 都可以实现本发明,本发明的实施例对此不作限制。 可选的, 在上述三种主要的客户端类型中, B/S 模式客户端对接口类型要求最为 严格, 因为 B/S模式采用的是浏览器作为客户端, 而浏览器和服务端之间, 需要使用 HTTP 协议接口。 因此, 作为要将各种客户端都接入的同一类型的接口, 也要是基于 HTTP协议的接口。 在基于超文本传输协议 HTTP的接口中, 用户登录请求中包括各种登录参数, 如 用户名、 密码等, 无论对于 C/S模式客户端、 B/S模式客户端还是移动终端客户端, 这些登录参数都可以通过超文本传输协议的统一资源定位符 URL携带。 下面通过具体的实施例, 对本发明提供的客户端接入方法进行详细说明。 如图 3所示, 在本发明的一个实施例中, 对于 B/S模式的客户端, 其接入方法包 括如下步骤:
5101.客户端浏览器访问分发模块的登录主页,该登录主页上需要用户输入用户名 和密码信息;
5102.用户输入用户名和密码后点击登录,此时客户端浏览器发送用户登录到监控 平台的分发模块, 该请求中携带用户信息;
S103.分发模块根据用户信息计算出该用户归属的服务节点;
5104.分发模块将服务节点的地址信息返回给客户端浏览器;
5105.客户端浏览器提交用户登录请求到服务节点;
5106.服务节点对用户信息进行鉴权, 决定是否登录成功;
5107.服务节点返回登录后的主页面给客户端浏览器。 如图 4所示, 在本发明的另一个实施例中, 监控平台对用户登录具有动态码校验 功能, 本实施例中, B/S客户端的接入方法可包括如下步骤:
5201.客户端浏览器访问分发模块的登录主页, 该登录主页上需要用户输入用户 名、 密码以及验证码信息;
5202.用户输入用户名、 密码及验证码后点击登录, 此时客户端浏览器发送用户登 录请求到分发模块;
5203.分发模块对验证码信息进行校验;
5204.如果验证码校验成功,则分发模块根据用户登录请求中的用户信息计算出该 用户归属的服务节点;
5205.分发模块返回自刷新页面到客户端浏览器进行重定向,将客户端浏览器重定 向到服务节点;
5206.通过重定向的触发, 客户端浏览器将用户登录请求提交到服务节点;
5207.服务节点对于用户登录请求中的验证码信息,发送消息到分发模块去进行校 验;
5208.如果验证码校验成功, 则服务节点继续对用户信息进行鉴权, 决定是否登录 成功;
5209.服务节点返回登录后的主页面给客户端浏览器。 以上两种 B/S模式客户端接入的具体实施方式, 其不同点在于是否支持动态验证 码。 两种实施方式相比较而言, 第一种实施方式的优点在于实现简单, 第二种实施方 式的优点在于能够支持动态验证码, 从而可以防范暴力破解。
如图 5所示, 在本发明的另一个实施例中, 对于 C/S模式的客户端和移动终端客 户端, 其接入方法具体可包括:
S301.用户在客户端上输入用户名和密码, 然后点击登录, 此时客户端发送用户登 录请求到分发模块, 该请求中携带用户信息; S302.分发模块根据用户信息计算出该用户归属的服务节点;
5303.分发模块将服务节点的地址信息返回给客户端;
5304.客户端提交用户登录请求到服务节点;
5305.服务节点对用户信息进行鉴权, 决定是否登录成功;
5306.服务节点返回登录结果给客户端。 相应的, 如图 6所示, 本发明的实施例还提供一种客户端接入装置 1, 可设置于 监控平台中, 该客户端接入装置 1可包括: 接收单元 10, 设置为通过同一类型的接口接收来自客户端的用户登录请求; 确定单元 12, 设置为根据所述用户登录请求确定所述用户对应的服务节点; 指示单元 14, 设置为指示所述客户端登录到所述服务节点, 以使所述客户端与所 述服务节点进行通信。 本发明的实施例提供的客户端接入装置 1, 接收单元 10能够通过同一类型的接口 接收来自各种客户端的用户登录请求,确定单元 12能够根据所述用户登录请求确定所 述用户对应的服务节点,指示单元 14能够指示所述客户端登录到所述服务节点,从而 使各所述客户端能够直接与所述服务节点进行通信。 这样, 不同类型的客户端都能以 同样的接口接入并找到对应的服务节点, 无需经过其他设备进行消息转发即可直接与 服务节点进行通信, 从而避免了由于客户端与监控平台之间因接口不同而导致的用户 感知不一致的问题, 大大提高了用户体验。 可选的,所述客户端包括浏览器 /服务器 B/S模式客户端、客户机 /服务器 C/S模式 客户端以及移动终端客户端中的至少一种。
可选的, 所述同一类型的接口可以为基于超文本传输协议 HTTP的接口, 所述用 户登录请求中可包括登录参数, 如用户名、 密码等, 该登录参数可以通过超文本传输 协议的统一资源定位符 URL携带。 可选的,所述用户登录请求中还可包括验证码信息,则确定单元 12可具体设置为: 对所述验证码信息进行校验; 在通过校验的情况下, 根据所述用户登录请求确定所述 用户对应的服务节点; 相应的, 指示单元 13可具体设置为: 指示所述客户端重定向到所述服务节点。 相应的, 如图 7所示, 本发明还提供一种客户端接入装置 2, 可以设置在用户个 人 PC机或者手机等移动终端上, 该装置 2可包括: 发送单元 20, 设置为通过同一类型的接口向监控平台发送由客户端发起的用户登 录请求; 登录单元 22, 设置为根据所述监控平台的指示, 登录到对应的服务节点, 以与所 述服务节点进行通信。 本发明的实施例提供的客户端接入装置 2, 各种类型的客户端的发送单元 20都能 够通过同一类型的接口向监控平台发送用户登录请求,登录单元 22能根据所述监控平 台的指示登录到对应的服务节点, 从而与所述服务节点进行通信, 这样, 不同类型的 客户端都能以同样的接口接入并找到对应的服务节点, 无需经过其他设备进行消息转 发即可直接与服务节点进行通信, 从而避免了由于客户端与监控平台之间因接口不同 而导致的用户感知不一致的问题, 大大提高了用户体验。 可选的,所述客户端包括浏览器 /服务器 B/S模式客户端、客户机 /服务器 C/S模式 客户端以及移动终端客户端中的至少一种。 可选的, 所述同一类型的接口包括基于超文本传输协议 HTTP的接口, 所述用户 登录请求中包括登录参数, 所述登录参数通过所述超文本传输协议的统一资源定位符 URL携带。 尽管为示例目的, 已经公开了本发明的优选实施例, 本领域的技术人员将意识到 各种改进、 增加和取代也是可能的, 因此, 本发明的范围应当不限于上述实施例。
工业实用性 如上所述,本发明实施例提供的一种客户端接入方法及装置,具有以下有益效果: 不同类型的客户端都能以同样的接口接入并找到对应的服务节点, 无需经过其他设备 进行消息转发即可直接与服务节点进行通信, 从而避免了由于客户端与监控平台之间 因接口不同而导致的用户感知不一致的问题, 大大提高了用户体验。
Claims
权 利 要 求 书 、 一种客户端接入方法, 包括:
通过同一类型的接口接收来自客户端的用户登录请求;
根据所述用户登录请求确定所述用户对应的服务节点;
指示所述客户端登录到所述服务节点, 以使所述客户端与所述服务节点进 行通信。 、 根据权利要求 1所述的方法, 其中,
所述客户端包括浏览器 /服务器 B/S模式客户端、 客户机 /服务器 C/S模式 客户端以及移动终端客户端中的至少一种;
所述同一类型的接口包括基于超文本传输协议 HTTP的接口, 所述用户登 录请求中包括登录参数, 所述登录参数通过所述超文本传输协议的统一资源定 位符 URL携带。 、 根据权利要求 1所述的方法, 其中, 所述根据所述用户登录请求确定所述用户 对应的服务节点具体包括:
对所述用户登录请求中的验证码信息进行校验;
在通过校验的情况下, 根据所述用户登录请求确定所述用户对应的服务节 点;
所述指示所述客户端登录到所述服务节点具体包括:
指示所述客户端重定向到所述服务节点。 、 一种客户端接入方法, 包括:
通过同一类型的接口向监控平台发送由客户端发起的用户登录请求; 根据所述监控平台的指示, 登录到对应的服务节点, 以与所述服务节点进 行通信。 、 根据权利要求 4所述的方法, 其中, 所述客户端包括浏览器 /服务器 B/S模式客户端、 客户机 /服务器 C/S模式 客户端以及移动终端客户端中的至少一种;
所述同一类型的接口包括基于超文本传输协议 HTTP的接口, 所述用户登 录请求中包括登录参数, 所述登录参数通过所述超文本传输协议的统一资源定 位符 URL携带。 、 一种客户端接入装置, 包括:
接收单元, 设置为通过同一类型的接口接收来自客户端的用户登录请求; 确定单元, 设置为根据所述用户登录请求确定所述用户对应的服务节点; 指示单元, 设置为指示所述客户端登录到所述服务节点, 以使所述客户端 与所述服务节点进行通信。 、 根据权利要求 6所述的装置, 其中, 所述客户端包括浏览器 /服务器 B/S模式客户端、 客户机 /服务器 C/S模式 客户端以及移动终端客户端中的至少一种;
所述同一类型的接口包括基于超文本传输协议 HTTP的接口, 所述用户登 录请求中包括登录参数, 所述登录参数通过所述超文本传输协议的统一资源定 位符 URL携带。 、 根据权利要求 6所述的装置, 其中, 所述确定单元具体设置为: 对所述用户登录请求中的验证码信息进行校验;
在通过校验的情况下, 根据所述用户登录请求确定所述用户对应的服务节 点;
所述指示单元具体设置为: 指示所述客户端重定向到所述服务节点。 、 一种客户端接入装置, 包括:
发送单元, 设置为通过同一类型的接口向监控平台发送由客户端发起的用 户登录请求;
登录单元, 设置为根据所述监控平台的指示, 登录到对应的服务节点, 以 与所述服务节点进行通信。 0、 根据权利要求 9所述的装置, 其中, 所述客户端包括浏览器 /服务器 B/S模式客户端、 客户机 /服务器 C/S模式 客户端以及移动终端客户端中的至少一种;
所述同一类型的接口包括基于超文本传输协议 HTTP的接口, 所述用户登 录请求中包括登录参数, 所述登录参数通过所述超文本传输协议的统一资源定 位符 URL携带。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410256818.X | 2014-06-11 | ||
CN201410256818.XA CN105187917A (zh) | 2014-06-11 | 2014-06-11 | 一种客户端接入方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015188453A1 true WO2015188453A1 (zh) | 2015-12-17 |
Family
ID=54832777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/084945 WO2015188453A1 (zh) | 2014-06-11 | 2014-08-21 | 一种客户端接入方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105187917A (zh) |
WO (1) | WO2015188453A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110427735A (zh) * | 2019-07-31 | 2019-11-08 | 上海联影医疗科技有限公司 | 一种校验方法、装置、服务器及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001080494A1 (en) * | 2000-04-15 | 2001-10-25 | Digitalnetbank Inc. | System and method for remote control and monitoring using internet |
CN2882157Y (zh) * | 2006-02-13 | 2007-03-21 | 中兴通讯股份有限公司 | 一种服务器/客户端架构下的流媒体浏览系统 |
CN101364886A (zh) * | 2008-09-18 | 2009-02-11 | 广州飞瑞敖电子科技有限公司 | 无线会议系统 |
CN102487324A (zh) * | 2010-12-02 | 2012-06-06 | 中国移动通信集团吉林有限公司 | 一种客户信息发送方法、装置及系统 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100417065C (zh) * | 2004-06-23 | 2008-09-03 | 北京邮电大学 | 基于混合架构和多安全机制的网络考试系统及其实现方法 |
CN100586169C (zh) * | 2007-12-25 | 2010-01-27 | 北京惠信博思技术有限公司 | 一种互动电视业务中认证方法 |
CN101431669A (zh) * | 2008-12-10 | 2009-05-13 | 北京中星微电子有限公司 | 视频监控系统及该系统中建立媒体流传输连接的控制方法 |
CN101741907A (zh) * | 2009-12-23 | 2010-06-16 | 金蝶软件(中国)有限公司 | 一种均衡服务器负载的方法、系统和主服务器 |
US8689304B2 (en) * | 2011-04-27 | 2014-04-01 | International Business Machines Corporation | Multiple independent authentications for enhanced security |
CN103414684A (zh) * | 2013-06-05 | 2013-11-27 | 华南理工大学 | 一种单点登录方法及系统 |
-
2014
- 2014-06-11 CN CN201410256818.XA patent/CN105187917A/zh active Pending
- 2014-08-21 WO PCT/CN2014/084945 patent/WO2015188453A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001080494A1 (en) * | 2000-04-15 | 2001-10-25 | Digitalnetbank Inc. | System and method for remote control and monitoring using internet |
CN2882157Y (zh) * | 2006-02-13 | 2007-03-21 | 中兴通讯股份有限公司 | 一种服务器/客户端架构下的流媒体浏览系统 |
CN101364886A (zh) * | 2008-09-18 | 2009-02-11 | 广州飞瑞敖电子科技有限公司 | 无线会议系统 |
CN102487324A (zh) * | 2010-12-02 | 2012-06-06 | 中国移动通信集团吉林有限公司 | 一种客户信息发送方法、装置及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN105187917A (zh) | 2015-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109067914B (zh) | Web服务的代理方法、装置、设备及存储介质 | |
US10693856B2 (en) | Automatic authentication switching in online live chat applications | |
US8448233B2 (en) | Dealing with web attacks using cryptographically signed HTTP cookies | |
US11140162B2 (en) | Response method and system in virtual network computing authentication, and proxy server | |
JP5933827B2 (ja) | 機器同士の間の通信セッション転送 | |
EP2883340B1 (en) | Authorization method, apparatus, and system | |
US9584615B2 (en) | Redirecting access requests to an authorized server system for a cloud service | |
US8893255B1 (en) | Device authentication using device-specific proxy addresses | |
CN102368768B (zh) | 认证方法、设备、系统及认证服务器 | |
WO2017024842A1 (zh) | 一种上网认证方法及客户端、计算机存储介质 | |
EP3286893A1 (en) | Secure transmission of a session identifier during service authentication | |
CN106559405B (zh) | 一种Portal认证方法和设备 | |
WO2014201931A1 (zh) | 资源处理方法和站点服务器 | |
CN110365779B (zh) | 一种通信控制的方法、装置、电子设备和存储介质 | |
JP2007310512A (ja) | 通信システム、サービス提供サーバおよびユーザ認証サーバ | |
WO2015196908A1 (zh) | 业务处理方法、终端、服务器及系统 | |
CN110351379B (zh) | 一种通信控制的方法、装置、电子设备和存储介质 | |
CN110505188B (zh) | 一种终端认证方法、相关设备和认证系统 | |
CN101656609A (zh) | 一种单点登录方法、系统及装置 | |
WO2017177691A1 (zh) | 一种入口认证方法和系统 | |
US20170149916A1 (en) | Page Push Method, Device and Server, and Centralized Network Management Controller | |
WO2015184410A1 (en) | Domain trusted video network | |
CN104837134B (zh) | 一种Web认证用户登录方法、设备和系统 | |
CN103634792B (zh) | Wlan网络用户状态监测的方法、装置、客户端及系统 | |
CN104936177A (zh) | 一种接入认证方法及接入认证系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14894690 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 14894690 Country of ref document: EP Kind code of ref document: A1 |