ClientFactory
class ClientFactory (View source)
Properties
private Application | $app | ||
private EntityManager | $entityManager | ||
private UuidGenerator | $generator |
Methods
__construct(Application $app, EntityManager $entityManager, UuidGenerator $generator)
No description
createClient(string $name, string $redirect, array $scopes, string $key, string $secret)
Create a new OAuth client object and provide it a proper UUID
generateCredentials(int $keyLength = 64, int $secretLength = 96)
Generate new credentials for use with a client Note: the secret provided by with these credentials is in plain text and should be hashed before storing to the database.
bool|string
generateString($length)
Generate a cryptographically secure strig
Details
__construct(Application $app, EntityManager $entityManager, UuidGenerator $generator)
No description
Client
createClient(string $name, string $redirect, array $scopes, string $key, string $secret)
Create a new OAuth client object and provide it a proper UUID
Credentials
generateCredentials(int $keyLength = 64, int $secretLength = 96)
Generate new credentials for use with a client Note: the secret provided by with these credentials is in plain text and should be hashed before storing to the database.
protected bool|string
generateString($length)
Generate a cryptographically secure strig