class SharedSecretAuthentication

The SharedSecretAuthentication helper allows developers to quickly implement authentication based on CloudObjects shared secrets.

Constants

RESULT_OK

RESULT_INVALID_USERNAME

RESULT_INVALID_PASSWORD

RESULT_NAMESPACE_NOT_FOUND

RESULT_SHARED_SECRET_NOT_RETRIEVABLE

RESULT_SHARED_SECRET_INCORRECT

Methods

__construct(ObjectRetriever $objectRetriever)

No description

static integer
verifyCredentials(ObjectRetriever $retriever, string $username, string $password) deprecated

Verifies credentials.

integer
verify(string $username, string $password)

Verifies credentials.

Details

at line 30
__construct(ObjectRetriever $objectRetriever)

Parameters

ObjectRetriever $objectRetriever An initialized and authenticated object retriever.

at line 44
static integer verifyCredentials(ObjectRetriever $retriever, string $username, string $password) deprecated

deprecated

Verifies credentials.

Parameters

ObjectRetriever $retriever Provides access to CloudObjects.
string $username Username; a domain.
string $password Password; a shared secret.

Return Value

integer A result constant, RESULT_OK if successful.

at line 81
integer verify(string $username, string $password)

Verifies credentials.

Parameters

string $username Username; a domain.
string $password Password; a shared secret.

Return Value

integer A result constant, RESULT_OK if successful.