Web applications have become increasingly popular within the enterprise as a result of their flexibility of deployment and their relatively intuitive interfaces, but web applications present potential problems in the enterprise environment due to security and governance issues.
Some embodiments of the present invention may be useful in reverse proxy and Single Sign On (SSO) environments.
For purposes of this application a reverse proxy can be any system that can do such a reverse mapping. In one embodiment, a reverse proxy is a server that proxies content from a remote web application to an end-user and may or may not modify that content.
No additional or supplemental functionality, such as SSO, should be imputed to the meaning of the term “Reverse Proxy” or “Proxy”.
Supplemental functionalities can include authentication to determine who the user is; authorization to determine if the user has access to the requested resources; transformation functionality to use tags to combine data from different applications, such as web applications and/or rewrite URLs within a response to point to the reverse proxy 404. The functionality can also include gathering analytics and auditing data.
Authentications and authorizations can be part of a SSO system such that all requests through the reverse proxy 104 only require a single sign on.
Authorization can be done by having the reverse proxy 404 handle the mapping of users for a web application to roles. In one embodiment, the web applications can use different roles while the mapping of users to user can be controlled by the reverse proxy 404.
In one embodiment, different types of authentication can be ranked in order of security. The authentication can be used to access the application if the SSO authentication has a security authorization at or above that required by the application.
The use of a reverse proxy can also allow for centralized governance. The reverse proxy can keep a central record of web application usage statistics.
Single sign on can be enabled by having the reverse proxy 404 send credentials (such as user names and passwords) from a credential vault 410 to the application.
In an exemplary case, the rewriting of URLs can be done by checking the URL for a prefix mapped by the reverse proxy and then converting the prefix to point to the reverse proxy. For example, “http://mail.companyname.com/billing” can be converted to “http://reverseproxy.companyname.com/mail/billing”.
One embodiment of the present invention is a non-invasive way to insert elements into a web page. In some cases, it is desired to not modify the source code of a web page. For example, the web application may be obtained from a third party or it can be otherwise undesirable or difficult to modify the web application code. In this embodiment, a server, such as a reverse proxy, can search for an identifier, such as a name or a code pattern, in the web page and then use this identifier to determine whether to insert an element into the web page.
The inserted element can be a pagelet as described in the patent application Ser. No. 11/765,394, incorporated here by reference. The inserted element can also be static HTML. In that case, the static HTML can be stored in a table at the server.
The inserted element can be an additional web application that can be injected into the displayed web page.
Currently there is no way to inject content, user interface markup (html), widgets, etc without directly modifying the existing application code or creating an entirely new application from scratch—which is almost always either impossible or impractical because of the time required.
Embodiments of the present invention concern a declarative non-invasive injection. Such a system can be policy driven.
By supporting this externalized approach to application composition, enrichment, mashups, aggregation, etc—any packaged and custom applications can be enhanced with no modification to the end application code itself.
Step 1: User enters the application's URL in the browser—like www.bea.com which is registered to a reverse proxy, such as Ensemble.
Step 2: The reverse proxy can intercept this request and then query the database to get the resource mapping, all injection rules, and policies associated to this requested resource (URL).
Step 3: If this resource (URL) has injection rules defined, the reverse proxy can first evaluate the associated policy or policies for each injection rule to determine which rules should be executed on the requested resource (URL).
Step 4a: The reverse proxy can dispatch the request for the resource the user has requested, which is determined by the resource mapping in Ensemble—ex:
www.bea.com→internal.bea.com
Step 4b, c: The reverse proxy can dispatch parallel request(s) over HTTP(S) for each dynamic type injection rules required for the targeted resource requested by the user. For static type injection rules, straight markup can be injected which is stored in the database.
Step 5: The reverse proxy can take the markup from the requested (target) resource and apply each injection rule(s). To apply an injection rule, the node selectors can be executed by the reverse proxy until a match is found, then the markup from that rule can be injected at the location [before, after, between] at the point where the selector has identified in the DOM-TREE of the requested (targeted) resource's markup.
Step 6: The combined markup from all resources can be combined together based on the rules to return a single document which can be rendered by the browser containing code (markup or content) from potentially multiple applications or sources.
The table 222 can also include a location indicator that can indicate to proxy 220 where in the web page to insert the pagelet.
The indication of page and location can be by pattern matching. For example, a search string can be indicated and each page with the string can have the element inserted. In one embodiment, the web page indication can use Boolean operators such as “AND” and “OR”. Alternatively, static HTML can be inserted into the page directly. In one embodiment, a DOM-Tree is used to determine the position that the element is inserted into the page.
Optionally, the table 222 can also indicate wrapper code for the element. In the example of
The table 222 can also optionally include attributes that are to be obtained from the page and provided to the element, such as a pagelet. In the example of
Looking at
In the example of
One embodiment of the present invention comprises determining a second web application by recognizing a particular page in a first web application to indicate a pagelet web application and inserting the second web application into a pre-configured section of a page of the first web application. The first web application page and the location to insert the second web application can be determined either programmatically or by specifying a specific page or location directly. This embodiment allows a second web application code to be inserted into a first web application, where the first web application code has not been modified prior to the first web application being proxied.
Also shown is a policy. An exemplary policy can include the display of the injected element to users based on the requested user's role or some other information. In this example, the server 320 will insert the “element B” into the page only if the policy (Role=Analyst and Time=Daytime) is met. This means that the system has flexibility in the presentation of the elements to the users. Certain users can be selected to have the element displayed while others will not have the element displayed. Time and other policy information can be used to determine whether to display the element.
The server 320 can also have access to user preferences 321. The user preferences 321 can be set by the user to control the display of the element. For example, the element 328 (Element B) can have a preference selection 329 that indicates information such as whether the element B is to be displayed, as well as the size, or the location of the display of element B.
The server 320 can keep track of the preferences by persisting the preferences such as having a cookie sent from the user's browser 326.
In one embodiment, an URL can define the URL(s) for which an injection rule is applied. In one embodiment, type can be [Static|Dynamic]. In one embodiment, content is only defined for static type rules (literal injected markup). Description can be an injection rule description for administrators or developers.
NodeSelectors of one embodiment:
Policies of one embodiment:
Injection policy of one embodiment:
There can also be a means which injection rules can be controlled by the application user which is stored in their profile or preferences so that the user as well can dictate which injection definitions get executed per resource.
It can be useful to inject content into pages that can not be edited. Ensemble can enable this. Regular expressions and/or DOM can be used to determine where in a proxied page to inject markup. In one embodiment, injections can occur immediately before the specified location, immediately after it or in place of it. Markup can include anything, including a pagelet or other adaptive tag. Search-inject combinations can be specified in the admin user interface. In one embodiment, specific search-inject combos can be applicable to more than one resource. The search-inject combos can also be enableable/disableable for specific URL patterns in that resource.
HTML, CSS and JavaScript might all be changed in this manner. Substitute markup can be entered directly into the runner admin user interface, or a URL to the substitute markup can be specified.
A resource administrator can insert arbitrary text into a pre-existing webpage without modifying the source HTML. A reverse proxy can overlay the original page with these modifications and send the final result to the browser.
This can allow the owner to add or replace the existing webpage with new features without modifying the source page. It can also be used to remove functionality from a page. The administrator can select what text to look for in the existing page, and the reverse proxy can replace or insert some additional content at that location. The administrator can then select the set of resources that will be injected with this modification.
A single insertion can be applied to a group of resources, making it easy to apply a single change uniformly across a broad scope of web pages. Web Injection need not be limited just to HTML; it can be used to manipulate CSS, Javascript, or any other content that is transferred over HTTP. Examples:
This allows for adding or changing functionality on an existing page without modifying the source HTML. This non-invasive change can be of high value in many cases, most notably when:
Use cases can include:
Optionally:
In one embodiment, this feature can have three major components: The persistent objects, AdminUI component, and the algorithm to inject.
The top-level persistent object can be an Injector Set, which can contain a series of related web injectors. These can be then attached to one or more resources.
Web Injector Set Persistent Object can be:
Web Injector Persistent Object can be:
On a Resource page, there can be a sub-tab where the user can select which Web Injector sets to attach to the resource, along with which subset of pages each web injector set applies.
Resource Persistent Object can be:
Resource-WebInjectorSet Link can be:
AdminUI can include adding such as:
AdminUI Configuration:
For Locations, different selection methods can include:
An Intercept Algorithm can be used. There are several ways to find a match in a page. These can include candidates are regular expression matching, simple string matching, and applying a Unix-style Diff tool. In some embodiments, DOM parsing may not be performant, and more importantly, specifying a DOM location can be brittle and could easily break if the target page was revised in superficial ways.
In one embodiment, the injection string can be inserted during a PTTransformer module phase, as soon as HTML is retrieved, before pagelets are processed. This allows for pagelets to be injected into a page. How to apply multiple injectors in the same page at once is a performance concern we must look at.
Exemplary Sequence of Events
During injection, the following actions can be taken:
for each injector
Performances of the injection are important, since this feature will be invoked during proxy requests of resources.
Embodiments of the present invention can include computer-based methods and systems which may be implemented using conventional general purpose or a specialized digital computer(s) or microprocessor(s), programmed according to the teachings of the present disclosure. Appropriate software coding can readily be prepared by programmers based on the teachings of the present disclosure.
Embodiments of the present invention can include a computer readable medium, such as computer readable storage medium. The computer readable storage medium can have stored instructions which can be used to program a computer to perform any of the features present herein. The storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD-ROMs, micro drive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, flash memory or any media or device suitable for storing instructions and/or data. The present invention can include software for controlling both the hardware of a computer, such as general purpose/specialized computer(s) or microprocessor(s), and for enabling them to interact with a human user or other mechanism utilizing the results of the present invention. Such software may include, but is not limited to, device drivers, operating systems, execution environments/containers, and user applications.
Embodiments of the present invention can include providing code for implementing processes of the present invention. The providing can include providing code to a user in any manner. For example, the providing can include transmitting digital signals containing the code to a user; providing the code on a physical media to a user; or any other method of making the code available.
Embodiments of the present invention can include a computer-implemented method for transmitting the code which can be executed at a computer to perform any of the processes of embodiments of the present invention. The transmitting can include transfer through any portion of a network, such as the Internet; through wires, the atmosphere or space; or any other type of transmission. The transmitting can include initiating a transmission of code; or causing the code to pass into any region or country from another region or country. A transmission to a user can include any transmission received by the user in any region or country, regardless of the location from which the transmission is sent.
Embodiments of the present invention can include a signal containing code which can be executed at a computer to perform any of the processes of embodiments of the present invention. The signal can be transmitted through a network, such as the Internet; through wires, the atmosphere or space; or any other type of transmission. The entire signal need not be in transit at the same time. The signal can extend in time over the period of its transfer. The signal is not to be considered as a snapshot of what is currently in transit.
The forgoing description of preferred embodiments of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations will be apparent to one of ordinary skill in the relevant arts. For example, steps preformed in the embodiments of the invention disclosed can be performed in alternate orders, certain steps can be omitted, and additional steps can be added. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular used contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.
This application claims priority to U.S. Provisional Application No. 60/974,013 entitled “NON-INVASIVE CONTEXTUAL AND RULE DRIVEN INJECTION PROXY” by Amend et al., filed Sep. 20, 2007, which is hereby incorporated by reference [Atty. Docket No. BEAS-02257US0].
Number | Date | Country | |
---|---|---|---|
60974013 | Sep 2007 | US |