Movatterモバイル変換


[0]ホーム

URL:


CN111131301A - Unified authentication and authorization scheme - Google Patents

Unified authentication and authorization scheme
Download PDF

Info

Publication number
CN111131301A
CN111131301ACN201911408143.5ACN201911408143ACN111131301ACN 111131301 ACN111131301 ACN 111131301ACN 201911408143 ACN201911408143 ACN 201911408143ACN 111131301 ACN111131301 ACN 111131301A
Authority
CN
China
Prior art keywords
client
authentication
authorization
class
token
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911408143.5A
Other languages
Chinese (zh)
Inventor
何政雷
张启亮
黄凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Xugong Information Technology Co ltd
Original Assignee
Jiangsu Xugong Information 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 Jiangsu Xugong Information Technology Co ltdfiledCriticalJiangsu Xugong Information Technology Co ltd
Priority to CN201911408143.5ApriorityCriticalpatent/CN111131301A/en
Publication of CN111131301ApublicationCriticalpatent/CN111131301A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a uniform authentication authorization scheme, which consists of an authorization module, a resource module and a client sdk, wherein the authorization module is mainly responsible for client verification and user information authentication and issuing a JWT token after the authentication is successful; the resource module is mainly responsible for the management of the externally opened resources at the service end; the client sdk cooperates with the server authorization module to complete the authentication authorization process, obtain the JWT token issued by the server, obtain the user information, and obtain the resources specified and opened by the server through the JWT token. The barrier between systems developed based on Java in an enterprise can be broken through, unified management and control of basic information such as user authority can be realized, and the operation management cost of the enterprise is reduced. The access of each subsystem and the access of an external system are controlled in a refining way through a uniform authentication authorization center, so that the credibility of an access system is ensured; the consistency of basic information sources such as user authority and the like can realize the communication of all systems in an enterprise, and the use cost of staff is reduced.

Description

Unified authentication and authorization scheme
Technical Field
The invention relates to a unified authentication and authorization scheme, and belongs to the technical field of information.
Background
With the development of internet applications, more and more application systems are deployed on servers in different regions, and the systems are independent in geographical location and are connected together by using a network. Along with the continuous expansion of the scale, the pressure on managers is increased.
In a common method for logging in and authenticating an application system, each system usually has an independent authentication module and authority data, so that when the systems are too many, each system needs to be logged in through authentication of a corresponding system once, and the authentication mode causes frequent login operation, inconvenient use of a user and low multi-system login efficiency. Meanwhile, due to the heterogeneous data, the personnel information cannot be intercommunicated, and the change of the user information requires the synchronous maintenance of multiple systems, so that the maintenance cost is greatly increased.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a uniform authentication and authorization scheme for realizing information intercommunication, improving the multi-system login efficiency and reducing the production cost.
In order to achieve the purpose, the invention adopts the technical scheme that: a unified authentication and authorization scheme is characterized by comprising the following steps;
the method comprises the following steps: the third-party system introduces an authorization client sdk, introduces necessary dependent configuration, increases parameters such as a trusted client ID and a key registered by an authorization server and an authorization server root address by a configuration file, and creates a security control class to start spring security authority control and OAuth2.0 authorization flow;
step two: authentication control core class configuration and an allowed authentication mode of client authentication, wherein the acquisition processes of four OAuth2.0 tokens including an authorization code, a hidden type token, a password type token and a client certificate are supported; the authentication control class loads cache class, password encryption class and JWT encryption class of the registered client through configuration, enhances control of self-defined data transmission and the like, and configures URL link control, login and logout and WEB security control parameters; the resource control class is matched with the safety control class to control the opening of a server-side interface;
step three: the Web browser accesses a client interface, a client system detects that a user has no authorization information through an accessed client sdk security control core class, and redirects the client to an authorization server, the authorization server authenticates whether the client is registered in advance, and the client information is correct and jumps to an authorization server login page; otherwise reject the authentication request of the customer end;
step four: the authorization server logs in the page and fills out the authentication information correctly, the authorization server "user authentication type" preserves the login information after the authentication succeeds, the client system initiates OAuth2.0 token acquisition flow through https safe communication channel; the authorization server acquires account login information and generates a temporary authorization code; calling back a URL registered by the client, confirming that the client is not forged, carrying an authorization code by the client to initiate a request for applying the electronic token, and realizing encryption of account information by a JWT token realization class of an authorization server and generating the electronic token which accords with a JWT specification to be issued to the client;
step five: the Web browser acquires and stores the electronic token, when a user needs to quit the system, the user can log off the current system and clear the local token in the client browser, and when the user accesses other systems again, the user cannot directly access the system, and the user can be redirected to an authentication login page of the authorization server to perform identity authentication again;
further, the client system inherits the client sdk security control class and interacts with the authorization server through the "security control class".
Furthermore, the authorization server 'authentication control class' in the second step adopts an Adapter mode.
Further, the token encryption storage of the "JWT token implementation class" of the authorization server in the fourth step adopts a template mode, so as to encrypt the token and store the template.
The invention has the beneficial effects that: the method breaks the old system login and authority control mode, realizes the safe verification and authorization process by realizing OAuth2.0 open standard, solves the problem of cross-domain identity verification by using JWT, simultaneously uses an encrypted HTTPS protocol for transmission, protects information safety, reduces the probability of stealing, and the controlled system integration client sdk is accessed into the unified authentication and authorization center, thereby realizing the unified authentication and authorization center to take over the login and authority control of the controlled system, and realizing high safety, high availability and high universality at the company level. The barrier between systems developed based on Java in an enterprise is broken through, unified management and control of basic information such as user authority and the like are achieved, and the operation management cost of the enterprise is reduced. The access of each subsystem and the access of an external system can be detailed and controlled through the unified authentication authorization center, and the credibility of the access system is ensured. Meanwhile, the consistency of basic information sources such as user rights and the like can realize the communication of all systems in an enterprise, and reports beneficial to decision can be obtained through data extraction and aggregation analysis. The enterprise staff can log in through the unified authentication and authorization center without recording each system account, so that the use cost of the staff is reduced.
Drawings
FIG. 1 is a diagram of unified authentication login according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood, however, that the description herein of specific embodiments is only intended to illustrate the invention and not to limit the scope of the invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs, and the terms used herein in the specification of the present invention are for the purpose of describing particular embodiments only and are not intended to limit the present invention.
As shown in fig. 1, a unified authentication and authorization scheme includes the following steps;
the method comprises the following steps: the third-party system introduces an authorization client sdk, introduces necessary dependent configuration, increases parameters such as a trusted client ID and a key registered by an authorization server and an authorization server root address by a configuration file, and creates a security control class to start spring security authority control and OAuth2.0 authorization flow;
step two: the method comprises the steps of authentication control core class configuration and an allowed authentication mode of client authentication, wherein four OAuth2.0 token acquisition processes of an authorization code (authorization-code), a hidden (identifier), a password (password) and a client certificate (client certificate) are supported; the authentication control class is used for loading cache class, password encryption class and JWT encryption class of the registered client side through configuration, enhancing control of user-defined data transmission and the like, and the security control class is used for configuring URL link control, login logout and WEB security control parameters. The resource control class is matched with the safety control class to control the opening of a server-side interface;
step three: the Web browser accesses a client interface, a client system detects that a user has no authorization information through an accessed client sdk security control core class, and redirects the client to an authorization server, the authorization server authenticates whether the client is registered in advance, and the client information is correct and jumps to an authorization server login page; otherwise reject the authentication request of the customer end;
step four: the authorization server logs in the page and fills out the authentication information correctly, the authorization server "user authentication type" preserves the login information after the authentication succeeds, the client system initiates OAuth2.0 token acquisition flow through https safe communication channel; the authorization server acquires account login information and generates a temporary authorization code; calling back a URL registered by the client, confirming that the client is not forged, carrying an authorization code by the client to initiate a request for applying the electronic token, and realizing encryption of account information by a JWT token realization class of an authorization server and generating the electronic token which accords with a JWT specification to be issued to the client;
step five: the Web browser acquires and stores the electronic token, when a user needs to quit the system, the user can log off the current system and clear the local token in the client browser, and when the user accesses other systems again, the user cannot directly access the system, and the user can be redirected to an authentication login page of the authorization server to perform identity authentication again; thereby realizing 'unified login, unified authentication and unified logout' of the user;
the client system inherits the client sdk security control class and interacts with the authorization server through the "security control class".
And the authorization server of the second step adopts an Adapter mode for authentication control.
And the token encryption storage of the 'JWT token implementation class' of the authorization server in the step four adopts a template mode to encrypt the token and store the template.
The scheme discloses a solution for realizing unified authentication authorization based on a java language and a springsecurity framework system. The method realizes a safe verification and authorization process through an OAuth2.0 open standard, solves the problem of cross-domain identity verification by using JWT, and simultaneously transmits by using an encrypted HTTPS protocol, thereby protecting information safety and reducing the probability of being stolen. The scheme mainly comprises an authorization module, a resource module and a client sdk, wherein the authorization module is mainly responsible for client verification and user information authentication and issuing a JWT token after the authentication is successful; the resource module is mainly responsible for the management of the externally opened resources at the service end; the client sdk cooperates with the server authorization module to complete the authentication authorization process, and obtains the JWT token issued by the server, obtains the user information, and can obtain the resources specified and opened by the server through the JWT token.
The user accesses the third party application system, detects whether the token is owned by the third party system integrated client sdk, and if the token is not owned, the authorization server first verifies the validity of the third party application system. And after passing the verification, guiding the user to a login page of the authorization server to perform identity authentication. And after the identity authentication is passed, the authorization server issues the temporary token to the third-party application system through the registered callback URL. And the third-party website acquires the access token from the authorization server according to the temporary token. And accessing the resources opened by the authorization server according to the token. If the user needs to log out of the system, the user can log out of the current system and clear the local token in the client browser, and then when the user accesses the third-party system again, the user cannot directly access the system, and the user can be redirected to the authentication login page of the authorization server to perform identity authentication again; therefore, the user can realize 'unified login, unified authentication and unified logout'.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents or improvements made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (3)

step four: the authorization server logs in the page and fills out the authentication information correctly, the authorization server "user authentication type" preserves the login information after the authentication succeeds, the client system initiates OAuth2.0 token acquisition flow through https safe communication channel; the authorization server acquires account login information and generates a temporary authorization code; calling back a URL registered by the client, confirming that the client is not forged, carrying an authorization code by the client to initiate a request for applying the electronic token, and realizing encryption of account information by a JWT token realization class of an authorization server and generating the electronic token which accords with a JWT specification to be issued to the client;
CN201911408143.5A2019-12-312019-12-31Unified authentication and authorization schemePendingCN111131301A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911408143.5ACN111131301A (en)2019-12-312019-12-31Unified authentication and authorization scheme

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911408143.5ACN111131301A (en)2019-12-312019-12-31Unified authentication and authorization scheme

Publications (1)

Publication NumberPublication Date
CN111131301Atrue CN111131301A (en)2020-05-08

Family

ID=70506197

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911408143.5APendingCN111131301A (en)2019-12-312019-12-31Unified authentication and authorization scheme

Country Status (1)

CountryLink
CN (1)CN111131301A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111625800A (en)*2020-06-052020-09-04光载互联(杭州)科技有限公司Digital identity authentication method and system based on in-vivo detection
CN111770088A (en)*2020-06-292020-10-13南方电网科学研究院有限责任公司 Data authentication method, apparatus, electronic device and computer-readable storage medium
CN112235285A (en)*2020-10-122021-01-15山东健康医疗大数据有限公司Method and system for user authentication mode and service based on non-session
CN113468504A (en)*2021-07-012021-10-01厦门悦讯信息科技股份有限公司Method and system for single client to access multiple servers
CN114139141A (en)*2021-10-212022-03-04北京快乐茄信息技术有限公司Unified authentication method, device, terminal and storage medium
CN114417363A (en)*2021-11-162022-04-29中国农业银行股份有限公司深圳市分行 A method, system and storage medium for realizing bank application security control
CN114793243A (en)*2021-01-262022-07-26Sap欧洲公司One-time use authorization code in self-contained format
CN115085944A (en)*2022-08-222022-09-20四川蜀天信息技术有限公司Multi-space scene RESTful API unified user authentication management method and system
CN115396205A (en)*2022-08-262022-11-25上海浦东发展银行股份有限公司Integrated authorization system and method thereof
CN115442071A (en)*2022-07-262022-12-06新奥新智科技有限公司 Functional authority management method, device, electronic device and storage medium of an item
CN115567885A (en)*2022-09-272023-01-03山东浪潮科学研究院有限公司Mobile phone short message authorization trusteeship service system
CN115952487A (en)*2023-03-142023-04-11青岛安工数联信息科技有限公司Tenant information configuration system and method under various organizations
CN116107270A (en)*2021-11-112023-05-12上海宝信软件股份有限公司 Unified Authorization Method and System in Multi-Base Industrial Scenario of Headquarters
CN117353975A (en)*2023-09-082024-01-05国联人寿保险股份有限公司Multi-terminal security unified login authorization system and method based on enterprise WeChat
CN117675338A (en)*2023-12-042024-03-08佛山众陶联供应链服务有限公司Method and system for communicating different authentication systems
US12113903B2 (en)2021-01-262024-10-08Sap SeLong-lasting refresh tokens in self-contained format

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20170264612A1 (en)*2016-03-112017-09-14Oracle International CorporationSystem and method for providing a universal security handler for a cloud-based integration platform
CN107786571A (en)*2017-11-072018-03-09昆山云景商务服务有限公司A kind of method of user's unified certification
CN109286633A (en)*2018-10-262019-01-29深圳市华云中盛科技有限公司Single sign-on method, device, computer equipment and storage medium
CN110535882A (en)*2019-09-272019-12-03南方电网科学研究院有限责任公司Identity authentication service method and system based on heterogeneous terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20170264612A1 (en)*2016-03-112017-09-14Oracle International CorporationSystem and method for providing a universal security handler for a cloud-based integration platform
CN107786571A (en)*2017-11-072018-03-09昆山云景商务服务有限公司A kind of method of user's unified certification
CN109286633A (en)*2018-10-262019-01-29深圳市华云中盛科技有限公司Single sign-on method, device, computer equipment and storage medium
CN110535882A (en)*2019-09-272019-12-03南方电网科学研究院有限责任公司Identity authentication service method and system based on heterogeneous terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
沈杰: "《省级政务服务网统一用户管理及认证系统的设计与实现》", 《中国优秀硕士学位论文全文数据库 信息科技辑》*

Cited By (22)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111625800A (en)*2020-06-052020-09-04光载互联(杭州)科技有限公司Digital identity authentication method and system based on in-vivo detection
CN111770088A (en)*2020-06-292020-10-13南方电网科学研究院有限责任公司 Data authentication method, apparatus, electronic device and computer-readable storage medium
CN112235285B (en)*2020-10-122023-01-10山东浪潮智慧医疗科技有限公司Method and system for user authentication mode and service based on non-session
CN112235285A (en)*2020-10-122021-01-15山东健康医疗大数据有限公司Method and system for user authentication mode and service based on non-session
CN114793243A (en)*2021-01-262022-07-26Sap欧洲公司One-time use authorization code in self-contained format
US12381732B2 (en)2021-01-262025-08-05Sap SeSingle-use authorization codes in self-contained format
US12113903B2 (en)2021-01-262024-10-08Sap SeLong-lasting refresh tokens in self-contained format
US11757645B2 (en)2021-01-262023-09-12Sap SeSingle-use authorization codes in self-contained format
CN113468504A (en)*2021-07-012021-10-01厦门悦讯信息科技股份有限公司Method and system for single client to access multiple servers
CN114139141A (en)*2021-10-212022-03-04北京快乐茄信息技术有限公司Unified authentication method, device, terminal and storage medium
CN116107270A (en)*2021-11-112023-05-12上海宝信软件股份有限公司 Unified Authorization Method and System in Multi-Base Industrial Scenario of Headquarters
CN114417363A (en)*2021-11-162022-04-29中国农业银行股份有限公司深圳市分行 A method, system and storage medium for realizing bank application security control
CN115442071A (en)*2022-07-262022-12-06新奥新智科技有限公司 Functional authority management method, device, electronic device and storage medium of an item
CN115085944A (en)*2022-08-222022-09-20四川蜀天信息技术有限公司Multi-space scene RESTful API unified user authentication management method and system
CN115396205B (en)*2022-08-262024-07-26上海浦东发展银行股份有限公司Integrated authorization system and method thereof
CN115396205A (en)*2022-08-262022-11-25上海浦东发展银行股份有限公司Integrated authorization system and method thereof
CN115567885A (en)*2022-09-272023-01-03山东浪潮科学研究院有限公司Mobile phone short message authorization trusteeship service system
CN115567885B (en)*2022-09-272023-09-05山东浪潮科学研究院有限公司Mobile phone short message authorized hosting service system
CN115952487A (en)*2023-03-142023-04-11青岛安工数联信息科技有限公司Tenant information configuration system and method under various organizations
CN117353975A (en)*2023-09-082024-01-05国联人寿保险股份有限公司Multi-terminal security unified login authorization system and method based on enterprise WeChat
CN117353975B (en)*2023-09-082024-03-29国联人寿保险股份有限公司Multi-terminal security unified login authorization system and method based on enterprise WeChat
CN117675338A (en)*2023-12-042024-03-08佛山众陶联供应链服务有限公司Method and system for communicating different authentication systems

Similar Documents

PublicationPublication DateTitle
CN111131301A (en)Unified authentication and authorization scheme
US12199971B2 (en)System and method for transferring device identifying information
AU2019210633B2 (en)Mobile multifactor single-sign-on authentication
CN102638454B (en) A plug-in single sign-on integration method for HTTP authentication protocol
US9191375B2 (en)System and method for accessing integrated applications in a single sign-on enabled enterprise solution
US8838959B2 (en)Method and apparatus for securely synchronizing password systems
US9172541B2 (en)System and method for pool-based identity generation and use for service access
US9122865B2 (en)System and method to establish and use credentials for a common lightweight identity through digital certificates
CN110535851A (en)A kind of customer certification system based on oauth2 agreement
CN108600203A (en)Secure Single Sign-on method based on Cookie and its unified certification service system
CN101674285B (en)Single sign-on system and method thereof
CN108632241B (en)Unified login method and device for multiple application systems
CN102469075A (en)Integrated authentication method based on WEB single sign-on
CN112468481A (en)Single-page and multi-page web application identity integrated authentication method based on CAS
CN106534219A (en)Security authentication method and device for desktop cloud portal
US10601809B2 (en)System and method for providing a certificate by way of a browser extension
CN109862024A (en)A kind of the network authorization protocol access control method and system of cloud management system
CN107204983A (en)A kind of SCADA System for Wind Power Farm data transmission technology based on Session Initiation Protocol
CN108243164B (en)Cross-domain access control method and system for E-government cloud computing
CN102571874A (en)On-line audit method and device in distributed system
CN102811210A (en) An information card authentication method and system based on WS protocol
US20040083296A1 (en)Apparatus and method for controlling user access
US20050273596A1 (en)Architecture and design for central authentication and authorization in an on-demand utility environment using a secured global hashtable
US20050188420A1 (en)Architecture and design for central authentication and authorization in an on-demand utility environment
CN107819564A (en)A kind of design method of the single-node login system based on Public Key Infrastructure

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20200508

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp