1. A method comprising: based on a response received from an application, modifying, by a computer system, the response to include one or more computer-executable instructions, wherein the response is based on a first request by a device to access the application; and sending, by the computer system, the modified response to the device; wherein execution of the one or more computer-executable instructions on the device causes the device to: obtain, from the computer system, a plurality of credentials associated with a user of the device; invoke an automated logon chooser process that, until a successful logon is detected, for each credential of the plurality of credentials, submits the credential to the application for logon; and in response to detecting the successful logon to the application, send, to the computer system, a second request to update a user credential associated with the user for the application with the credential that resulted in the successful logon.