Click or drag to resize
HP Authentication

This page describes the process for authenticating against the HP Public Cloud.

Usage Notes

Client authentication against the HP Cloud Identity Service requires the following.

  1. Create an instance of CloudIdentityWithProject and initialize its properties with the desired authentication credentials. The CloudIdentityWithProject credentials class allows the tenantName and tenantId properties described in the HP documentation on Scoped Tokens to be defined.

    • To authenticate using access key credentials, specify the access key in the APIKey property and the secret key in the Password property.

    • To authenticate using a username and password, set the Username and Password properties, leaving APIKey unset.

  2. Create an instance of HpIdentityProvider, and pass the previously created credentials to the constructor.

  3. When creating a service provider instance, such as CloudFilesProvider, pass null for the CloudIdentity parameter and the identity provider from the previous step as the IIdentityProvider parameter.

Limitations

The HpIdentityProvider implementation does not support all API operations implemented by the HP Cloud Identity Service. In addition, the current implementation of this provider uses Identity Service v2 for authentication.

See Also