CN106534155B - A kind of data processing method and system - Google Patents

A kind of data processing method and system Download PDF

Info

Publication number
CN106534155B
CN106534155B CN201611086030.4A CN201611086030A CN106534155B CN 106534155 B CN106534155 B CN 106534155B CN 201611086030 A CN201611086030 A CN 201611086030A CN 106534155 B CN106534155 B CN 106534155B
Authority
CN
China
Prior art keywords
added
language
user
parameter
international
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.)
Active
Application number
CN201611086030.4A
Other languages
Chinese (zh)
Other versions
CN106534155A (en
Inventor
刘金华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHUHAI MAIYUE INFORMATION TECHNOLOGY Co Ltd
Original Assignee
ZHUHAI MAIYUE 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 ZHUHAI MAIYUE INFORMATION TECHNOLOGY Co Ltd filed Critical ZHUHAI MAIYUE INFORMATION TECHNOLOGY Co Ltd
Priority to CN201611086030.4A priority Critical patent/CN106534155B/en
Publication of CN106534155A publication Critical patent/CN106534155A/en
Application granted granted Critical
Publication of CN106534155B publication Critical patent/CN106534155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/33User authentication using certificates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a kind of data processing method and systems, pass through this method, the source code of CAS open source projects can be modified, it extends its code and the data of logon form is unidirectionally passed into each CAS client so that CAS server-side may be implemented, so that the individuation data of the logon form of submission can be transferred to each CAS client by the channel, the purpose that individuation data is issued to each CAS client by CAS server-side is thereby realized.

Description

A kind of data processing method and system
Technical field
This application involves field of communication technology more particularly to a kind of data processing methods and system.
Background technique
As corporate business constantly expands, the continuous hyperplasia of the research and development of functional platform system goes to safeguard using unified account The demand of different plateform systems more urgent is managed, discovery passes through and central authentication service (English: Central Authentication Service, referred to as: the CAS) integration of open source projects can solve this problem, but in the process of research and development In encounter the problem of transmission of international language parameter, i.e. user passes through login interface, it may be assumed that CAS server-side selects desired language , so that the plateform system jumped after logging in is i.e.: CAS client can embody the language of the selection of user, and at this moment just need CAS server-side is transmitted the parameter and is just able to achieve to CAS client, and for enterprise-level application, majority is distributed deployment, therefore There are problems that it is cross-domain across server-side across application, Gu Buneng simply uses the modes such as cookies, session to transmit, however logical It crosses and CAS open source projects is understood, form data submits the extension for only supporting identifying code verifying at present, and logins successfully return more Multi-user data gives client-side technology to support, and failing to have found related scalability technical support can be directly from CAS server-side It submits the individuation data of user and is transferred to each CAS client.
Summary of the invention
The embodiment of the invention provides a kind of data processing method and system, to solve in the prior art can not directly from The problem of CAS server-side submits the individuation data of user and is transferred to each CAS client.
Its specific technical solution is as follows:
A kind of data processing method, which comprises
Central authentication services the international language parameter that CAS server-side obtains user's input;
The international language parameter is added in logon form;
The logon form for being added to international language parameter is sent to each CAS client.
Optionally, before the international language parameter that CAS server-side obtains user's input, the method also includes:
Obtain the user name and encrypted message of user's input;
Verify whether the encrypted message matches with preset password information;
If matching, generates logon form.
Optionally, the international language parameter is added in logon form, comprising:
Language form attributes are added in the logon form of login interface script;
The international language parameter that user selects is added in the language form attributes.
Optionally, the international language parameter that user selects is added in the language form attributes, comprising:
Increase the privately owned attribute of language in the user name key certificate class of the logon form;
Publicly-owned getter is provided and obtains value method and setter assignment method to carry out the access of the privately owned attribute of language.
Optionally, the logon form for being added to international language parameter is sent to each CAS client, comprising:
The key of the international language parameter and value are put into the modification attribute key assignments of userspersonal information's main process task class In mapping set;
The logon form for being added to the international language parameter is sent to each CAS client.
A kind of data processing system, comprising:
Module is obtained, for obtaining the international language parameter of user's input;
Processing module, for the international language parameter to be added in logon form;
Communication module, for the logon form for being added to international language parameter to be sent to each CAS client.
Optionally, the acquisition module is also used to obtain the user name and encrypted message of user's input;
The processing module, is also used to verify whether the encrypted message matches with preset password information;If matching, gives birth to At logon form.
Optionally, the processing module, specifically for adding language list category in the logon form of login interface script Property;The international language parameter that user selects is added in the language form attributes.
Optionally, the processing module, specifically for increasing language in the user name key certificate class of the logon form Say privately owned attribute;Publicly-owned getter is provided and obtains value method and setter assignment method to carry out the access of the privately owned attribute of language.
Optionally, the processing module, specifically for the key of the international language parameter and value are put into user In the modification attribute key assignments mapping set of people's information main process task class;The log form single-shot of the international language parameter will be added to It send to each CAS client.
CAS server-side will acquire the international language parameter of user setting, and then CAS server-side can be by the internationalization language Speech parameter is added in logon form, and passes through the return more users information data of the CAS open source projects of modification offer Scalability technology allows to the individuation data of the logon form of submission being transferred to each CAS client by the channel End, thereby realizes the purpose that individuation data is issued to each CAS client by CAS server-side.
Detailed description of the invention
Fig. 1 is a kind of flow chart of data processing method in the embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of data processing system in the embodiment of the present invention.
Specific embodiment
Technical solution of the present invention is described in detail below by attached drawing and specific embodiment, it should be understood that this hair Particular technique feature in bright embodiment and embodiment is the explanation to technical solution of the present invention, rather than is limited, not In the case where conflict, the particular technique feature in the embodiment of the present invention and embodiment be can be combined with each other.
It is as shown in Figure 1 a kind of flow chart of data processing method in the embodiment of the present invention, this method comprises:
S101, central authentication server-side CAS server-side obtain the international language parameter of user's input;
International language parameter is added in logon form by S102;
The logon form for being added to international language parameter is sent to each CAS client by S103.
Specifically, in order to realize that international language parameter is issued to each CAS client by CAS server-side, so, it is holding Before row above-mentioned steps, language form attributes are added first in the logon form of login interface script;The institute that user is selected International language parameter is stated to be added in the language form attributes.
Further, increase the privately owned attribute of language in the user name key certificate class of the logon form;It provides publicly-owned Getter obtains value method and setter assignment method to carry out the access of the privately owned attribute of language.By the international language parameter Key and value are put into the modification attribute key assignments mapping set of userspersonal information's main process task class.
For example, it is necessary first to modify casLoginView.jsp login interface, add one < input type=" Hidden " name=" language " id=" lang "/> hide form form attributes (other personalized form attributes of display Can show display, the nonessential form attributes to hide display), and (user is made to click language the international language of user's selection The hyperlink of speech item triggers changeLanguage method) it is hiding aobvious to be somebody's turn to do " language " by javascript dynamic setting The value of the form form attributes shown is as follows:
Then newly-increased to UsernamePasswordCredential class in cas-server-core submodule block code The privately owned attribute of language, and publicly-owned getter and setter method is provided.
Further, it more flexible extension: for other individuation datas, can be inherited by creation The new subclass of UsernamePasswordCredential class extends the privately owned attribute of individuation data, and provides corresponding publicly-owned Getter and setter method, getter are to obtain value method, and setter is assignment method.
And then modification login-webflow.xml, Add User certification binding language attribute:
It is finally supported using the scalability for returning to more users information data provided by CAS open source projects, is specifically come It says, the purpose which realizes and is given for the user of login authentication to be obtained more user informations from database Each CAS client is returned to, the technology is transformed, the list individuation data for making it be suitable for be submitted is given by the channel To pass to each CAS client.
The resolve method of PersonDirectoryPrincipalResolver class is modified, so that return ConvertedAttributes key assignments mapping set contains language.
Further, more flexible property extension: by the new of the succession UsernamePasswordCredential class being previously mentioned The value of the defined personalizing parameters of subclass is put into the convertedAttributes key assignments mapping set, can be returned whereby Back to each CAS client, so that CAS client can obtain international language parameter by the key assignments mapping set or other are a Property parameter, and Initialize installation is carried out, it is specific as follows:
Modify the resolve method of PersonDirectoryPrincipalResolver class
Delete following code:
Following code is added in the front that returns the result of method:
CAS client obtains language parameter (other personalized numbers that CAS server-side passes in the following way According to similarly, obtained with key assignments):
// the international language that CAS client initialization setting CAS server-side is transmitted ServletActionContext.getRequest().getSession().setAttribute("WW_TRANS_I18N_ LOCALE",locale);
For above-mentioned example, user inputs user firstly the need of unlatching login interface in login interface After name and encrypted message, CAS server-side will acquire the international language parameter of user setting, then the meeting of CAS server-side The international language parameter is added in logon form, and is more used by the return that the CAS open source projects of modification provide The scalability technology of family information data allows to for the individuation data of the logon form of submission being transferred to by the channel Each CAS client thereby realizes the purpose that individuation data is issued to each CAS client by CAS server-side.
A kind of data processing method in the embodiment of the present invention is corresponded to, additionally provides a kind of data processing in the embodiment of the present invention System, a kind of structural schematic diagram of data processing system, the system in the embodiment of the present invention of being illustrated in figure 2 include:
Module 201 is obtained, for obtaining the international language parameter of user's input;
Processing module 202, for the international language parameter to be added in logon form;
Communication module 203, for the logon form for being added to international language parameter to be sent to each CAS client.
Further, in embodiments of the present invention, the acquisition module 201, be also used to obtain user input user name with And encrypted message;
The processing module 202, is also used to verify whether the encrypted message matches with preset password information;If matching, Then generate logon form.
Further, in embodiments of the present invention, the processing module 202, specifically for the login in login interface script Language form attributes are added in list;The international language parameter that user selects is added to the language form attributes In.
Further, in embodiments of the present invention, the processing module 202, specifically for the user in the logon form Increase the privately owned attribute of language in name key certificate class;Publicly-owned getter is provided and obtains value method and setter assignment method to carry out The access of the privately owned attribute of language.
Further, in embodiments of the present invention, the processing module 202 is specifically used for the international language parameter Key and value be put into the modification attribute key assignments mapping set of userspersonal information's main process task class;The internationalization will be added to The logon form of language parameter is sent to each CAS client.
Although the preferred embodiment of the application has been described, but one of ordinary skilled in the art once knows substantially Creative concept, then additional changes and modifications may be made to these embodiments.It is wrapped so the following claims are intended to be interpreted as It includes preferred embodiment and falls into all change and modification of the application range.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the application Mind and range.In this way, if these modifications and variations of the application belong to the range of the claim of this application and its equivalent technologies Within, then the application is also intended to include these modifications and variations.

Claims (10)

1. a kind of data processing method, which is characterized in that the described method includes:
Central authentication services the international language parameter that CAS server-side obtains user's input;
The international language parameter is added in logon form;
The logon form for being added to international language parameter is sent to each CAS client.
2. the method as described in claim 1, which is characterized in that obtain the international language ginseng of user's input in CAS server-side Before number, the method also includes:
Obtain the user name and encrypted message of user's input;
Verify whether the encrypted message matches with preset password information;
If matching, generates logon form.
3. the method as described in claim 1, which is characterized in that the international language parameter is added in logon form, Include:
Language form attributes are added in the logon form of login interface script;
The international language parameter that user selects is added in the language form attributes.
4. the method as described in claim 1, which is characterized in that the international language parameter that user selects is added to institute Predicate is sayed in form attributes, comprising:
Increase the privately owned attribute of language in the user name key certificate class of the logon form;
Publicly-owned getter is provided and obtains value method and setter assignment method to carry out the access of the privately owned attribute of language.
5. method as claimed in claim 4, which is characterized in that the logon form for being added to international language parameter to be sent to Each CAS client, comprising:
The key of the international language parameter and value are put into the modification attribute key assignments mapping of userspersonal information's main process task class In set;
The logon form for being added to the international language parameter is sent to each CAS client.
6. a kind of data processing system characterized by comprising
Module is obtained, for obtaining the international language parameter of user's input;
Processing module, for the international language parameter to be added in logon form;
Communication module, for the logon form for being added to international language parameter to be sent to each CAS client.
7. system as claimed in claim 6, which is characterized in that the acquisition module is also used to obtain the user of user's input Name and encrypted message;
The processing module, is also used to verify whether the encrypted message matches with preset password information;If matching, generation is stepped on Record list.
8. system as claimed in claim 6, which is characterized in that the processing module, specifically in login interface script Language form attributes are added in logon form;The international language parameter that user selects is added to the language list category In property.
9. system as claimed in claim 6, which is characterized in that the processing module, specifically in the logon form Increase the privately owned attribute of language in user name key certificate class;Publicly-owned getter is provided and obtains value method and setter assignment method Carry out the access of the privately owned attribute of language.
10. system as claimed in claim 9, which is characterized in that the processing module is specifically used for the international language The key and value of parameter are put into the modification attribute key assignments mapping set of userspersonal information's main process task class;The state will be added to The logon form of border language parameter is sent to each CAS client.
CN201611086030.4A 2016-11-30 2016-11-30 A kind of data processing method and system Active CN106534155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611086030.4A CN106534155B (en) 2016-11-30 2016-11-30 A kind of data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611086030.4A CN106534155B (en) 2016-11-30 2016-11-30 A kind of data processing method and system

Publications (2)

Publication Number Publication Date
CN106534155A CN106534155A (en) 2017-03-22
CN106534155B true CN106534155B (en) 2019-11-08

Family

ID=58353825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611086030.4A Active CN106534155B (en) 2016-11-30 2016-11-30 A kind of data processing method and system

Country Status (1)

Country Link
CN (1) CN106534155B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143493A (en) * 2011-01-26 2011-08-03 惠州Tcl移动通信有限公司 Mobile communication terminal with user management function and user management method thereof
CN102984142A (en) * 2012-11-21 2013-03-20 用友软件股份有限公司 Login system and login method of enterprise resource planning system
US8745718B1 (en) * 2012-08-20 2014-06-03 Jericho Systems Corporation Delivery of authentication information to a RESTful service using token validation scheme
CN104978394A (en) * 2015-05-08 2015-10-14 安徽机电职业技术学院 Webpage tag data organization and update method for multi-language display

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143493A (en) * 2011-01-26 2011-08-03 惠州Tcl移动通信有限公司 Mobile communication terminal with user management function and user management method thereof
US8745718B1 (en) * 2012-08-20 2014-06-03 Jericho Systems Corporation Delivery of authentication information to a RESTful service using token validation scheme
CN102984142A (en) * 2012-11-21 2013-03-20 用友软件股份有限公司 Login system and login method of enterprise resource planning system
CN104978394A (en) * 2015-05-08 2015-10-14 安徽机电职业技术学院 Webpage tag data organization and update method for multi-language display

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CAS SSO 4.0.x 增加验证码;carl-zhao;《https://blog.csdn.net/u012410733/article/details/51729832》;20160621;正文全文 *

Also Published As

Publication number Publication date
CN106534155A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
US11810072B2 (en) Method, apparatus, and computer program product for authorizing and authenticating user communication within an enterprise group-based communication platform
EP3695563B1 (en) Apparatus, method, and computing device for selectively granting permissions to group-based objects in a group-based communication system
US11269833B2 (en) Data storage architecture for an enterprise communication system
US11381532B2 (en) Systems and methods for initiating external actions via a group-based communication system
US11360754B2 (en) Method, apparatus, and computer program product for installing third party applications requiring variable host address identification in a group-based communication system
US8566917B2 (en) Efficient single sign-on and identity provider configuration and deployment in a database system
CN111580820A (en) Applet generation method and device
US20220138696A1 (en) Workflow service email integration
US20210328952A1 (en) Context Driven Dynamic Actions Embedded in Messages
US8843587B2 (en) Retrieving availability information from published calendars
US20180374050A1 (en) Abstraction services for productivity servers
CN106534155B (en) A kind of data processing method and system
US20230214508A1 (en) Systems and Methods to Provide Temporary Document Access for Secure File Sharing
CN109344134A (en) A kind of method and device that cloud disc file is shared
US11722474B2 (en) Embedding content in audio content through a voice assistant
US20150381743A1 (en) System and Method for Dynamic Creation of Distribution Network Software Applications
Waghmare et al. Chatbot Integration

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant