The following relates to data processing systems and processes, and more particularly relates to systems and processes for logging into an application on a second domain from a first domain.
Modern software development is evolving away from the client-server model toward “cloud”-based processing systems that provide access to data and services via the Internet or other networks. In contrast to prior systems that hosted networked applications on dedicated server hardware, the cloud computing model allows applications to be provided over the network “as a service” supplied by an infrastructure provider. The infrastructure provider typically abstracts the underlying hardware and other resources used to deliver a customer-developed application so that the customer no longer needs to operate and support dedicated server hardware. The cloud computing model can often provide substantial cost savings to the customer over the life of the application because the customer no longer needs to provide dedicated network infrastructure, electrical and temperature controls, physical security and other logistics in support of dedicated server hardware.
Although multi-tenant platforms can provide substantial benefits, they can be relatively difficult to design and develop. The often competing demands of integration and isolation between tenants, for example, can lead to any number of challenges in design and implementation. For example, even though multiple tenants share a common server, each tenant may be able to provide data or services to its customers using the tenant's own separate, unique network domain. Due to the nature of many network communications protocols (e.g., hypertext transport protocol (HTTP)), it can be difficult, in practice, for an administrator or other approved user to switch between different domains hosted by a common server for administrative tasks, troubleshooting or other purposes.
Exemplary embodiments will hereinafter be described in conjunction with the following drawing figures, wherein like numerals denote like elements, and
According to various exemplary embodiments, systems and methods are provided to allow a user of a first domain to login to an application on a second domain in a multi-tenant database environment. If an administrator is attempting to become another user on the same domain, the administrator may acquire a session identification in a cookie allowing the administrator to become the other user. However, cookies can not be shared between domains. Accordingly, in one exemplary embodiment, a server associated with a first domain prepares a substitute user request which is sent to a second domain to allow the administrator to login to an application on a second domain, as discussed in further detail below.
Turning now to
A “tenant” generally refers to a group of users that shares access to common data within database 130. Tenants may represent customers, customer departments, business or legal organizations, and/or any other entities that maintain data for particular sets of users within system 100. Although multiple tenants may share access to a common server 102 and database 130, the particular data and services provided from server 102 to each tenant can be securely isolated from those provided to other tenants. The multi-tenant architecture allows different sets of users to share functionality without necessarily sharing each other's data 132.
Database 130 is any sort of repository or other data storage system capable of storing and managing data 132 associated with any number of tenants. Database 130 may be implemented using any type of conventional database server hardware. In various embodiments, database 130 shares processing hardware 104 with server 102. In other embodiments, database 130 is implemented using separate physical and/or virtual database server hardware that communicates with server 102 to perform the various functions described herein.
Server 102 is implemented using one or more actual and/or virtual computing systems that collectively provide a dynamic application platform 110 for generating virtual applications 128A-B. Server 102 operates with any sort of conventional computing hardware 104, such as any processor 105, memory 106, input/output features 107 and the like. Processor 105 may be implemented using one or more of microprocessors, microcontrollers, processing cores and/or other computing resources spread across any number of distributed or integrated systems, including any number of “cloud-based” or other virtual systems. Memory 106 represents any non-transitory short or long term storage capable of storing programming instructions for execution on processor 105, including any sort of random access memory (RAM), read only memory (ROM), flash memory, magnetic or optical mass storage, and/or the like. Input/output features 107 represent conventional interfaces to networks (e.g., to network 145, or any other local area, wide area or other network), mass storage, display devices, data entry devices and/or the like. In a typical embodiment, application platform 110 gains access to processing resources, communications interfaces and other features of hardware 104 using any sort of conventional or proprietary operating system 108. As noted above, server 102 may be implemented using a cluster of actual and/or virtual servers operating in conjunction with each other, typically in association with conventional network communications, cluster management, load balancing and other features as appropriate.
When a user of, for example, client device 140A accessing virtual application 128A on Domain1, experiences an error, the user may contact an administrator of the server 102 for assistance. If the administrator were to log into the Domain1 as an administrator the administrator may not experience the same error as the user. Accordingly, the server 102 also includes a substitute user servlet (“SUServlet”) 150 which allows the administrator to virtually become the user on the user's domain. Each domain may have its own SUServlet 150 to manage substitute user requests (“SU requests”). The SUServlet may, for example, be a Java servlet or the like. As discussed above, the server 102 may be implemented using a cluster of actual and/or virtual servers operating in conjunction with each other. Each of the actual and/or virtual servers may have a SUServlet 150 operating thereon. Each SUServlet may be in communication via the network 145 and may share, for example, encryption keys which may be used to verify substitute user (“SU”) requests as discussed in further detail below.
Data 132 may be organized and formatted in any manner to support multi-tenant application platform 110. In various embodiments, data 132 is suitably organized into a relatively small number of large data tables to maintain a semi-amorphous “heap”-type format. Data 132 can then be organized as needed for a particular virtual application 128A-B. In various embodiments, conventional data relationships are established using any number of pivot tables 234 that establish indexing, uniqueness, relationships between entities, and/or other aspects of conventional database organization as desired.
Further data manipulation and report formatting is generally performed at run-time using a variety of meta-data constructs. Metadata within a universal data directory (UDD) 236, for example, can be used to describe any number of forms, reports, workflows, user access privileges, business logic and other constructs that are common to multiple tenants. Tenant-specific formatting, functions and other constructs may be maintained as tenant-specific metadata 238A-B for each tenant, as desired. Rather than forcing data 132 into an inflexible global structure that is common to all tenants and applications, then, database 130 is organized to be relatively amorphous, with tables 234 and metadata 236-238 providing additional structure on an as-needed basis. To that end, application platform 110 suitably uses tables 234 and/or metadata 236, 238 to generate “virtual” components of applications 128A-B to logically obtain, process, and present the relatively amorphous data 132 from database 130.
Application platform 110 is any sort of software application or other data processing engine that generates virtual applications 128A-B that provide data and/or services to client devices 140A-B. Virtual applications 128A-B are typically generated at run-time in response to queries received from client devices 140A-B. In the example illustrated in
Runtime application generator 220 dynamically builds and executes virtual applications 128A-B in response to specific requests received from client devices 140A-B. Virtual applications 128A-B created by tenants are typically constructed in accordance with tenant-specific metadata 238, which describes the particular tables, reports, interfaces and/or other features of the particular application. In various embodiments, each virtual application 128A-B generates dynamic web content that can be served to a browser or other client program 142A-B associated with client device 140A-B, as appropriate.
Application generator 220 suitably interacts with query generator 214 to efficiently obtain multi-tenant data 132 from database 130 as needed. In a typical embodiment, query generator 214 considers the identity of the user requesting a particular function, and then builds and executes queries to database 130 using system-wide metadata 236, tenant specific metadata 238, pivot tables 234 and/or any other available resources. Query generator 214 in this example therefore maintains security of the multi-tenant database 130 by ensuring that queries are consistent with access privileges granted to the user that initiated the request.
Data processing engine 212 performs bulk processing operations on data 132 such as uploads or downloads, updates, online transaction processing and/or the like. In many embodiments, less urgent bulk processing of data 132 can be scheduled to occur as processing resources become available, thereby giving priority to more urgent data processing by query generator 214, search engine 216, virtual applications 128A-B and/or the like. Again, the various components, modules and inter-relationships of other application platforms 120 may vary from the particular examples described herein.
In operation, then, developers use application platform 110 to create data-driven virtual applications 128A-B for the tenants that they support. Such applications 128A-B may make use of interface features such as tenant-specific screens 224, universal screens 222 or the like. Any number of tenant-specific and/or universal objects 226 may also be available for integration into tenant-developed applications 128A-B. Data 132 associated with each application 128A-B is provided to database 130, as appropriate, and stored until requested, along with metadata 138 that describes the particular features (e.g., reports, tables, functions, etc.) of tenant-specific application 128A-B until needed.
Data and services provided by server 102 can be retrieved using any sort of personal computer, mobile telephone, tablet or other network-enabled client device 140 on network 145. Typically, the user operates a conventional browser or other client program 242 to contact server 102 via network 145 using, for example, the hypertext transport protocol (HTTP) or the like. The user typically authenticates his or her identity to the server 102 to obtain a session identification (“SID”) that identifies the user in subsequent communications with server 102. When the identified user requests access to a virtual application 128A-B, application generator 220 suitably creates the application at run time based upon metadata 236 and 238, as appropriate. Query generator 214 suitably obtains the requested data 132 from database 130 as needed to populate the tables, reports or other features of virtual application 128A-B. As noted above, the virtual application 128A-B may contain Java, ActiveX or other content that can be presented using conventional client software 142A-B running on client device 140A-B; other embodiments may simply provide dynamic web or other content that can be presented and viewed by the user, as desired.
The administrator, from the administrative device, may then make a substitute user request (“SU request”) to a SUServlet 150 on the first domain, requesting to become a substitute user for a user on a second domain. (Step 330). As discussed above, each domain one each actual and/or virtual server operating in conjunction with each other to form server 102 may have its own SUServlet 150 thereon. In another embodiment, the request may be redirected, via a HTTP redirect to a SUServlet 150 on another domain or server which may manage the SU request. An HTTP redirect causes a web browser on the administrative device to be redirected from a first location to a second location.
The SUServlet 150 then validates the SU request. (Step 332). In one embodiment, for example, the SUServlet 150 may verify the login information of the administrator to validate that the SU request came from an administrator of the server 102. If the SU request is validated, the SUServlet 150 then prepares the SU request by encrypting the administrators SID, IP address and domain information. (Step 334). In another embodiment, for example, the SUServlet also encrypts a timestamp, corresponding to when the SU request was prepared. The SU request, for example, can be configured to expire a predetermined period after the encrypted timestamp. In one embodiment, for example, a target user identification, identifying the user the administrator is attempting to become on the second domain, may also be encrypted to be included to the SU request. The data is encrypted so that the second domain can prevent man-in-the-middle style attacks by verifying the origin of the SU request, as discussed in further detail below.
The encrypted information and the SU request are then returned to the administrative device (Step 340). The administrative device may then send, for example by using a HTTP post, the prepared SU request (i.e., the SU request and the encrypted information) to the server associated with the second domain. (Step 342). In one embodiment, for example, the prepared SU request may be redirected from the administrative device using a HTTP redirect.
As discussed, the SUServlet 150 on the second domain validates the SU Request. (Step 344). The second domain may, for example, decrypt the encrypted IP address and compare the decrypted IP address with the IP address where the SU request originated. If the IP addresses do not match, the second domain may reject the SU request.
After the SU request is approved, the second domain then sends an HTTP post or put to the administrative device including a new SID which allows the administrator to access the second domain as the target user. (Step 350). The new SID may be saved, for example, as a cookie on the administrative device. In one embodiment, for example, a regular session identification (“RSID”) or other additional data can also be sent back to the administrative device via the HTTP post. In an ordinary login, the SID cookie stores the user's session id which determines the identify of the logged in user. When the administrator logs in as a second user, the SID is overwritten to be that of the user the administrator is “impersonating.” The RSID can be used to identify that this is an impersonation login and not the actual user. In one embodiment, for example, the RSID can identify that user of the second domain as the administrator, allowing the administrator access to everything related to the targeted user, but preventing the administrator from modifying any of the targeted user's data.
Once the administrative device receives the new SID, the administrator can access an application or other element on the second domain as if they were the target user. As discussed above, the administrator may perform, for example, diagnostic work or debugging work. (Step 352).
When the administrator requests to log out of the session on the second domain (Step 360) the server running the second domain clears the administrators SID and RSID and sends a new SID to the administrators device allowing the administrative device to be redirected back the first domain. (Step 370). The new SID can, for example, be the same SID which was encrypted in Step 332.
Generally speaking, the various functions and features of method 300 may be carried out with any sort of hardware, software and/or firmware logic that is stored and/or executed on any platform. Some or all of method 300 may be carried out, for example, by logic executing within system 100 in
The term “exemplary” is used herein to represent one example, instance or illustration that may have any number of alternates. Any implementation described herein as “exemplary” should not necessarily be construed as preferred or advantageous over other implementations.
Although several exemplary embodiments have been presented in the foregoing description, it should be appreciated that a vast number of alternate but equivalent variations exist, and the examples presented herein are not intended to limit the scope, applicability, or configuration of the invention in any way. To the contrary, various changes may be made in the function and arrangement of the various features described herein without departing from the scope of the claims and their legal equivalents.
This application claims the benefit of U.S. provisional patent application Ser. No. 61/352,303, filed Jun. 7, 2010, the entire content of which is incorporated by reference herein.
Number | Name | Date | Kind |
---|---|---|---|
5577188 | Zhu | Nov 1996 | A |
5608872 | Schwartz et al. | Mar 1997 | A |
5649104 | Carleton et al. | Jul 1997 | A |
5715450 | Ambrose et al. | Feb 1998 | A |
5761419 | Schwartz et al. | Jun 1998 | A |
5819038 | Carleton et al. | Oct 1998 | A |
5821937 | Tonelli et al. | Oct 1998 | A |
5831610 | Tonelli et al. | Nov 1998 | A |
5873096 | Lim et al. | Feb 1999 | A |
5918159 | Fomukong et al. | Jun 1999 | A |
5963953 | Cram et al. | Oct 1999 | A |
6055637 | Hudson et al. | Apr 2000 | A |
6092083 | Brodersen et al. | Jul 2000 | A |
6169534 | Raffel et al. | Jan 2001 | B1 |
6178425 | Brodersen et al. | Jan 2001 | B1 |
6189011 | Lim et al. | Feb 2001 | B1 |
6216135 | Brodersen et al. | Apr 2001 | B1 |
6233617 | Rothwein et al. | May 2001 | B1 |
6266669 | Brodersen et al. | Jul 2001 | B1 |
6295530 | Ritchie et al. | Sep 2001 | B1 |
6324568 | Diec et al. | Nov 2001 | B1 |
6324693 | Brodersen et al. | Nov 2001 | B1 |
6336137 | Lee et al. | Jan 2002 | B1 |
D454139 | Feldcamp et al. | Mar 2002 | S |
6367077 | Brodersen et al. | Apr 2002 | B1 |
6393605 | Loomans | May 2002 | B1 |
6405220 | Brodersen et al. | Jun 2002 | B1 |
6434550 | Warner et al. | Aug 2002 | B1 |
6446089 | Brodersen et al. | Sep 2002 | B1 |
6535909 | Rust | Mar 2003 | B1 |
6549908 | Loomans | Apr 2003 | B1 |
6553563 | Ambrose et al. | Apr 2003 | B2 |
6560461 | Fomukong et al. | May 2003 | B1 |
6574635 | Stauber et al. | Jun 2003 | B2 |
6577726 | Huang et al. | Jun 2003 | B1 |
6601087 | Zhu et al. | Jul 2003 | B1 |
6604117 | Lim et al. | Aug 2003 | B2 |
6604128 | Diec | Aug 2003 | B2 |
6609150 | Lee et al. | Aug 2003 | B2 |
6621834 | Scherpbier et al. | Sep 2003 | B1 |
6654032 | Zhu et al. | Nov 2003 | B1 |
6665648 | Brodersen et al. | Dec 2003 | B2 |
6665655 | Warner et al. | Dec 2003 | B1 |
6684438 | Brodersen et al. | Feb 2004 | B2 |
6711565 | Subramaniam et al. | Mar 2004 | B1 |
6724399 | Katchour et al. | Apr 2004 | B1 |
6728702 | Subramaniam et al. | Apr 2004 | B1 |
6728960 | Loomans et al. | Apr 2004 | B1 |
6732095 | Warshavsky et al. | May 2004 | B1 |
6732100 | Brodersen et al. | May 2004 | B1 |
6732111 | Brodersen et al. | May 2004 | B2 |
6754681 | Brodersen et al. | Jun 2004 | B2 |
6763351 | Subramaniam et al. | Jul 2004 | B1 |
6763501 | Zhu et al. | Jul 2004 | B1 |
6768904 | Kim | Jul 2004 | B2 |
6782383 | Subramaniam et al. | Aug 2004 | B2 |
6804330 | Jones et al. | Oct 2004 | B1 |
6826565 | Ritchie et al. | Nov 2004 | B2 |
6826582 | Chatterjee et al. | Nov 2004 | B1 |
6826745 | Coker et al. | Nov 2004 | B2 |
6829655 | Huang et al. | Dec 2004 | B1 |
6842748 | Warner et al. | Jan 2005 | B1 |
6850895 | Brodersen et al. | Feb 2005 | B2 |
6850949 | Warner et al. | Feb 2005 | B2 |
6973671 | Hsing et al. | Dec 2005 | B1 |
7010600 | Prasad et al. | Mar 2006 | B1 |
7093019 | Bertani et al. | Aug 2006 | B1 |
7188181 | Squier et al. | Mar 2007 | B1 |
7340411 | Cook | Mar 2008 | B2 |
7620655 | Larsson et al. | Nov 2009 | B2 |
7698160 | Beaven et al. | Apr 2010 | B2 |
8082301 | Ahlgren et al. | Dec 2011 | B2 |
8095413 | Beaven | Jan 2012 | B1 |
8095594 | Beaven et al. | Jan 2012 | B2 |
8275836 | Beaven et al. | Sep 2012 | B2 |
20010044791 | Richter et al. | Nov 2001 | A1 |
20020072951 | Lee et al. | Jun 2002 | A1 |
20020082892 | Raffel | Jun 2002 | A1 |
20020112155 | Martherus et al. | Aug 2002 | A1 |
20020129352 | Brodersen et al. | Sep 2002 | A1 |
20020140731 | Subramaniam et al. | Oct 2002 | A1 |
20020143997 | Huang et al. | Oct 2002 | A1 |
20020162090 | Parnell et al. | Oct 2002 | A1 |
20020165742 | Robbins | Nov 2002 | A1 |
20030004971 | Gong | Jan 2003 | A1 |
20030018705 | Chen et al. | Jan 2003 | A1 |
20030018830 | Chen et al. | Jan 2003 | A1 |
20030066031 | Laane et al. | Apr 2003 | A1 |
20030066032 | Ramachandran et al. | Apr 2003 | A1 |
20030069936 | Warner et al. | Apr 2003 | A1 |
20030070000 | Coker et al. | Apr 2003 | A1 |
20030070004 | Mukundan et al. | Apr 2003 | A1 |
20030070005 | Mukundan et al. | Apr 2003 | A1 |
20030074418 | Coker et al. | Apr 2003 | A1 |
20030120675 | Stauber et al. | Jun 2003 | A1 |
20030151633 | George et al. | Aug 2003 | A1 |
20030159136 | Huang et al. | Aug 2003 | A1 |
20030187921 | Diec et al. | Oct 2003 | A1 |
20030189600 | Gune et al. | Oct 2003 | A1 |
20030204427 | Gune et al. | Oct 2003 | A1 |
20030206192 | Chen et al. | Nov 2003 | A1 |
20030225730 | Warner et al. | Dec 2003 | A1 |
20030233404 | Hopkins | Dec 2003 | A1 |
20040001092 | Rothwein et al. | Jan 2004 | A1 |
20040010489 | Rio et al. | Jan 2004 | A1 |
20040015981 | Coker et al. | Jan 2004 | A1 |
20040027388 | Berg et al. | Feb 2004 | A1 |
20040088543 | Garg et al. | May 2004 | A1 |
20040117489 | Harmon et al. | Jun 2004 | A1 |
20040128001 | Levin et al. | Jul 2004 | A1 |
20040186860 | Lee et al. | Sep 2004 | A1 |
20040193510 | Catahan et al. | Sep 2004 | A1 |
20040199489 | Barnes-Leon et al. | Oct 2004 | A1 |
20040199536 | Barnes Leon et al. | Oct 2004 | A1 |
20040199543 | Braud et al. | Oct 2004 | A1 |
20040210909 | Dominquez, Jr. et al. | Oct 2004 | A1 |
20040249854 | Barnes-Leon et al. | Dec 2004 | A1 |
20040260534 | Pak et al. | Dec 2004 | A1 |
20040260659 | Chan et al. | Dec 2004 | A1 |
20040268299 | Lei et al. | Dec 2004 | A1 |
20050050555 | Exley et al. | Mar 2005 | A1 |
20050065925 | Weissman et al. | Mar 2005 | A1 |
20050091098 | Brodersen et al. | Apr 2005 | A1 |
20050204148 | Mayo et al. | Sep 2005 | A1 |
20050223022 | Weissman et al. | Oct 2005 | A1 |
20050283478 | Choi et al. | Dec 2005 | A1 |
20060206834 | Fisher et al. | Sep 2006 | A1 |
20070016793 | Insko | Jan 2007 | A1 |
20100125612 | Amradkar et al. | May 2010 | A1 |
Entry |
---|
Hinton, et al. WIPO Pub. No. WO 02/39237, “Method and system for web-based cross-domain single-sign-on authentication,” Published May 16, 2002. |
Multitenancy. (2014, Jun. 10). In Wikipedia, The Free Encyclopedia. Retrieved 21:48, Jun. 10, 2014, from http://en.wikipedia.org/w/index.php?title=Multitenancy&oldid=612356523. |
Number | Date | Country | |
---|---|---|---|
20110302631 A1 | Dec 2011 | US |
Number | Date | Country | |
---|---|---|---|
61352303 | Jun 2010 | US |