CN115695036A - Method and device for realizing tree topology authentication system group - Google Patents
Method and device for realizing tree topology authentication system group Download PDFInfo
- Publication number
- CN115695036A CN115695036A CN202211403760.8A CN202211403760A CN115695036A CN 115695036 A CN115695036 A CN 115695036A CN 202211403760 A CN202211403760 A CN 202211403760A CN 115695036 A CN115695036 A CN 115695036A
- Authority
- CN
- China
- Prior art keywords
- authentication system
- application
- party
- local
- authentication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
Abstract
Description
技术领域technical field
本发明涉及信息化系统技术领域,尤指一种树状拓扑认证系统群的实现方法和装置。The invention relates to the technical field of information systems, in particular to a method and device for realizing a tree topology authentication system group.
背景技术Background technique
随着各行各业信息化系统的复杂度不断提升,业务应用软件根据高内聚低耦合的原则,逐步被拆分为多个子应用系统,各应用系统均需要对用户进行认证鉴权,统一认证服务就是不可或缺的一部分。在各子应用系统集成统一登录认证系统后,使用户在访问不同应用时只需要登陆一次,即可访问所有系统,避免了重复登录,达到更好的用户体验。As the complexity of information systems in various industries continues to increase, business application software is gradually split into multiple sub-application systems based on the principle of high cohesion and low coupling. Each application system needs to authenticate users and perform unified authentication. Service is an integral part. After each sub-application system integrates a unified login authentication system, users only need to log in once to access all systems when accessing different applications, avoiding repeated logins and achieving a better user experience.
当前应用系统的统一认证,普遍使用jasig-认证系统(Central AuthenticeService)中央单点统一认证。如图2所示:用户第一次访问应用通过认证系统中央认证登录过程。如图3所示:用户已登陆过认证系统而访问另一应用的过程。认证系统的基本认证过程是:The unified authentication of the current application system generally uses the central single-point unified authentication of the jasig-authentication system (Central AuthenticeService). As shown in Figure 2: the user's first access to the application passes the central authentication login process of the authentication system. As shown in Figure 3: the process in which the user has logged in to the authentication system and accesses another application. The basic authentication process of the authentication system is:
1、用户访问应用服务器A,由于此时并未授权,应用服务器A引导用户直接访问认证服务器1. The user accesses the application server A. Since the user is not authorized at this time, the application server A guides the user to directly access the authentication server
2、认证服务器发现用户并未登陆过,要求用户登录。用户登陆后发放TGT(TicketGranted Ticket),即授权票据,表明用户已经获得了认证服务的认证授权。2. The authentication server finds that the user has not logged in, and requires the user to log in. After the user logs in, a TGT (TicketGranted Ticket), which is an authorization ticket, is issued, indicating that the user has obtained the authentication authorization of the authentication service.
3、认证服务器发现用户原先是先访问的某应用服务器A,会使用用户的TGT,签发针对上述应用服务器A的ST(Service Ticket),即服务票据,并返还给用户。3. When the authentication server discovers that the user is visiting an application server A first, it will use the user's TGT to issue a ST (Service Ticket) for the above application server A, that is, a service ticket, and return it to the user.
4、用户拿到这个ST后再次访问上述应用服务器A。4. After obtaining the ST, the user visits the above-mentioned application server A again.
5、上述应用服务器A发现用户有ST,便拿着ST向认证服务器校验该票据的有效性,即询问认证服务器是否是为本身这个应用服务所签发。5. The above-mentioned application server A discovers that the user has an ST, and then takes the ST to verify the validity of the ticket to the authentication server, that is, asks the authentication server whether it is issued for its own application service.
6、认证服务器返回ST校验结果给上述应用服务器A,应用服务器A将用户会话置于受信任队列,向用户提供后续应用服务。6. The authentication server returns the ST verification result to the above-mentioned application server A, and the application server A puts the user session in the trusted queue, and provides subsequent application services to the user.
7、此时,用户再次访问另一个应用系统B时,由于此时用户会话不在B的受信任列表里,B依然会引导用户直接访问认证服务器。7. At this time, when the user visits another application system B again, since the user session is not in B's trusted list at this time, B will still guide the user to directly access the authentication server.
8、此时,认证服务器发现用户已经存在TGT,表示用户已经登陆过,直接会针对应用系统B发放另一个新的ST,返回给用户,用户即可通过该ST去访问应用服务器B,避免了二次登陆。8. At this time, the authentication server finds that the user already has a TGT, indicating that the user has already logged in, and will directly issue another new ST to the application system B and return it to the user. The user can access the application server B through this ST, avoiding Second login.
从上述流程可以看出,一旦两个应用服务都对接好认证系统系统后,认证系统系统可以实现让用户登陆一次,即可跨应用获取资源的效果。认证系统由于向内封闭票据的认证和签发过程,对外只能获取到一个已绑定特定应用服务的ServiceTicket,且ST仅能够被校验一次,这使得其签发的票据就如一张特定电影院的电影票,一旦进入这个特定电影院的校验过程,随即失效,是非常安全的,这是其认证业务上的优点。但针对认证系统中央统一认证来说,其票据的缓存和发放是集中在认证服务器的,一旦这个服务器的票据缓存节点或认证节点出现异常,会导致认证系统出现“单点故障”,这是其稳定性的缺点。It can be seen from the above process that once the two application services are connected to the authentication system, the authentication system can achieve the effect of allowing the user to log in once to obtain resources across applications. Since the authentication system closes the ticket authentication and issuance process inwardly, it can only obtain a ServiceTicket bound to a specific application service externally, and the ST can only be verified once, which makes the ticket issued by it just like a movie in a specific cinema Once the ticket enters the verification process of this specific cinema, it will be invalid immediately, and it is very safe, which is the advantage of its authentication business. However, for the central unified authentication of the authentication system, the cache and issuance of tickets are concentrated on the authentication server. Once the ticket cache node or authentication node of this server is abnormal, it will cause a "single point of failure" in the authentication system. The disadvantage of stability.
同时,也正是因为认证系统的认证内闭,使得对外开放包容进行级联式登录认证受到限制。例如在某生产环境下,已经存在他方的统一认证服务认证系统,需要我方认证系统认证服务去集成的时候,两个认证系统服务针对同一个浏览器,仅能识别自己签发的TGT票据,无法形成“通兑TGT票据”。在许多历史实战场景中,往往需要他方认证系统认证被迫直接传递用户名和密码等信息给我方认证系统系统后形成我方认可的TGT票据,以实现两个认证系统下应用系统的无缝访问。虽然这种数据传输是经过加密的,但依然会存在一定的安全隐患,且认证系统的单点故障导致的不稳定性依然会使得业务中断。At the same time, it is precisely because of the internal closure of the authentication system that the opening and inclusive cascading login authentication is restricted. For example, in a certain production environment, there already exists another party's unified authentication service authentication system, and when our authentication system authentication service needs to be integrated, the two authentication system services are aimed at the same browser, and can only identify the TGT ticket issued by itself, and cannot Form "TGT bills for universal exchange". In many historical actual combat scenarios, it is often necessary for the authentication of other authentication systems to be forced to directly pass information such as user names and passwords to our authentication system to form a TGT ticket recognized by our own, so as to achieve seamless access to application systems under the two authentication systems. . Although this kind of data transmission is encrypted, there will still be certain security risks, and the instability caused by the single point of failure of the authentication system will still cause business interruption.
发明内容Contents of the invention
本发明提供一种树状拓扑认证系统群的实现方法和装置,克服上述问题。The invention provides a method and device for realizing a tree topology authentication system group to overcome the above-mentioned problems.
本发明提供的技术方案如下:The technical scheme provided by the invention is as follows:
一方面,本发明提供一种树状拓扑认证系统群的实现方法,包括:On the one hand, the present invention provides a method for realizing a tree topology authentication system group, including:
当本机认证系统接收到应用的认证访问信号时,判断是否存在第三方认证系统;When the local authentication system receives the application's authentication access signal, determine whether there is a third-party authentication system;
若存在第三方认证系统,则所述本机认证系统要求浏览器迁转所述应用跳转第三方认证系统;If there is a third-party authentication system, the local authentication system requires the browser to transfer the application to jump to the third-party authentication system;
当所述应用经所述浏览器向所述第三方认证系统提供登录凭证且登录成功后,所述本机认证系统获取所述第三方签发的ST;When the application provides login credentials to the third-party authentication system through the browser and the login is successful, the local authentication system obtains the ST issued by the third party;
当所述本机认证系统向所述第三方认证系统校验所述ST后,生成所述本机认证系统的TGT并与所述第三方的认证系统的ST进行绑定;After the local authentication system verifies the ST to the third-party authentication system, generate the TGT of the local authentication system and bind it to the ST of the third-party authentication system;
通过所述本机认证系统基于所述本机系统的TGT向所述应用签发应用侧ST;issuing an application-side ST to the application through the native authentication system based on the TGT of the native system;
当所述应用获取到所述本机认证系统的应用侧ST向所述本机认证系统发起校验且成功后,为所述浏览器提供服务。When the application acquires that the application-side ST of the local authentication system initiates a verification to the local authentication system and succeeds, it provides services for the browser.
在一些实施例中,还包括:当所述本机认证系统作为所述应用的中央认证系统时,对所述应用直接进行认证。In some embodiments, the method further includes: when the local authentication system serves as the central authentication system of the application, directly authenticate the application.
在一些实施例中,还包括:当所述本机认证系统以所述第三方认证系统为中央认证系统时,所述本机认证系统为应用系统与所述第三方认证系统进行对接。In some embodiments, the method further includes: when the local authentication system uses the third-party authentication system as a central authentication system, the local authentication system is an application system to interface with the third-party authentication system.
在一些实施例中,还包括:当所述第三方认证系统登出所述应用的认证流程后,所述本机认证系统的TGT与绑定的所述第三方的ST同步注销。In some embodiments, the method further includes: after the third-party authentication system logs out of the authentication process of the application, the TGT of the local authentication system and the bound ST of the third party are synchronously logged out.
在一些实施例中,包括:当存在一个以上的认证服务时,所述本机认证系统进行单向的认证级联。In some embodiments, it includes: when there is more than one authentication service, the local authentication system performs unidirectional authentication cascading.
在一些实施例中,本发明还提供一种树状拓扑认证系统群的实现装置,包括:多个本机认证系统,每个所述本机认证系统包括:In some embodiments, the present invention also provides a device for implementing a tree topology authentication system group, including: a plurality of local authentication systems, each of which includes:
判断模块,用于当接收到本机认证系统接收到应用的认证访问信号时,判断是否存在第三方认证系统;A judging module, configured to judge whether there is a third-party authentication system when the local authentication system receives an application authentication access signal;
迁转模块,用于若不存在第三方认证系统,则所述本机认证系统要求浏览器提供登录凭证并迁转所述应用跳转第三方认证系统;The transfer module is used for if there is no third-party authentication system, the local authentication system requires the browser to provide login credentials and transfers the application to jump to the third-party authentication system;
获取模块,用于当所述应用经所述浏览器向所述第三方认证系统提供登录凭证且登录成功后,所述本机认证系统获取所述第三方签发的ST;An obtaining module, configured to obtain the ST issued by the third party by the local authentication system when the application provides login credentials to the third-party authentication system through the browser and the login is successful;
绑定模块,用于当所述本机认证系统向所述第三方认证系统校验所述ST后,生成所述本机认证系统的TGT并与所述第三方的认证系统的ST进行绑定;A binding module, configured to generate a TGT of the local authentication system and bind it to the ST of the third-party authentication system after the local authentication system verifies the ST to the third-party authentication system ;
签发模块,用于通过所述本机认证系统基于所述本机系统的TGT向所述应用签发应用侧ST;An issuing module, configured to issue an application-side ST to the application through the native authentication system based on the TGT of the native system;
检验模块,用于当所述应用获取到所述本机认证系统的应用侧ST向所述本机认证系统发起校验且成功后,为所述浏览器提供服务。The verification module is configured to provide services for the browser when the application acquires that the application-side ST of the local authentication system initiates a verification to the local authentication system and succeeds.
在一些实施例中,所述本机认证系统还用于当所述本机认证系统作为所述应用的中央认证系统时,对所述应用直接进行认证。In some embodiments, the local authentication system is further configured to directly authenticate the application when the local authentication system serves as a central authentication system for the application.
在一些实施例中,所述本机认证系统还用于当所述本机认证系统以所述第三方认证系统为中央认证系统时,所述本机认证系统为应用系统与所述第三方认证系统进行对接。In some embodiments, the local authentication system is further configured to: when the local authentication system uses the third-party authentication system as the central authentication system, the local authentication system is the application system and the third-party authentication The system is connected.
在一些实施例中,所述本机认证系统还用于当所述第三方认证系统登出所述应用的认证流程后,所述本机认证系统的TGT与绑定的所述第三方的ST同步注销。In some embodiments, the local authentication system is further configured to, after the third-party authentication system logs out of the authentication process of the application, bind the TGT of the native authentication system to the ST of the third party Synchronous logout.
在一些实施例中,所述本机认证系统还用于当存在一个以上的认证服务时,所述本机认证系统进行单向的认证级联。In some embodiments, the local authentication system is further configured to perform unidirectional authentication cascading when there is more than one authentication service.
本发明提供的一种树状拓扑认证系统群的实现方法和装置至少具有以下一种有益效果:The realization method and device of a tree topology authentication system group provided by the present invention have at least one of the following beneficial effects:
本发明可以实现因一个认证网络群里的某个节点断链后,依然可以实现基于其它网络中的节点认证,基本消灭单点登录中的“单点”故障,做到“各自为证”,又“相互联通”。The present invention can realize node authentication based on other networks after a certain node in an authentication network group is disconnected, basically eliminates the "single point" failure in single sign-on, and achieves "each is a certificate", Also "interconnected".
本发明可以安全的向三方认证系统进行集成组网。The invention can securely carry out integrated networking to the three-party authentication system.
本发明可以实现类似于“集团组织认证中心-子公司分公司认证中心-各部门业务认证中心“的这种三级(多级)认证系统挂接,彼此授信,却可以各自授权的场景。The present invention can realize the scenario that the three-level (multi-level) authentication systems are connected to each other and authorized independently, which is similar to "group organization authentication center-subsidiary branch company authentication center-department business authentication center".
附图说明Description of drawings
下面结合附图和具体实施方式对本发明作进一步详细说明:Below in conjunction with accompanying drawing and specific embodiment the present invention is described in further detail:
图1是本发明的一种树状拓扑认证系统群的实现方法的一个实施例的示意图;Fig. 1 is the schematic diagram of an embodiment of the realization method of a kind of tree topological authentication system group of the present invention;
图2是用户第一次访问应用通过认证系统中央认证登录过程的示意图;Fig. 2 is a schematic diagram of the user's first access to the application through the central authentication login process of the authentication system;
图3是用户已登陆过认证系统而访问另一应用的过程的示意图;Fig. 3 is a schematic diagram of a process in which a user has logged in to the authentication system and accesses another application;
图4是改造前的单一认证系统场景示意的示意图;Figure 4 is a schematic diagram of a single authentication system scenario before transformation;
图5是本发明的tas体系下多认证系统经改造后的场景示意的示意图;Fig. 5 is a schematic diagram of a modified scene of a multi-authentication system under the tas system of the present invention;
图6是本发明的认证系统改造后用户第一次访问我方认证系统下某应用的登录过程示意图。Fig. 6 is a schematic diagram of the login process of a user accessing an application under our authentication system for the first time after the authentication system of the present invention is transformed.
具体实施方式Detailed ways
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
为使图面简洁,各图中只示意性地表示出了与本发明相关的部分,它们并不代表其作为产品的实际结构。另外,以使图面简洁便于理解,在有些图中具有相同结构或功能的部件,仅示意性地绘示了其中的一个,或仅标出了其中的一个。在本文中,“一个”不仅表示“仅此一个”,也可以表示“多于一个”的情形。In order to make the drawing concise, each drawing only schematically shows the parts related to the present invention, and they do not represent the actual structure of the product. In addition, to make the drawings concise and easy to understand, in some drawings, only one of the components having the same structure or function is schematically shown, or only one of them is marked. Herein, "a" not only means "only one", but also means "more than one".
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .
在本文中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In this article, it needs to be explained that unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection, or Integral connection; it can be mechanical connection or electrical connection; it can be direct connection or indirect connection through an intermediary, and it can be the internal communication of two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention in specific situations.
另外,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the present application, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对照附图说明本发明的具体实施方式。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,并获得其他的实施方式。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation manners of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other accompanying drawings based on these drawings and obtain other implementations.
在一个实施例中,如图1所示,一方面,本发明提供一种树状拓扑认证系统群的实现方法,包括:In one embodiment, as shown in FIG. 1, on the one hand, the present invention provides a method for implementing a tree topology authentication system group, including:
S101当本机认证系统接收到应用的认证访问信号时,判断是否存在第三方认证系统;S101 When the local authentication system receives the authentication access signal of the application, judge whether there is a third-party authentication system;
S102若存在第三方认证系统,则所述本机认证系统要求浏览器迁转所述应用跳转第三方认证系统;S102 If there is a third-party authentication system, the local authentication system requires the browser to transfer the application to jump to the third-party authentication system;
S103当所述应用经所述浏览器向所述第三方认证系统提供登录凭证且登录成功后,所述本机认证系统获取所述第三方签发的ST;S103 When the application provides login credentials to the third-party authentication system through the browser and the login is successful, the local authentication system obtains the ST issued by the third party;
S104当所述本机认证系统向所述第三方认证系统校验所述ST后,生成所述本机认证系统的TGT并与所述第三方的认证系统的ST进行绑定;S104 After the local authentication system verifies the ST to the third-party authentication system, generate a TGT of the local authentication system and bind it to the ST of the third-party authentication system;
S105通过所述本机认证系统基于所述本机系统的TGT向所述应用签发应用侧ST;S105 Issue an application-side ST to the application based on the TGT of the local system through the local authentication system;
S106当所述应用获取到所述本机认证系统的应用侧ST向所述本机认证系统发起校验且成功后,为所述浏览器提供服务。S106 After the application acquires that the ST on the application side of the local authentication system initiates a verification to the local authentication system and succeeds, provide services for the browser.
另外,若不存在第三方认证系统,则所述本级认证系统要求浏览器提供登录凭证并认证。In addition, if there is no third-party authentication system, the authentication system at this level requires the browser to provide login credentials and authenticate.
示例性的,针对上述中央认证系统存在的特点,我们发现原耶鲁大学提出的jasig开源工程,对cas基于票据的认证流程实现是相当安全的,这个特性是其最大优势。而在cas的原始流程中,面对三方独立认证系统,因为多个认证系统并存时相互没有授权,都当自己为唯一授权机构,彼此没有信任机制,导致原有流程不够开放。即背景信息中表述的认证系统都是自闭的,cas中第一个c是center的代表,意为中央或者中心性,并不向他方认证系统开放。Exemplarily, in view of the characteristics of the above-mentioned central authentication system, we found that the jasig open source project proposed by the original Yale University is quite safe for the implementation of the cas ticket-based authentication process, and this feature is its biggest advantage. However, in the original process of cas, faced with the three-party independent authentication system, because multiple authentication systems coexist without mutual authorization, they all regard themselves as the only authorized authority, and there is no trust mechanism for each other, resulting in the original process not being open enough. That is, the authentication systems described in the background information are all self-closing. The first c in cas is a representative of center, which means centrality or centrality, and is not open to other authentication systems.
为此,我们发明并公开一种改造方式,以改良其流程的对外包容性,从而实现某些特定需求场景。To this end, we have invented and disclosed a modification method to improve the external inclusiveness of its process, so as to realize certain specific demand scenarios.
例如现行存在两个cas认证服务,一个是“他方”提供,一个是“我方”提供,他们彼此是无法互融的,我们做如下改造,其基本过程:For example, there are currently two cas authentication services, one is provided by "other party" and the other is provided by "our party". They cannot be integrated with each other. We will make the following transformation, the basic process:
1、将我方cas服务依然当做我方各内部应用的认证中心,这是cas系统原本就具备的能力;同时,我们将我方cas对他方cas当做一个普通的应用系统,与他方cas进行对接,对接方式见2。1. Our cas service is still regarded as the authentication center of our internal applications, which is the original capability of the cas system; at the same time, we regard our cas and other cas as an ordinary application system to connect with other cas , see 2 for the connection method.
2、当某应用迁转跳转我方cas发起认证时,我方cas先行判断他方cas是否存在,若存在,执行3;若不存在,则我方cas直接要求浏览器提供登录凭证,进而保留原有的cas认证流程.2. When an application transfers to our cas to initiate authentication, our cas first judges whether the other cas exists, and if so, execute 3; if not, our cas directly asks the browser to provide login credentials, and then saves The original cas authentication process.
3、我方cas(作为他方cas的一个应用系统)迁转用户直接跳转他方cas,用户经浏览器向他方cas提供登录凭证,登录成功后,按照他方cas的认证流程,我方cas将获取到他方cas签发的ST。3. Our cas (as an application system of other cas) transfers the user to directly jump to the other cas. The user provides login credentials to the other cas through the browser. After successful login, our cas will obtain the authentication process according to the authentication process of the other cas To the ST issued by other cas.
4、我方cas向他方cas校验该ST后,生成我方cas的TGT并与他方cas的ST进行绑定(将来一旦他方cas登出,我方TGT会根据绑定的他方ST同步注销)4. After our cas verifies the ST to the other cas, generate the TGT of our cas and bind it with the ST of the other cas (in the future, once the other cas logs out, our TGT will be synchronously logged out according to the bound ST of the other party)
5、我方cas基于TGT向2中访问的某应用签发应用侧ST。5. Our cas issues application-side ST to an application accessed in 2 based on TGT.
6、某应用获取到我方cas的ST向我方cas发起校验,成功后提供服务。6. An application obtains the ST of our cas and initiates a verification to our cas, and provides services after success.
改造前的cas是一个星状认证关系,而认证服务器是这个星状拓扑的中心,称为Centrol中央认证服务。The cas before transformation is a star-shaped authentication relationship, and the authentication server is the center of this star-shaped topology, called Central Central Authentication Service.
如图4所示,改造前的单一cas场景示意(箭头表示认证对接方向)。As shown in Figure 4, the scene of a single cas before transformation is shown (the arrow indicates the direction of authentication connection).
而本发明改造后的cas系统,由于其同时具有Server(面向应用系统)和Client(面向他方cas)的双重身份,当存在多于1个cas服务的时候,可以进行单向的认证级联,就如单项矢量组成的有向图可以串行或者树形组合,我们把这种单向认证级联暂定为“挂接”。And the cas system after the transformation of the present invention, because it has the dual identity of Server (facing the application system) and Client (facing other party's cas) at the same time, when there is more than 1 cas service, can carry out unidirectional authentication cascading, Just as directed graphs composed of single-entry vectors can be combined serially or tree-like, we tentatively designate this one-way authentication cascade as "hook".
例如,本发明部署多个cas认证系统服务,除了选择一个cas不挂接任何其他cas外,其余cas系统均只挂接一个cas服务,这样对整个认证体系可以形成一个树状认证拓扑,我们给它起名叫做TAS(Tree-like Authenticate Service)树状认证系统,我们把运行TAS形成的整个体系叫做“认证树系统群”。For example, the present invention deploys a plurality of cas authentication system services, except that one cas is not connected to any other cas, and the other cas systems are only connected to one cas service, so that a tree-like authentication topology can be formed for the entire authentication system, and we give It is named TAS (Tree-like Authenticate Service) tree-like authentication system, and we call the whole system formed by running TAS "authentication tree system group".
如图5所示:tas体系下多cas经改造后的场景示意(箭头表示认证对接方向)。As shown in Figure 5: Schematic diagram of the modified multi-cas under the tas system (the arrow indicates the direction of authentication docking).
此时,认证客户端如果可以同时保持几个认证节点的配置,一旦认证系统群中某个节点损坏,可以通过其它网群节点认证,即实现了中央认证服务的热备效果。At this time, if the authentication client can maintain the configuration of several authentication nodes at the same time, once a node in the authentication system group is damaged, it can pass the authentication of other network group nodes, which realizes the hot standby effect of the central authentication service.
同时,如果认证网中某个节点并非我们主导建设,我们依然可以基于它的认证方式进行组网,实现我方向他三方的认证,落地特定场景的认证需求。At the same time, if a node in the authentication network is not our leading construction, we can still build a network based on its authentication method, realize the authentication of our party to other parties, and implement the authentication requirements of specific scenarios.
本发明可以实现因一个认证网络群里的某个节点断链后,依然可以实现基于其它网络中的节点认证,基本消灭单点登录中的“单点”故障,做到“各自为证”,又“相互联通”。本发明可以安全的向三方认证系统进行集成组网。本发明可以实现类似于“集团组织认证中心-子公司分公司认证中心-各部门业务认证中心“的这种三级(多级)认证系统挂接,彼此授信,却可以各自授权的场景。The present invention can realize node authentication based on other networks after a certain node in an authentication network group is disconnected, basically eliminates the "single point" failure in single sign-on, and achieves "each is a certificate", Also "interconnected". The invention can securely carry out integrated networking to the three-party authentication system. The present invention can realize the scenario that the three-level (multi-level) authentication systems are connected to each other and authorized independently, which is similar to "group organization authentication center-subsidiary branch company authentication center-department business authentication center".
在一个实施例中,还包括:当所述本机认证系统作为所述应用的中央认证系统时,对所述应用直接进行认证。In one embodiment, the method further includes: when the local authentication system serves as the central authentication system of the application, directly authenticate the application.
在一个实施例中,还包括:当所述本机认证系统以所述第三方认证系统为中央认证系统时,所述本机认证系统为应用系统与所述第三方认证系统进行对接。In one embodiment, the method further includes: when the local authentication system uses the third-party authentication system as a central authentication system, the local authentication system is an application system to interface with the third-party authentication system.
每个认证中心可以作为中央CAS也可以作为子CAS,通过判断是否存在第三方CAS确定自己是中央CAS还是子CAS。Each authentication center can act as a central CAS or a sub-CAS, and can determine whether it is a central CAS or a sub-CAS by judging whether there is a third-party CAS.
比如那个实施例,我如果给一个省部署,我给省厅的和地市的系统部署的cas都是一样的。只不过地市的cas会挂到省厅的cas服务下面。然后省厅的cas访问的用户权限数据是省厅的数据平台,地市的是访问自己平台。省里原则上涵盖所有地市的数据,所以对于本市的用户登录,数据是通的。而如果异地城市打开本市系统的时候,它会认为是“游客特权”,这个时候市内系统面向游客有什么功能开放什么功能就行了,但是不用“再次登录”。For example, in that embodiment, if I deploy to a province, the cas I deploy to the provincial and municipal systems are the same. It's just that the cas of the prefecture and city will be linked to the cas service of the provincial government. Then the user authority data accessed by the cas of the provincial department is the data platform of the provincial department, and the data platform of the prefecture-level city is to access its own platform. In principle, the province covers the data of all prefectures and cities, so for the user login in this city, the data is available. And if a city in another city opens its own system, it will consider it a "tourist privilege". At this time, it is enough to open any function of the city's system for tourists, but there is no need to "login again".
数据上,子cas能够鉴权的数据,父cas一定都能涵盖,反之不一定,对于父cas鉴权通过而回到子级cas不认识的用户,就是访客。这个恰恰解决了一个话题,比如A市的人登录A市系统,通过A市cas给他授权可能是“管理员”。他到B市的时候,B市cas不会让他再次登陆的,但已经给他一个“游客”身份。他可以无缝去访问B市系统了,整个过程通过省级Cas跳了一次,但是他无法察觉。三个cas这样级联后,就能达到这个效果。In terms of data, the data that can be authenticated by the child cas must be covered by the parent cas, and vice versa. For users who pass the authentication of the parent cas but return to the child cas and do not know them, they are visitors. This just solves a topic. For example, when a person in city A logs in to the system of city A, he may be authorized as an "administrator" through the cas of city A. When he arrived in city B, the cas in city B would not allow him to log in again, but had already given him a "tourist" status. He was able to seamlessly access the city B system, and the whole process skipped through the provincial Cas once, but he couldn't detect it. After the three cas are cascaded in this way, this effect can be achieved.
在传统技术中,A市的人去访问B市系统的话,必须要到B市再去登陆一次,因为A和B两个cas是独立的。In the traditional technology, if people in city A want to access the system of city B, they must go to city B to log in again, because the two cas of A and B are independent.
在一个实施例中,还包括:当所述第三方认证系统登出所述应用的认证流程后,所述本机认证系统的TGT与绑定的所述第三方的ST同步注销。In one embodiment, the method further includes: after the third-party authentication system logs out of the authentication process of the application, the TGT of the local authentication system and the bound ST of the third party are synchronously logged out.
在一个实施例中,包括:当存在一个以上的认证服务时,所述本机认证系统进行单向的认证级联。In one embodiment, it includes: when there is more than one authentication service, the local authentication system performs unidirectional authentication cascading.
在一个实施例中,本发明还提供一种树状拓扑认证系统群的实现装置,包括:多个本机认证系统,每个所述本机认证系统包括:In one embodiment, the present invention also provides a device for implementing a tree topology authentication system group, including: a plurality of local authentication systems, each of which includes:
判断模块,用于当接收到本机认证系统接收到应用的认证访问信号时,判断是否存在第三方认证系统;A judging module, configured to judge whether there is a third-party authentication system when the local authentication system receives an application authentication access signal;
迁转模块,用于若不存在第三方认证系统,则所述本机认证系统要求浏览器提供登录凭证并迁转所述应用跳转第三方认证系统;The transfer module is used for if there is no third-party authentication system, the local authentication system requires the browser to provide login credentials and transfers the application to jump to the third-party authentication system;
获取模块,用于当所述应用经所述浏览器向所述第三方认证系统提供登录凭证且登录成功后,所述本机认证系统获取所述第三方签发的ST;An obtaining module, configured to obtain the ST issued by the third party by the local authentication system when the application provides login credentials to the third-party authentication system through the browser and the login is successful;
绑定模块,用于当所述本机认证系统向所述第三方认证系统校验所述ST后,生成所述本机认证系统的TGT并与所述第三方的认证系统的ST进行绑定;A binding module, configured to generate a TGT of the local authentication system and bind it to the ST of the third-party authentication system after the local authentication system verifies the ST to the third-party authentication system ;
签发模块,用于通过所述本机认证系统基于所述本机系统的TGT向所述应用签发应用侧ST;An issuing module, configured to issue an application-side ST to the application through the native authentication system based on the TGT of the native system;
检验模块,用于当所述应用获取到所述本机认证系统的应用侧ST向所述本机认证系统发起校验且成功后,为所述浏览器提供服务。The verification module is configured to provide services for the browser when the application acquires that the application-side ST of the local authentication system initiates a verification to the local authentication system and succeeds.
在一个实施例中,所述本机认证系统还用于当所述本机认证系统作为所述应用的中央认证系统时,对所述应用直接进行认证。In one embodiment, the local authentication system is further configured to directly authenticate the application when the local authentication system serves as the central authentication system of the application.
在一个实施例中,所述本机认证系统还用于当所述本机认证系统以所述第三方认证系统为中央认证系统时,所述本机认证系统为应用系统与所述第三方认证系统进行对接。In one embodiment, the local authentication system is further configured to: when the local authentication system uses the third-party authentication system as the central authentication system, the local authentication system is the application system and the third-party authentication The system is connected.
在一个实施例中,所述本机认证系统还用于当所述第三方认证系统登出所述应用的认证流程后,所述本机认证系统的TGT与绑定的所述第三方的ST同步注销。In one embodiment, the local authentication system is further configured to, when the third-party authentication system logs out of the authentication process of the application, the TGT of the local authentication system and the bound ST of the third party Synchronous logout.
在一个实施例中,所述本机认证系统还用于当存在一个以上的认证服务时,所述本机认证系统进行单向的认证级联。In one embodiment, the local authentication system is further configured to perform unidirectional authentication cascading when there is more than one authentication service.
本发明可以实现因一个认证网络群里的某个节点断链后,依然可以实现基于其它网络中的节点认证,基本消灭单点登录中的“单点”故障,做到“各自为证”,又“相互联通”。本发明可以安全的向三方认证系统进行集成组网。本发明可以实现类似于“集团组织认证中心-子公司分公司认证中心-各部门业务认证中心“的这种三级(多级)认证系统挂接,彼此授信,却可以各自授权的场景。The present invention can realize node authentication based on other networks after a certain node in an authentication network group is disconnected, basically eliminates the "single point" failure in single sign-on, and achieves "each is a certificate", Also "interconnected". The invention can securely carry out integrated networking to the three-party authentication system. The present invention can realize the scenario that the three-level (multi-level) authentication systems are connected to each other and authorized independently, which is similar to "group organization authentication center-subsidiary branch company authentication center-department business authentication center".
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其他的方式实现。示例性的,以上所描述的系统实施例仅仅是示意性的,示例性的,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,示例性的,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性、机械或其他的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. Exemplary, the system embodiments described above are only illustrative, exemplary, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, exemplary , multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可能集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
应当说明的是,上述实施例均可根据需要自由组合。以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。It should be noted that the above embodiments can be freely combined as required. The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211403760.8A CN115695036A (en) | 2022-11-10 | 2022-11-10 | Method and device for realizing tree topology authentication system group |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211403760.8A CN115695036A (en) | 2022-11-10 | 2022-11-10 | Method and device for realizing tree topology authentication system group |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115695036A true CN115695036A (en) | 2023-02-03 |
Family
ID=85050533
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211403760.8A Pending CN115695036A (en) | 2022-11-10 | 2022-11-10 | Method and device for realizing tree topology authentication system group |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115695036A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1283631A2 (en) * | 2001-08-06 | 2003-02-12 | Sun Microsystems, Inc. | Web based applications single sign on system and method |
| CN104539615A (en) * | 2014-12-29 | 2015-04-22 | 中国南方电网有限责任公司 | Cascading authentication method based on CAS |
| CN106357686A (en) * | 2016-10-26 | 2017-01-25 | 中企动力科技股份有限公司 | Single-point authentication method and single-point authentication system |
| US20200259817A1 (en) * | 2019-02-07 | 2020-08-13 | F5 Networks, Inc. | Methods for facilitating federated single sign-on (sso) for internal web applications and devices thereof |
| CN113411324A (en) * | 2021-06-17 | 2021-09-17 | 南京网觉软件有限公司 | Method and system for realizing login authentication based on CAS and third-party server |
-
2022
- 2022-11-10 CN CN202211403760.8A patent/CN115695036A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1283631A2 (en) * | 2001-08-06 | 2003-02-12 | Sun Microsystems, Inc. | Web based applications single sign on system and method |
| CN104539615A (en) * | 2014-12-29 | 2015-04-22 | 中国南方电网有限责任公司 | Cascading authentication method based on CAS |
| CN106357686A (en) * | 2016-10-26 | 2017-01-25 | 中企动力科技股份有限公司 | Single-point authentication method and single-point authentication system |
| US20200259817A1 (en) * | 2019-02-07 | 2020-08-13 | F5 Networks, Inc. | Methods for facilitating federated single sign-on (sso) for internal web applications and devices thereof |
| CN113411324A (en) * | 2021-06-17 | 2021-09-17 | 南京网觉软件有限公司 | Method and system for realizing login authentication based on CAS and third-party server |
Non-Patent Citations (1)
| Title |
|---|
| 汤其妹;: "基于CAS的高校智慧校园统一身份认证平台的研究与实现", 电脑知识与技术, no. 11, 15 April 2020 (2020-04-15), pages 100 - 103 * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109361753A (en) | A kind of Internet of things system framework and encryption method | |
| JP2009163546A (en) | Gateway, repeating method and program | |
| Dong et al. | Blockchain-based cross-domain authentication strategy for trusted access to mobile devices in the IoT | |
| US12021843B2 (en) | Policy based personally identifiable information leakage prevention in cloud native environments | |
| Xiao | Accountability for wireless LANs, ad hoc networks, and wireless mesh networks | |
| CN111651747B (en) | Login bill synchronization system and method and related equipment | |
| Thanh et al. | Toward a security IoT platform with high rate transmission and low energy consumption | |
| Xiao et al. | A multi-blockchain architecture supporting cross-blockchain communication | |
| CN114553527A (en) | Block chain-based identity authentication service system crossing CA trust domain | |
| CN116708397A (en) | Internet of things cross-domain authentication system and method based on alliance chain and MQTT | |
| CN102255904A (en) | Communication network and terminal authentication method thereof | |
| US11611541B2 (en) | Secure method to replicate on-premise secrets in a cloud environment | |
| JP6185934B2 (en) | Integrate server applications with many authentication providers | |
| CN115695036A (en) | Method and device for realizing tree topology authentication system group | |
| US20030200322A1 (en) | Autonomic system for selective administation isolation of a secure remote management of systems in a computer network | |
| Zhang et al. | A General Access Architecture for Blockchain-Based Semi-Quantum 6G Wireless Communication and its Application | |
| Prasanalakshmi et al. | Secure credential federation for hybrid cloud environment with SAML enabled multifactor authentication using biometrics | |
| Boi et al. | Decentralized Authentication in Microservice Architectures with SSI and DID in Blockchain | |
| Shao et al. | Protecting mobile-agent data collection against blocking attacks | |
| Kovacevic et al. | Token-based identity management in the distributed cloud | |
| Adams et al. | Receipt-mode trust negotiation: efficient authorization through outsourced interactions | |
| Liu et al. | Design of remote access system for digital resources in campus based on ssl protocol | |
| Duan et al. | IDentiaTM-an identity bridge integrating openID and SAML for enhanced identity trust and user access control | |
| CN120880787A (en) | User authentication method, system, medium and equipment | |
| Allouzi et al. | Advanced Authentication Protocol for Software-Defined Networks |
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 |