This invention provides identity-related information about a client
application to an honest requesting entity, ensuring identity of client
applications and preventing man-in-the-middle attacks. An example method
comprises transferring identity-related information hosted on an identity
provider about a client application to an honest requesting entity by:
the client application receiving from a particular entity a request to
forward an inner request comprising an identifier of the honest
requesting entity to an identity provider selected by the client
application; the client application forwards the inner request to the
identity provider holding the identity-related information; the client
application receives from the identity provider a response envelope
instructing the client application to forward an inner response
comprising the identity-related information requested in the inner
request and the identifier; the client application derives an address of
the honest requesting entity having the identifier; and the client
application forwards the inner response to the derived address.