In an alternative embodiment, the redirect URI is determined by the application server, possibly based on information obtained from the request from the sub-server, e.g., requests for different types of data or requests for different communication protocols may require different redirect URIs.