Changeset View
Changeset View
Standalone View
Standalone View
src/auth/PhutilAuthAdapter.php
| Show All 9 Lines | |||||
| * a username and password (and some other configuration information), uses them | * a username and password (and some other configuration information), uses them | ||||
| * to talk to the LDAP server, and produces a username, email, and so forth. | * to talk to the LDAP server, and produces a username, email, and so forth. | ||||
| * | * | ||||
| * Since the credentials a provider requires are specific to each provider, the | * Since the credentials a provider requires are specific to each provider, the | ||||
| * base adapter does not specify how an adapter should be constructed or | * base adapter does not specify how an adapter should be constructed or | ||||
| * configured -- only what information it is expected to be able to provide once | * configured -- only what information it is expected to be able to provide once | ||||
| * properly configured. | * properly configured. | ||||
| */ | */ | ||||
| abstract class PhutilAuthAdapter { | abstract class PhutilAuthAdapter extends Phobject { | ||||
| /** | /** | ||||
| * Get a unique identifier associated with the identity. For most providers, | * Get a unique identifier associated with the identity. For most providers, | ||||
| * this is an account ID. | * this is an account ID. | ||||
| * | * | ||||
| * The account ID needs to be unique within this adapter's configuration, such | * The account ID needs to be unique within this adapter's configuration, such | ||||
| * that `<adapterKey, accountID>` is globally unique and always identifies the | * that `<adapterKey, accountID>` is globally unique and always identifies the | ||||
| * same identity. | * same identity. | ||||
| ▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines | |||||