Patent ID: 8171535

Claim:
A method comprising: transmitting a first request to access a service provided by a server; receiving a response to the first request from the server; determining whether or not the response includes a security token; accessing the service by using the security token in a case where the response is determined to include the security token; examining a notification in the response generated in response to the first request being denied access and determining policy associated with the server, in a case where the response is determined not to include the security token; determining whether user input is required to access the server, based on examination of the notification; in a case where it is determined that the user input is not required to access the server, generating a credential that is in compliance with the policy associated with the server from a library of credentials, based on examination of the notification; in a case where it is determined that user input is required to access the server, displaying a screen to prompt the user to input information for generating the credential that is in compliance with the policy associated with the server; generating a second request using the credential in accordance with the policy associated with the server; and transmitting the second request to access the service provided by the server.