Patent ID: 8417723

Claim:
A method, comprising: receiving, at a first domain of a multi-tenant on-demand database service, a request from a user to access a resource, wherein the user is a member of a tenant of the multi-tenant on-demand database service; in response to receipt of the request, creating, at the on-demand database service, a unique token; storing in a record of multiple records of the multi-tenant on-demand database service the unique token, an identifier of the tenant of which the user is a member, and information to be utilized for accessing the resource, wherein the information indicates computer code executable to perform an action providing the requested access to the resource; and enabling access to the resource utilizing the unique token stored in the multi-tenant on-demand database service, wherein the access to the resource is provided by redirecting the user to a second domain of the multi-tenant on-demand database service by: sending the unique token from the first domain of the multi-tenant on-demand database service to a device of the user, sending a uniform resource locator (URL) of a second domain of the multi-tenant on-demand database service from the first domain of the multi-tenant on-demand database service to the device of the user, sending from the first domain of the multi-tenant on-demand database service to the device of the user an instruction to transmit the unique token to the second domain of the multi-tenant on-demand database service, receiving the unique token at the second domain of the multi-tenant on-demand database service from the device of the user, in response to the sending of the unique token, the URL, and the instruction to the device of the user, in response to receipt of the unique token at the second domain of the multi-tenant on-demand database service from the device of the user, performing a look-up of the unique token in the multiple records of the multi-tenant on-demand database service, verifying the unique token based on the look-up, in response to the verification, using the unique token to identify the information to be utilized for accessing the resource in the multi-tenant on-demand database service which indicates the computer code executable to perform the action providing the requested access to the resource, in response to identification of the information, executing the computer code indicated by the information for providing the user with the requested access to the resource.