1. Technical Field
This disclosure relates generally to web application security and in particular to a method and system for allowing control over a group membership within a security domain.
2. Background of the Related Art
The Java™ Platform, Enterprise Edition (Java EE) standard supports the notion of declaring security constraints for Web- based applications using XML (outside of the application code). In addition, JEE standards put the control of security into a container, which removes the control of security from the application developer. Currently, an application server supporting this standard offers the ability to allow a Web container or an Enterprise JavaBean (EJB) container to handle the authentication process on behalf of Java applications executing on or in association with the server. As defined in the Standard, once a user has been authenticated, a Java “Subject” is created so that user credential information can be persisted for the duration of the executing Java application.
Commercial application servers that are compliant with this Standard, such as IBM® WebSphere® Application Server (WAS), provide for the use of Lightweight Third Party Authentication (LPTA) tokens to maintain security context between requests. For example, a user launching a protected Web-based application is challenged for a user identifier (userID) and password. Once the userID and password have been verified, a Subject representing the user is created. In addition, typically a Standard-compliant application server of this type sends a security token back to the client browser. For example, the WebSphere Application Server will send back an LTPA token in the form of a cookie. This token maintains the security context information during the life of the security token and the use of the Web application so that the user does not need to re-authenticate.
A user typically is a member of a group and, as such, as certain privileges and permissions (that are associated with the group membership). One of the challenges of the
LPTA token-based approach, however, is that, once the Subject is created, any changes to the user's group membership information will not be known. For example, a userID's group membership may be modified following authentication; however, there is no mechanism available in the application server to enable the Subject to reflect such a change. This is particularly problematic when long-running transactions are executing.
According to this disclosure, a method is described for selectively refreshing group membership for an identifier (e.g., a Java Subject) associated with an authenticated user. The identifier represents or is associated with an application server security context, and typically the identifier is generated to enable a user credential associated with the authenticated user to be persisted. Following such authentication, the authenticated user's client is provided with a security token. The security token, although renewable, typically is time-bounded and thus expires after a given time period.
The method begins by configuring an option to control whether group membership information is refreshed automatically during renewal of an expired security token associated with the identifier. Then, during renewal of an expired security token, the method determines whether the option is set to a given value (e.g., true). If so, an attempt is made to refresh group membership information associated with the identifier. This attempt performs a set of checks to verify certain conditions. These checks include determining if a security realm in the security context matches a current realm, determining if the identifier was generated with a given application server type or instance, and determining if updated group membership information can be retrieved. If these checks are valid, the identifier is refreshed and the security token renewed with the updated group membership information. If any of the checks are not valid, the identifier is refreshed and the security token renewed with existing group membership information.
In an alternative embodiment, the above-described method is performed in an apparatus, such as an apparatus implemented an application server instance.
In another alternative embodiment, the above-described method is performed by a computer program product in a computer readable medium for use in a data processing system. The computer program product holds computer program instructions which, when executed by the data processing system, perform the method.
The foregoing has outlined some of the more pertinent features of the invention. These features should be construed to be merely illustrative. Many other beneficial results can be attained by applying the disclosed invention in a different manner or by modifying the invention as will be described.
For a more complete understanding of the present invention and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
With reference now to the drawings and in particular with reference to
With reference now to the drawings,
In the depicted example, server 104 and server 106 are connected to network 102 along with storage unit 108. In addition, clients 110, 112, and 114 are also connected to network 102. These clients 110, 112, and 114 may be, for example, personal computers, network computers, or the like. In the depicted example, server 104 provides data, such as boot files, operating system images, and applications to the clients 110, 112, and 114. Clients 110, 112, and 114 are clients to server 104 in the depicted example. Distributed data processing system 100 may include additional servers, clients, and other devices not shown.
In the depicted example, distributed data processing system 100 is the Internet with network 102 representing a worldwide collection of networks and gateways that use the Transmission Control Protocol/Internet Protocol (TCP/IP) suite of protocols to communicate with one another. At the heart of the Internet is a backbone of high-speed data communication lines between major nodes or host computers, consisting of thousands of commercial, governmental, educational and other computer systems that route data and messages. Of course, the distributed data processing system 100 may also be implemented to include a number of different types of networks, such as for example, an intranet, a local area network (LAN), a wide area network (WAN), or the like. As stated above,
With reference now to
With reference now to
Processor unit 204 serves to execute instructions for software that may be loaded into memory 206. Processor unit 204 may be a set of one or more processors or may be a multi-processor core, depending on the particular implementation. Further, processor unit 204 may be implemented using one or more heterogeneous processor systems in which a main processor is present with secondary processors on a single chip. As another illustrative example, processor unit 204 may be a symmetric multi-processor (SMP) system containing multiple processors of the same type.
Memory 206 and persistent storage 208 are examples of storage devices. A storage device is any piece of hardware that is capable of storing information either on a temporary basis and/or a permanent basis. Memory 206, in these examples, may be, for example, a random access memory or any other suitable volatile or non-volatile storage device. Persistent storage 208 may take various forms depending on the particular implementation. For example, persistent storage 208 may contain one or more components or devices. For example, persistent storage 208 may be a hard drive, a flash memory, a rewritable optical disk, a rewritable magnetic tape, or some combination of the above. The media used by persistent storage 208 also may be removable. For example, a removable hard drive may be used for persistent storage 208.
Communications unit 210, in these examples, provides for communications with other data processing systems or devices. In these examples, communications unit 210 is a network interface card. Communications unit 210 may provide communications through the use of either or both physical and wireless communications links.
Input/output unit 212 allows for input and output of data with other devices that may be connected to data processing system 200. For example, input/output unit 212 may provide a connection for user input through a keyboard and mouse. Further, input/output unit 212 may send output to a printer. Display 214 provides a mechanism to display information to a user.
Instructions for the operating system and applications or programs are located on persistent storage 208. These instructions may be loaded into memory 206 for execution by processor unit 204. The processes of the different embodiments may be performed by processor unit 204 using computer implemented instructions, which may be located in a memory, such as memory 206. These instructions are referred to as program code, computer-usable program code, or computer-readable program code that may be read and executed by a processor in processor unit 204. The program code in the different embodiments may be embodied on different physical or tangible computer-readable media, such as memory 206 or persistent storage 208.
Program code 216 is located in a functional form on computer-readable media 218 that is selectively removable and may be loaded onto or transferred to data processing system 200 for execution by processor unit 204. Program code 216 and computer-readable media 218 form computer program product 220 in these examples. In one example, computer-readable media 218 may be in a tangible form, such as, for example, an optical or magnetic disc that is inserted or placed into a drive or other device that is part of persistent storage 208 for transfer onto a storage device, such as a hard drive that is part of persistent storage 208. In a tangible form, computer-readable media 218 also may take the form of a persistent storage, such as a hard drive, a thumb drive, or a flash memory that is connected to data processing system 200. The tangible form of computer-readable media 218 is also referred to as computer-recordable storage media. In some instances, computer-recordable media 218 may not be removable.
Alternatively, program code 216 may be transferred to data processing system 200 from computer-readable media 218 through a communications link to communications unit 210 and/or through a connection to input/output unit 212. The communications link and/or the connection may be physical or wireless in the illustrative examples. The computer-readable media also may take the form of non-tangible media, such as communications links or wireless transmissions containing the program code. The different components illustrated for data processing system 200 are not meant to provide architectural limitations to the manner in which different embodiments may be implemented. The different illustrative embodiments may be implemented in a data processing system including components in addition to or in place of those illustrated for data processing system 200. Other components shown in
In another example, a bus system may be used to implement communications fabric 202 and may be comprised of one or more buses, such as a system bus or an input/output bus.
Of course, the bus system may be implemented using any suitable type of architecture that provides for a transfer of data between different components or devices attached to the bus system. Additionally, a communications unit may include one or more devices used to transmit and receive data, such as a modem or a network adapter. Further, a memory may be, for example, memory 206 or a cache such as found in an interface and memory controller hub that may be present in communications fabric 202.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object-oriented programming language such as Java™, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
Those of ordinary skill in the art will appreciate that the hardware in
As will be seen, the techniques described herein may operate in conjunction within the standard client-server paradigm such as illustrated in
The data processing system in
A web server or a proxy server may be associated with an application server. In this context, so-called “realms” may protect resources like files, directories, images, application resources, or the like. Typically, realms assign certain systems to trusted groups of systems using a web server, or they may protect and control access using a proxy server. When accessed using an application client, such as a web browser using Hypertext Transfer Protocol (HTTP), web servers return a HTTP response code of “401” if these resources are not accessed using proper authentication information; similarly, proxy servers return an HTTP response code of “407” if the resources are not accessed using proper authentication information. Along with a “401” or “407” response code, the web server or the proxy server, as the case may be, responds with certain other information, such as the name associated with the protection area, the host name, and/or IP address of the machine that is trying to protect these resources, or other optional entities. This information may be called the realm or the authentication mechanism. This information may also be called a web server realm (if web server is protecting the resource) or proxy server realm (if a proxy server is involved in the protection). Realms may use a variety of authentication mechanisms, including but not limited to, NT LAN Manager (NTLM), Kerberos™, Integrated Windows Authentication (IWA), Simple and Protected GSSAPI Negotiation Mechanism (SPNEGO), or the like.
By way of further background, a web-based application environment such as described above typically includes a session management component. Session management typically is provided in association with an access manager, which is a component that prevents unauthorized use of resources, including the prevention of use of a given resource in an unauthorized manner. A representative access manager is the Tivoli® Access Manager for e-business (TAMeb) product, which is available commercially from IBM, and is represented in
TAM provides a reverse proxy, web plug-in or the like that provides session management functionality and that includes authorization functionality as part of this session management. Authentication is handled by TAM, meaning that TAM collects a user's authentication credentials, evaluates them, and establishes a session, including some form of session management functionality (such as a session cookie). To provide a user with the advantages of this consolidated environment, TAM then provides a single sign-on solution for the user by asserting authentication credentials (such as username/password) to the back-end applications. This allows the back-end application to be added to the portal environment without modification.
In a representative implementation, IBM WebSphere® Application Server provides embedded IBM® Tivoli® Access Manager client technology to secure WebSphere Application Server-managed resources. WebSphere Application Server supports the Java Authorization Contract for Containers (JACC) specification. JACC details the contract requirements for Java EE containers and authorization providers. With this contract, authorization providers perform the access decisions for resources in Java EE application servers such as WebSphere Application Server. The Tivoli Access Manager security utility that is embedded within WebSphere Application Server is JACC-compliant and is used to add security policy information when applications are deployed, and to authorize access to
WebSphere Application Server-secured resources. When applications are deployed, the embedded Tivoli Access Manager client takes any policy and or user and role information that is stored (within an application deployment descriptor or using annotations) and stores it within the Tivoli Access Manager Policy Server. The Tivoli Access Manager JACC provider is also called when a user requests access to a resource that is managed by WebSphere Application Server.
The implementation environment shown in
As used herein, “group membership information” refers to any “grouping” associated with a user and his or her access to a protected resource. Such information typically defines the organizations, divisions, entities, groups, sub-groups or the like to which a user belongs, as well as the privileges and permissions associated with any such grouping. As used herein, group membership information should be broadly construed to mean any such data, in whatever form, that defines the user into a defined organization-centric and/or resource-centric category with one or more other similarly-situated users.
Refreshing Group Membership Information for a Security Context
With the above as background, the subject matter of this disclosure is now described.
As described, preferably the group membership information refresh techniques herein are implemented in (or in association with) an application server that supports security updates as defined in the Java 2 Enterprise Edition (JEE) Standard, and the associated Java™ Servlet 3.0 specification (JSR315). One such security update provides for the dynamic updating of a servlet security configuration. The term “refresh” as used herein should be broadly construed to refer to refreshing, updating, modifying pre-existing information to create new information, re-issuing pre-existing information as new, and the like.
The application server is enhanced to provide a configuration option (e.g., at a security configuration layer) to control whether group membership information is updated automatically upon renewal of an expired (or expiring) security token. In this manner, an administrator or other permitted entity (including, without limitation, a person, or a programmatic entity) has the ability to set the control to determine whether such automated refreshing capability is turned on or off. Preferably, setting the value “true” provides that groups (or certain defined groups, or sub-groups, or the like) are automatically refreshed (based on certain conditions being valid) when a security token is true. Conversely, setting the value “false” indicates that the groups (or certain defined groups, or sub-groups, or the like) are not automatically refreshed. By default, the control may be set as “false,” although this is not a limitation. A web-based user configurator (e.g., implemented as a web page or set of pages) may be used to configure the option (or override an existing setting).
In one embodiment, the application server is IBM WebSphere Application Server v8. This application server includes a configuration service that includes a web application console that displays one or more pages to facilitate the configuration operation. Using the technique described herein, a refresh group option property is set to specify the desired configuration. In such case, the property is a “refreshGroups” option that is located in a configuration file, such as . . . “/ . . . wsspi.security.cred.refreshGroups.”
If the outcome of the test at step 408 is negative, the routine branches back to step 414 to use the existing group membership. If, however, the outcome of the test at step 408 is positive, the routine continues to step 410. At step 410, a test is performed to determine if the security realm of the credential token matches the security realm of a current runtime security configuration associated with the application server. If the outcome of the test at step 410 is negative, once again the routine branches back to step 414 to use the existing group membership. If, however, the outcome of the test at step 410 is positive, the routine continues at step 412. At this step, a final test is performed to determine whether group membership information can be retrieved. If the outcome of the test at step 412 is negative, the routine branches again to step 414 to use the existing group membership.
If, however, the outcome of the tests at step 406, 408, 410 and 412 are each positive, the routine continues at step 416 to retrieve and use new group membership information. This new group membership information is then used to renew (update) the security token (to create a new or renewed security token) at step 418. At step 420, a new (or updated) Subject is generated by refreshing the prior Subject. This completes the process, as indicated by step 422.
One of ordinary skill will appreciate that the particular ordering of steps 408, 410 and 412 in
Further, while the disclosed technique has been described in the context of JEE and JEE Servlet 3.0 specification, this is not a limitation. The technique may be used for any application server that creates and maintains Subject-like identifiers and returns (to requesting client browsers) time-bounded, but renewable, security tokens, and where user group membership data is updated.
Techniques, products and services for defining, maintaining, managing and updating group membership information are beyond the scope of this disclosure. The application server group membership information refresh functionality assumes that such information is maintained in a data store and accessible to the application server as needed.
The subject matter described herein has significant advantages over the prior art. Previously, when a security context expired and was refreshed and restored, the user's group membership information (for the credentials associated with the security context) was not updated. Thus, any modification to the user's group membership that took place since the time the security context was created would not be honored. With the approach described herein, in contrast, modifications to group membership that have occurred since the security context was created may well be honored (under the circumstances described). The technique described herein enables a Java Subject to be associated continually with updated and correct group membership information where possible. The technique attempts to update the group membership information for a UserID associated with a security context. Moreover, if the group membership information cannot be update, the attempt to do so itself is not necessarily considered to be a failure.
Although not meant to be limiting, the group membership information refresh capability as described herein may be used either as a standalone function or in conjunction with an application programming interface (API) that allows for the Subject to be persisted and verified as a security context is restored and refreshed. In the latter scenario, if a validation of a userID associated with the security context fails, the security context is not recreated.
The functionality described above may be implemented as a standalone approach, e.g., a software-based function executed by a processor, or it may be available as a managed service (including as a web service via a SOAP/XML interface). The particular hardware and software implementation details described herein are merely for illustrative purposes are not meant to limit the scope of the described subject matter.
More generally, computing devices within the context of the disclosed subject matter are each a data processing system (such as shown in
The scheme described herein may be implemented in or in conjunction with various server-side architectures including simple n-tier architectures, web portals, federated systems, and the like. The techniques herein may be practiced in a loosely-coupled server (including a “cloud”-based) environment. The secure web server itself may be hosted in the cloud.
Still more generally, the subject matter described herein can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements. In a preferred embodiment, the function is implemented in software, which includes but is not limited to firmware, resident software, microcode, and the like. Furthermore, as noted above, the group membership refresh functionality can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. For the purposes of this description, a computer-usable or computer readable medium can be any apparatus that can contain or store the program for use by or in connection with the instruction execution system, apparatus, or device. The medium can be an electronic, magnetic, optical, electromagnetic, infrared, or a semiconductor system (or apparatus or device). Examples of a computer-readable medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk. Current examples of optical disks include compact disk—read only memory (CD-ROM), compact disk—read/write (CD-R/W) and DVD. The computer-readable medium is a tangible item.
The computer program product may be a product having program instructions (or program code) to implement one or more of the described functions. Those instructions or code may be stored in a computer readable storage medium in a data processing system after being downloaded over a network from a remote data processing system. Or, those instructions or code may be stored in a computer readable storage medium in a server data processing system and adapted to be downloaded over a network to a remote data processing system for use in a computer readable storage medium within the remote system.
In a representative embodiment, the application server group membership refresh components are implemented in a special purpose computer, preferably in software executed by one or more processors. The software is maintained in one or more data stores or memories associated with the one or more processors, and the software may be implemented as one or more computer programs. Collectively, this special-purpose hardware and software comprises the group membership refresh functionality described above.
Further, the group membership refresh functionality provided by the application server may be implemented as an adjunct or extension to an existing access manager or policy management solution.
While the above describes a particular order of operations performed by certain embodiments of the invention, it should be understood that such order is exemplary, as alternative embodiments may perform the operations in a different order, combine certain operations, overlap certain operations, or the like. References in the specification to a given embodiment indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic.
Finally, while given components of the system have been described separately, one of ordinary skill will appreciate that some of the functions may be combined or shared in given instructions, program sequences, code portions, and the like.
As used herein, the “client-side” application should be broadly construed to refer to an application, a page associated with that application, or some other resource or function invoked by a client-side request to the application. A “browser” as used herein is not intended to refer to any specific browser (e.g., Internet Explorer, Safari, FireFox, Chrome or the like), but should be broadly construed to refer to any client-side rendering engine that can access and display Internet-accessible resources. Further, while typically the client-server interactions occur using HTTP, this is not a limitation either. The client server interaction may be formatted to conform to the Simple Object Access Protocol (SOAP) and travel over HTTP (over the public Internet), FTP, or any other reliable transport mechanism (such as IBM® MQSeries® technologies and CORBA, for transport over an enterprise intranet) may be used. Also, the term “web site” or “service provider” should be broadly construed to cover a web site (a set of linked web pages), a domain at a given web site or server, a trust domain associated with a server or set of servers, or the like. A “service provider domain” may include a web site or a portion of a web site. Any application or functionality described herein may be implemented as native code, by providing hooks into another application, by facilitating use of the mechanism as a plug-in, by linking to the mechanism, and the like. Having described our invention, what we now claim is as follows.
Number | Name | Date | Kind |
---|---|---|---|
20070006297 | Verbowski et al. | Jan 2007 | A1 |
20090138525 | Mattox et al. | May 2009 | A1 |
20100030805 | Hinton et al. | Feb 2010 | A1 |
20100049968 | Dimitrakos et al. | Feb 2010 | A1 |
20120060210 | Baker et al. | Mar 2012 | A1 |
Entry |
---|
Balfe, Shane, et al. “Key refreshing in identity-based cryptography and its applications in MANETs.” Military Communications Conference, 2007. MILCOM 2007. IEEE. IEEE, 2007. |
Nagaratnam et al, “The Security Architecture for Open Grid Services,” Jul. 17, 2002, Version 1. |
Jiang et al, “Multiple Key Sharing and Distribution Scheme With (n,t) Threshold for NEMO Group Communications,” IEEE Journal on Selected Areas in Communications, vol. 24, No. 9, Sep. 2006. |
Colegrove et al, “Group Security Policy Token v1 (RFC 4534),” Internet Society Requests for Comment (RFCs), Jun. 1, 2006. |
Number | Date | Country | |
---|---|---|---|
20130179952 A1 | Jul 2013 | US |