1. A method of automatically providing access to a database from a client application based on prior authentication of a user, the method comprising: obtaining a login credential created responsive to input provided by the user during the prior authentication; using the login credential to create a security context; and using the security context to establish a secure connection to the database for communication between the client application and the database.