CN112883309B - Method, device, equipment and medium for accessing application through browser - Google Patents

Method, device, equipment and medium for accessing application through browser Download PDF

Info

Publication number
CN112883309B
CN112883309B CN202110209624.4A CN202110209624A CN112883309B CN 112883309 B CN112883309 B CN 112883309B CN 202110209624 A CN202110209624 A CN 202110209624A CN 112883309 B CN112883309 B CN 112883309B
Authority
CN
China
Prior art keywords
browser
address
application
current
single sign
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
CN202110209624.4A
Other languages
Chinese (zh)
Other versions
CN112883309A (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.)
Jiangsu Baowangda Software Technology Co ltd
Original Assignee
Jiangsu Baowangda Software 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 Baowangda Software Technology Co ltd filed Critical Jiangsu Baowangda Software Technology Co ltd
Priority to CN202110209624.4A priority Critical patent/CN112883309B/en
Publication of CN112883309A publication Critical patent/CN112883309A/en
Application granted granted Critical
Publication of CN112883309B publication Critical patent/CN112883309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • 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/41User authentication where a single sign-on provides access to a plurality of computers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a medium for accessing an application through a browser. The method comprises the following steps: acquiring a single sign-on address and browser address parameters of a target application; when the browser address parameter is first data, displaying an application page corresponding to the single sign-on address through a browser corresponding to the browser address parameter; and when the browser address parameter is the second data, displaying an application page corresponding to the single sign-on address through the current browser. The embodiment of the invention realizes that the corresponding application is opened through the customized browser, if the application is opened by adopting the current browser without customization, the application opening mode is enriched, and the limitation that the application can be opened only through the current browser is avoided.

Description

Method, device, equipment and medium for accessing application through browser
Technical Field
Embodiments of the present invention relate to computer technologies, and in particular, to a method, an apparatus, a device, and a medium for accessing an application through a browser.
Background
As the user's usage scenarios diversify, more than one browser may be installed on different computer devices. The user may open the application through the browser. Typically, the application is opened through the currently used browser, and the opening mode is relatively single.
Because of the incompatibility of the browsers, for applications developed by different vendors, the case may occur in which application a only supports the IE browser and application B only supports the Chrome browser. However, the application a and the application B have relevance, and when the application a is used, the application B may need to be used in a penetrating way, which causes that the browser needs to be manually switched for switching between the application a and the application B, otherwise, the situation that the browser cannot open the application which needs to be opened at present can occur.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for accessing an application through a browser, which can realize automatic switching and skipping of the browser and enrich the opening modes of the application.
In a first aspect, an embodiment of the present invention provides a method for accessing an application through a browser, including:
Acquiring a single sign-on address and browser address parameters of a target application;
When the browser address parameter is first data, displaying an application page corresponding to the single sign-on address through a browser corresponding to the browser address parameter;
And when the browser address parameter is the second data, displaying an application page corresponding to the single sign-on address through a current browser, wherein the current browser is a browser currently displayed on a display screen of the computer equipment.
In a second aspect, an embodiment of the present invention further provides an apparatus for accessing an application through a browser, where the apparatus includes:
The parameter acquisition module is used for acquiring single sign-on address and browser address parameters of the target application;
the first display module is used for displaying an application page corresponding to the single sign-on address through a browser corresponding to the browser address parameter when the browser address parameter is first data;
And the second display module is used for displaying an application page corresponding to the single sign-on address through a current browser when the browser address parameter is second data, wherein the current browser is a browser currently displayed on a display screen of the computer equipment.
In a third aspect, an embodiment of the present invention further provides a computer apparatus, including:
one or more processors;
A memory for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method of accessing an application through a browser as described in any embodiment of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a method of accessing an application through a browser according to any of the embodiments of the present invention.
The embodiment of the invention provides a method, a device, computer equipment and a storage medium for accessing an application through a browser, wherein a single sign-on address and browser address parameters of a target application are obtained; and determining whether to display the application page corresponding to the single sign-on address through the browser corresponding to the browser address parameter or display the application page corresponding to the single sign-on address through the current browser according to the numerical value of the browser address parameter. The embodiment of the invention realizes that the corresponding application is opened through the customized browser, if the application is opened by adopting the current browser without customization, the application opening mode is enriched, and the limitation that the application can be opened only through the current browser is avoided.
Drawings
FIG. 1 is a flowchart of a method for accessing an application through a browser according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for accessing an application through a browser according to an embodiment of the present invention;
Fig. 3 is a schematic diagram of connection between a centralized login client and a browser plug-in according to an embodiment of the present invention;
FIG. 4 is a block diagram of an apparatus for accessing an application through a browser according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
For ease of understanding, terms that may appear in embodiments of the invention will first be described.
Single sign-On (SSO, single Sign On) is an authentication method in which a user can access multiple applications, systems or Web sites that trust each other using a user ID and password only once. The single sign-on technology improves user experience, reduces the cost of managing user names and passwords on a large number of applications, and improves work efficiency. For example, after a user logs in on a certain application, the application can automatically identify the identity of the user logged in to other applications without logging in again when entering other applications before logging out. After each application user logs out, the application is in a useless state when entering other applications before logging in again, and the application can automatically identify that the user has logged out in other applications.
The single point address may be a server address corresponding to the application to be accessed or the application to be logged in. For single sign-on between Web and application programs, after a centralized sign-on client is logged in through a current browser, a user inputs a login request at the centralized sign-on client, wherein the login request comprises a single sign-on address and browser address parameters. When the centralized login client receives a login request input by a user, a browser plug-in is called, and a single sign-on address of a target application to be accessed and browser address parameters set for the target application are sent to the browser plug-in. Wherein the single sign-on address corresponds to the single point address. The user can customize a browser (hereinafter referred to as a binding browser) for logging in to the target application. For example, the user has customized to log in to application A through the IE browser, to log in to application B through the firefox browser, to log in to application C through the Google browser (chrome), and so on. The user-defined configuration information may be maintained by a centralized login client. Alternatively, browser compatibility issues often arise with products based on browser development processes due to different browser kernel functions, e.g., one application may open using google and firefox browsers, but not using IE browsers. The correspondence between browser addresses and single point addresses of applications can be defined according to the characteristic that applications develop based on different browsers.
Fig. 1 is a flowchart of a method for accessing an application through a browser, where the method may be implemented by a device for accessing an application through a browser, and the device may be implemented by software and/or hardware and is typically configured in a computer device. For example, the apparatus may be a browser plug-in configured in a computer device assembly for performing the method for accessing an application through a browser according to any embodiment of the present invention. As shown in fig. 1, the method includes:
step 110, obtaining a single sign-on address and browser address parameters of the target application.
It should be noted that the target application is an application or service to be accessed (or to be run or to be started or to be opened). For example, the current browser presents a centralized login client page for an application, including application A, application B, application C, … …, application N, and so on. In a specific example, the user selects the application a and inputs the browser set for the application a, and may use the application a as the target application, where the single sign-on address of the application a is the single sign-on address of the target application, and the address of the browser set for the application a by the user is used as the browser address parameter. The centralized login client is used for acquiring a single sign-on address and browser address parameters of a target application to be accessed. The centralized login client communicates with the browser plug-in according to a pre-agreed protocol. The browser plug-in is configured in the electronic equipment and is used for realizing browser switching and jumping. It should be noted that, the browser supported by the browser plug-in includes IE, chrome, firefox, and the like. Optionally, for an IE browser, the browser plug-in supports an IE browser with a version above IE 9.
Alternatively, in the case that the centralized login client page is displayed in the current browser, a single sign-on address of the application to be accessed and a corresponding browser address parameter may be input in the centralized login client page. At this time, the application to be accessed is the target application, the input single sign-on address is the single sign-on address of the target application, and the configured browser address parameter is the browser address parameter of the target application.
The single sign-on address is a single-point address, and can be an address of user-free password login provided by an application to be accessed or an application system to be logged in, and a login identifier generated by a 4A system (wherein the 4A system is a unified security management platform solution, and is used for authenticating Authentication, account number, authorization and Audit audios) is carried when the address is accessed. The application to be accessed or the application system to be logged in uses the login identification to authenticate to the unified authentication server. If the authentication is passed, the application to be accessed or the application system to be logged in is directly accessed without inputting a user name and a password. The browser address parameter may be a related parameter such as a browser address.
Illustratively, a single sign-on address and browser address parameter of a target application sent by a centralized login client in response to a user login request is received. For example, a centralized login client is logged in through the current browser, and a centralized login client page is displayed. Optionally, a centralized login client may also be installed in the electronic device, and the centralized login client is logged in. The centralized login client communicates with the browser plug-in through a preset protocol. The user login request is used for designating a single sign-on address of a target application to be accessed by the user and relevant information of a browser defined by the user and used for opening the target application. The related information of the browser comprises browser address parameters, browser names, browser login information and the like. And the centralized login client responds to the user login request and sends the information such as the single sign-on address of the target application, the browser address parameter and the like to the browser plug-in. Further, the browser plug-in receives information such as a single sign-on address and browser address parameters sent by the centralized login client in response to the user login request.
And 120, displaying an application page corresponding to the single sign-on address through a browser corresponding to the browser address parameter when the browser address parameter is the first data.
The browser address parameter has an association relation with the browser, and the corresponding browser can be opened through the browser address parameter. The single sign-on address has an association relationship with the application page, and the application page can be operated by opening the single sign-on address through the browser. Optionally, the application page is a page to which the application jumps after logging in successfully.
The first data indicates that the address represented by the browser address parameter exists. For example, the first data satisfies a preset address condition. Specifically, the first data represents a browser address format in which the browser address parameter meets the specifications of the network transport protocol. After obtaining the single sign-on address and the browser address parameter of the target application, the method further comprises the following steps: judging whether the browser address parameter is data meeting the browser address format specified by the network transmission protocol; if yes, determining that the browser address parameter is first data; otherwise, determining that the browser address parameter is second data. It should be noted that the second data identifies that the browser address represented by the browser parameter does not exist.
When the browser address parameter is the first data, the browser address of the current browser is obtained, the browser address parameter and the browser address are compared, and whether the binding browser corresponding to the browser address parameter is the current browser is judged according to the comparison result. Specifically, when the browser address indicated by the browser address parameter exists, determining the current browser pointed by the current window handle, and acquiring the browser address of the current browser. And comparing the acquired browser address with the browser address parameter, and judging whether the bound browser corresponding to the browser address parameter is the current browser or not according to the comparison result. Wherein the window handle corresponds to a window identifier, each window has an identifier, and the operating system uses the identifier to control the window. For the operating system, the browser corresponding to the current window handle is the currently displayed browser. The binding browser is a browser set by the user for accessing different applications.
When the binding browser is the current browser, controlling the current browser to newly establish a tab page (named as a first tab page for distinguishing), and displaying an application page corresponding to the single sign-on address through the first tab page. For example, when the binding browser is the current browser, a first tab page is newly built in the current browser, and an application page corresponding to the single sign-on address of the target application is displayed through the first tab page.
When the binding browser is not the current browser, switching the current browser into the binding browser, controlling the new tab page (named as a second tab page for distinguishing) of the binding browser, and displaying the application page corresponding to the single sign-on address through the second tab page. For example, when the bound browser is not the current browser, the bound browser is controlled to establish a second tab page, and an application page corresponding to the single sign-on address of the target application is displayed through the second tab page. And switching the current window handle into a window handle corresponding to the binding browser so as to set the binding browser as the current window. The current window handle is switched from the current browser to the binding browser corresponding to the browser address parameter in a jumping manner, so that the application page corresponding to the single sign-on address is displayed through the browser corresponding to the browser address parameter, and the automatic switching and jumping of the browser are realized.
It should be noted that, the order between the step of displaying the application page through the second tab page and the step of setting the binding browser as the current window is not limited to the order listed in this example, and the step of setting the binding browser as the current window may be performed first, or the two steps may be performed in parallel.
And 130, displaying an application page corresponding to the single sign-on address through the current browser when the browser address parameter is the second data.
Wherein the current browser is the browser currently displayed on the display screen of the computer device. And regarding the current browser, taking the window handle as the current window handle, and setting the browser corresponding to the current window handle as the current window. And if the change of the current window handle is detected, correspondingly adjusting the browser corresponding to the current window.
When the browser address indicated by the browser address parameter does not exist, prompt information is generated to prompt the user that the designated browser address does not exist through the prompt information, and the user is inquired whether to open the application page through the current browser. For example, when the browser address indicated by the browser address parameter does not exist, the information prompt box "the browser address xxxxxx designated by you does not exist" is output, and we will open the application with your current browser, and display two controls of yes and no in the information prompt box.
And acquiring response information of the user aiming at the prompt information. Detecting operation information of two controls which are displayed in a prompt box of information, and if the control which indicates yes is operated, determining that the response information of the user for the prompt information is confirmation information. If the control representing "no" is operated, it is determined that the response information of the user to the prompt information is cancellation information.
When the response information is the confirmation information, the current browser is controlled to newly establish a first tab page, and an application page corresponding to the single sign-on address is displayed through the first tab page. When the response information is the cancellation information, the user login request is not responded, and the flow is ended.
According to the technical scheme, the single sign-on address and the browser address parameters of the target application are obtained; and determining whether to display the application page corresponding to the single sign-on address through the browser corresponding to the browser address parameter or display the application page corresponding to the single sign-on address through the current browser according to the numerical value of the browser address parameter. The embodiment of the invention realizes that the corresponding application is opened through the customized browser, if the application is opened by adopting the current browser without customization, the application opening mode is enriched, and the limitation that the application can be opened only through the current browser is avoided. In addition, the automatic switching and skipping of the browser are realized, and the use requirements of users under multiple scenes can be better met.
Fig. 2 is a flowchart of another method for accessing an application through a browser according to an embodiment of the present invention, where on the basis of the foregoing embodiment, the current browser is switched to the binding browser, and the binding browser is controlled to create a second tab page, and further limitation of an application page corresponding to the single sign-on address is displayed through the second tab page. Specifically, the method comprises the following steps: if the binding browser is not opened, opening the binding browser; and controlling the binding browser to newly establish a second tab page, loading application page data corresponding to the single sign-on address through the second tab page, setting the binding browser window as a current browser window, and displaying an application page corresponding to the application page data through the current browser window. And if the binding browser is in an open state, controlling the binding browser to newly establish a second tab page, loading application page data corresponding to the single sign-on address through the second tab page, setting a binding browser window as a current browser window, and displaying an application page corresponding to the application page data through the current browser window.
As shown in fig. 2, the method includes:
step 201, obtaining a single sign-on address and browser address parameters of a target application.
For example, the browser plug-in is communicatively connected to the centralized login client and receives a data message transmitted by the centralized login client, where the data message may include a single sign-on address and browser address parameters. Specifically, the presentation form of the single sign-on address and the browser address parameter in the data packet may be IEPATH | SSOURL |, where IEPATH represents the browser address parameter and is used to represent the browser address; SSOURL represents a single sign-on address.
Fig. 3 is a schematic diagram of connection between a centralized login client and a browser plug-in according to an embodiment of the present invention. As shown in fig. 3, the centralized login client 301 transmits IEPATH | SSOURL | parameters to the browser plug-in 302. The centralized login client 301 and the browser plug-in 302 are both configured in the electronic device 300. The electronic device 300 may be a mobile device such as a smart phone, a personal computer or a tablet computer, or a fixed device such as a Personal Computer (PC) or a smart television. The browser plug-in 302 is used for realizing jump switching among the browsers such as IE, chrome, firefox and the like so as to open a new application by adopting a set browser.
Step 202, determining whether the browser address parameter is data meeting the browser address format specified by the network transmission protocol, if yes, executing step 203, otherwise executing step 208.
For example, the browser plug-in determines IEPATH whether the browser address is present, if so, then step 203 is performed, otherwise step 208 is performed.
It should be noted that, there are various ways of determining whether the browser address indicated by IEPATH exists, and the method is not limited to the way of determining the browser address format specified by the network transport protocol according to the embodiment of the present invention.
Step 203, determining that the browser address parameter is first data.
Step 204, obtaining the browser address of the current browser, and comparing the browser address parameter with the browser address.
For example, the browser plug-in obtains the browser address of the current browser corresponding to the current window handle, and compares whether the obtained browser address parameter is consistent with the browser address.
Step 205, determining whether the binding browser corresponding to the browser address parameter is the current browser, if yes, executing step 206, otherwise executing step 207.
Specifically, when the browser address parameter is consistent with the browser address, determining that the bound browser corresponding to the browser address parameter is the current browser, otherwise, determining that the bound browser corresponding to the browser address parameter is not the current browser.
And 206, controlling the current browser to newly establish a first tab page, and displaying an application page corresponding to the single sign-on address through the first tab page.
Specifically, if the binding browser corresponding to the browser address parameter is the current browser, determining that the binding browser is already opened and is the current browser, and controlling the current browser to display an application page corresponding to the single sign-on address in the newly-built tab page.
Step 207, switching the current browser to the binding browser, controlling the binding browser to newly establish a second tab page, and displaying an application page corresponding to the single sign-on address through the second tab page.
Illustratively, when the bound browser is not the current browser, it is determined whether the bound browser has been opened. Specifically, if the current browser and the transmitted IEPATH are not one browser, the browser addresses of all the opened browsers are obtained and compared with the browser addresses of the bound browser. If the opened browser consistent with the browser address of the bound browser exists, the bound browser is determined to be opened, otherwise, the bound browser is determined to not be opened.
When the current browser and the transmitted IEPATH are not one browser, if the bound browser corresponding to IEPATH is not opened, newly opening the bound browser corresponding to IEPATH; and controlling the new tab page of the binding browser, displaying an application page corresponding to the single sign-on address through the new tab page of the binding browser, and setting a browser window corresponding to the binding browser as a current browser window. Specifically, if the bound browser is not opened, opening the bound browser according to the browser address of the bound browser, setting the window handle of the bound browser as the current window handle, and setting the bound browser as the current window. And loading application page data corresponding to the single sign-on address by binding a newly built tab page in the browser, rendering the application page based on the application page data, and displaying the application page through the current window.
When the current browser and the transferred IEPATH are not one browser, if the bound browser corresponding to IEPATH is in an open state, the browser corresponding to IEPATH does not need to be opened again, but the opened bound browser is controlled to newly establish a second tab page, an application page corresponding to the single sign-on address is displayed through the second tab page, and a browser window corresponding to the bound browser is set as the current browser window. Specifically, if the bound browser is opened but not the current browser, setting a window handle of the bound browser as the current window handle, and setting a browser window corresponding to the bound browser as the current window. And loading application page data corresponding to the single sign-on address by binding a newly built tab page in the browser, rendering the application page based on the application page data, and displaying the application page through the current window.
Step 208, determining that the browser address parameter is second data.
Step 209, generating prompt information to prompt the user that the designated browser address does not exist through the prompt information, and inquiring whether the user opens the application page through the current browser.
Illustratively, if IEPATH addresses do not exist, then a message prompt is given "you specify that the browser address xxxx does not exist, we will open the application with your current browser.
Step 210, obtaining response information of the user aiming at the prompt information.
Step 211, judging whether the response information is a confirmation information, if so, executing step 206, otherwise, executing step 212.
Step 212, the flow ends.
For example, if the answer information of the user for the information prompt box is the confirmation information, loading SSOURL application page data corresponding to the address with the tab page newly built in the current browser, and rendering and displaying. If the response information of the user aiming at the information prompt box is the cancellation information, the user login request is not responded, and the process is ended.
According to the technical scheme, the single sign-on address and the browser address parameters of the target application, which are sent by the centralized login client in response to the user login request, are obtained, so that the browser address which is configured for opening the application and the single sign-on address of the application are self-defined, browser switching and skipping are realized through the browser plug-in based on the self-defined browser address, the application page corresponding to the single sign-on address of the application is displayed through the self-defined browser, and therefore the limitation that the application can only be opened through the current browser is avoided.
Fig. 4 is a block diagram of a device for accessing an application through a browser according to an embodiment of the present invention. The apparatus may be implemented in software and/or hardware and is typically deployed in a computer device. The device realizes that the corresponding application is opened through the customized browser by executing the method for accessing the application through the browser provided by any embodiment of the invention, and avoids the problem that the application corresponding to the application single-point address can only be opened by using the current browser. As shown in fig. 4, the apparatus includes:
a parameter obtaining module 410, configured to obtain a single sign-on address and a browser address parameter of a target application;
The first display module 420 is configured to display, when the browser address parameter is first data, an application page corresponding to the single sign-on address through a browser corresponding to the browser address parameter;
and a second display module 430, configured to display, when the browser address parameter is second data, an application page corresponding to the single sign-on address through a current browser, where the current browser is a browser currently displayed on a display screen of the computer device.
The embodiment of the invention provides a device for accessing an application through a browser, which is used for acquiring a single sign-on address and browser address parameters of a target application; and determining whether to display the application page corresponding to the single sign-on address through the browser corresponding to the browser address parameter or display the application page corresponding to the single sign-on address through the current browser according to the numerical value of the browser address parameter. The embodiment of the invention realizes that the corresponding application is opened through the customized browser, if the application is opened by adopting the current browser without customization, the application opening mode is enriched, and the limitation that the application can be opened only through the current browser is avoided. In addition, the automatic switching and skipping of the browser are realized, and the use requirements of users under multiple scenes can be better met.
Optionally, the parameter obtaining module 410 is specifically configured to:
And receiving a single sign-on address and browser address parameters of the target application sent by the centralized login client in response to the user login request, wherein the centralized login client is used for acquiring the single sign-on address and the browser address parameters of the target application to be accessed.
Optionally, the apparatus further comprises:
The judging module is used for judging whether the browser address parameter is data meeting the browser address format specified by the network transmission protocol after acquiring the single sign-on address and the browser address parameter of the target application;
if yes, determining that the browser address parameter is first data;
otherwise, determining that the browser address parameter is second data.
Optionally, the first display module 420 includes:
The address comparison sub-module is used for acquiring the browser address of the current browser, comparing the browser address parameter with the browser address, and judging whether the binding browser corresponding to the browser address parameter is the current browser or not according to the comparison result;
The page display sub-module is used for controlling the current browser to newly establish a first tab page when the binding browser is the current browser, and displaying an application page corresponding to the single sign-on address through the first tab page;
And the browser switching sub-module is used for switching the current browser into the binding browser when the binding browser is not the current browser, controlling the binding browser to newly establish a second tab page, and displaying an application page corresponding to the single sign-on address through the second tab page.
Optionally, the browser switching submodule is specifically configured to:
If the binding browser is not opened, opening the binding browser;
And controlling the binding browser to newly establish a second tab page, loading application page data corresponding to the single sign-on address through the second tab page, setting the binding browser window as a current browser window, and displaying an application page corresponding to the application page data through the current browser window.
Optionally, the browser switching submodule is specifically further configured to:
and if the binding browser is in an open state, controlling the binding browser to newly establish a second tab page, loading application page data corresponding to the single sign-on address through the second tab page, setting a binding browser window as a current browser window, and displaying an application page corresponding to the application page data through the current browser window.
Optionally, the second display module 430 is specifically configured to:
When the browser address parameter is the second data, generating prompt information to prompt the user that the designated browser address does not exist through the prompt information, and inquiring whether the user opens an application page through the current browser;
acquiring response information of the user aiming at the prompt information;
when the response information is confirmation information, controlling the current browser to newly establish a first tab page, and displaying an application page corresponding to the single sign-on address through the first tab page
The device for accessing the application through the browser provided by the embodiment of the invention can execute the method for accessing the application through the browser provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention, and as shown in fig. 5, the computer device includes a processor 50, a memory 51, an input device 52 and an output device 53; the number of processors 50 in the computer device may be one or more, one processor 50 being taken as an example in fig. 5; the processor 50, the memory 51, the input means 52 and the output means 53 in the computer device may be connected by a bus or by other means, in fig. 5 by way of example.
The memory 51 is a computer-readable storage medium that can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules (e.g., the parameter acquisition module 410, the first display module 420, and the second display module 430) corresponding to a method of accessing an application through a browser in an embodiment of the present invention. The processor 50 executes various functional applications of the computer device and data processing by running software programs, instructions and modules stored in the memory 51, i.e. implements the above-described method of accessing applications through a browser.
The memory 51 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 51 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 51 may further comprise memory located remotely from processor 50, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 52 is operable to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the computer apparatus. The output means 53 may comprise a display device such as a display screen.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a method of accessing an application through a browser, the method comprising:
Acquiring a single sign-on address and browser address parameters of a target application;
When the browser address parameter is first data, displaying an application page corresponding to the single sign-on address through a browser corresponding to the browser address parameter;
And when the browser address parameter is the second data, displaying an application page corresponding to the single sign-on address through a current browser, wherein the current browser is a browser currently displayed on a display screen of the computer equipment.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the method for accessing an application through a browser provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the above embodiment of the device for accessing an application through a browser, each unit and module included are only divided according to functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. A method for accessing an application through a browser, comprising:
Acquiring a single sign-on address and browser address parameters of a target application;
When the browser address parameter is first data, displaying an application page corresponding to the single sign-on address through a browser corresponding to the browser address parameter;
when the browser address parameter is second data, displaying an application page corresponding to the single sign-on address through a current browser, wherein the current browser is a browser currently displayed on a display screen of the computer equipment;
The displaying, by the browser corresponding to the browser address parameter, the application page corresponding to the single sign-on address includes:
obtaining a browser address of a current browser, comparing the browser address parameter with the browser address, and judging whether a binding browser corresponding to the browser address parameter is the current browser or not according to a comparison result; the binding browser is a browser set by a user and used for accessing different applications;
when the binding browser is the current browser, controlling the current browser to newly establish a first tab page, and displaying an application page corresponding to the single sign-on address through the first tab page;
when the binding browser is not the current browser, switching the current browser into the binding browser, controlling the binding browser to newly establish a second tab page, and displaying an application page corresponding to the single sign-on address through the second tab page;
when the browser address parameter is the second data, displaying the application page corresponding to the single sign-on address through the current browser, wherein the method comprises the following steps:
When the browser address parameter is the second data, generating prompt information to prompt the user that the designated browser address does not exist through the prompt information, and inquiring whether the user opens an application page through the current browser;
acquiring response information of the user aiming at the prompt information;
and when the response information is the confirmation information, controlling the current browser to newly establish a first tab page, and displaying an application page corresponding to the single sign-on address through the first tab page.
2. The method of claim 1, wherein the obtaining single sign-on address and browser address parameters of the target application comprises:
And receiving a single sign-on address and browser address parameters of the target application sent by the centralized login client in response to the user login request, wherein the centralized login client is used for acquiring the single sign-on address and the browser address parameters of the target application to be accessed.
3. The method of claim 1, further comprising, after obtaining the single sign-on address and browser address parameters of the target application:
Judging whether the browser address parameter is data meeting the browser address format specified by a network transmission protocol;
if yes, determining that the browser address parameter is first data;
otherwise, determining that the browser address parameter is second data.
4. The method of claim 1, wherein the switching the current browser to the binding browser, controlling the binding browser to create a second tab, and displaying the application page corresponding to the single sign-on address through the second tab, includes:
If the binding browser is not opened, opening the binding browser;
And controlling the binding browser to newly establish a second tab page, loading application page data corresponding to the single sign-on address through the second tab page, setting the binding browser window as a current browser window, and displaying an application page corresponding to the application page data through the current browser window.
5. The method of claim 1, wherein the switching the current browser to the binding browser, controlling the binding browser to create a second tab, and displaying the application page corresponding to the single sign-on address through the second tab, includes:
and if the binding browser is in an open state, controlling the binding browser to newly establish a second tab page, loading application page data corresponding to the single sign-on address through the second tab page, setting a binding browser window as a current browser window, and displaying an application page corresponding to the application page data through the current browser window.
6. An apparatus for accessing an application via a browser, comprising:
The parameter acquisition module is used for acquiring single sign-on address and browser address parameters of the target application;
the first display module is used for displaying an application page corresponding to the single sign-on address through a browser corresponding to the browser address parameter when the browser address parameter is first data;
The second display module is used for displaying an application page corresponding to the single sign-on address through a current browser when the browser address parameter is second data, wherein the current browser is a browser currently displayed on a display screen of the computer equipment;
The first display module includes:
the address comparison sub-module is used for acquiring the browser address of the current browser, comparing the browser address parameter with the browser address, and judging whether the binding browser corresponding to the browser address parameter is the current browser or not according to the comparison result; the binding browser is a browser set by a user and used for accessing different applications;
The page display sub-module is used for controlling the current browser to newly establish a first tab page when the binding browser is the current browser, and displaying an application page corresponding to the single sign-on address through the first tab page;
The browser switching sub-module is used for switching the current browser into the binding browser when the binding browser is not the current browser, controlling the binding browser to newly establish a second tab page, and displaying an application page corresponding to the single sign-on address through the second tab page;
The second display module is specifically configured to:
When the browser address parameter is the second data, generating prompt information to prompt the user that the designated browser address does not exist through the prompt information, and inquiring whether the user opens an application page through the current browser;
acquiring response information of the user aiming at the prompt information;
and when the response information is the confirmation information, controlling the current browser to newly establish a first tab page, and displaying an application page corresponding to the single sign-on address through the first tab page.
7. A computer device, the computer device comprising:
one or more processors;
A memory for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of accessing an application through a browser as recited in any of claims 1-5.
8. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the method of accessing an application through a browser as claimed in any one of claims 1 to 5.
CN202110209624.4A 2021-02-24 2021-02-24 Method, device, equipment and medium for accessing application through browser Active CN112883309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110209624.4A CN112883309B (en) 2021-02-24 2021-02-24 Method, device, equipment and medium for accessing application through browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110209624.4A CN112883309B (en) 2021-02-24 2021-02-24 Method, device, equipment and medium for accessing application through browser

Publications (2)

Publication Number Publication Date
CN112883309A CN112883309A (en) 2021-06-01
CN112883309B true CN112883309B (en) 2024-05-28

Family

ID=76054434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110209624.4A Active CN112883309B (en) 2021-02-24 2021-02-24 Method, device, equipment and medium for accessing application through browser

Country Status (1)

Country Link
CN (1) CN112883309B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365907A (en) * 2012-04-06 2013-10-23 腾讯科技(深圳)有限公司 Method, system and server for displaying payment page
CN107438100A (en) * 2017-07-25 2017-12-05 中国联合网络通信集团有限公司 Web access method and browser
CN107800611A (en) * 2016-09-07 2018-03-13 腾讯科技(深圳)有限公司 The method and page layout switch device of a kind of page layout switch
US10733260B1 (en) * 2019-05-03 2020-08-04 Microsoft Technology Licensing, Llc Page display by hosted browser within controlling browser
CN112214712A (en) * 2020-10-28 2021-01-12 新华三大数据技术有限公司 Automatic browser switching method and device, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11442599B2 (en) * 2019-06-07 2022-09-13 Microsoft Technology Licensing, Llc Systems and methods for hosting a browser within another browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365907A (en) * 2012-04-06 2013-10-23 腾讯科技(深圳)有限公司 Method, system and server for displaying payment page
CN107800611A (en) * 2016-09-07 2018-03-13 腾讯科技(深圳)有限公司 The method and page layout switch device of a kind of page layout switch
CN107438100A (en) * 2017-07-25 2017-12-05 中国联合网络通信集团有限公司 Web access method and browser
US10733260B1 (en) * 2019-05-03 2020-08-04 Microsoft Technology Licensing, Llc Page display by hosted browser within controlling browser
CN112214712A (en) * 2020-10-28 2021-01-12 新华三大数据技术有限公司 Automatic browser switching method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN112883309A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN107733922B (en) Method and apparatus for invoking a service
CN108513154B (en) Smart home control method based on smart television, smart television and storage medium
US9607143B2 (en) Provisioning account credentials via a trusted channel
US9882885B2 (en) Systems and methods for login and authorization
CN110324338B (en) Data interaction method, device, fort machine and computer readable storage medium
CN111614673A (en) Operation method of authority authentication system based on CAS
CN106254319B (en) Light application login control method and device
CN105392136A (en) Method and device for access to router based on two-dimensional code
CN110932944A (en) Method and system for controlling intelligent household equipment by visitor terminal
CN114995214A (en) Method, system, device, equipment and storage medium for remotely accessing application
US20140130134A1 (en) Managing and Providing Access to Applications in an Application-Store Module
CN104635543A (en) Method and device for carrying out management operation
CN109726545B (en) Information display method, equipment, computer readable storage medium and device
CN109510799B (en) Page display method, browser client, equipment and storage medium
CN111064708A (en) Authorization authentication configuration method, authorization authentication device and electronic equipment
CN112035807A (en) Object authentication method and apparatus, storage medium, and electronic apparatus
CN111314355B (en) Authentication method, device, equipment and medium of VPN (virtual private network) server
KR102118380B1 (en) An access control system of controlling server jobs by users
CN112883309B (en) Method, device, equipment and medium for accessing application through browser
CN109451497B (en) Wireless network connection method and device, electronic equipment and storage medium
CN116546062A (en) Cloud mobile phone control method and device, cloud server and storage medium
CN114675876B (en) Service processing method and device, electronic equipment and storage medium
US20160006711A1 (en) Device-agnostic user authentication
CN112532568B (en) Interaction method, device, equipment and computer readable storage medium
CN110912959B (en) Equipment access method and device, management and control system and electronic equipment

Legal Events

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