Skip to content

OAuth2Storage

  • Full name: \Zotlabs\Identity\OAuth2Storage
  • Parent class: Pdo

Methods

checkUserCredentials

public checkUserCredentials(string $username, string $password): bool

Parameters:

Parameter Type Description
$username string
$password string

getUserDetails

public getUserDetails(string $username): array|bool

Parameters:

Parameter Type Description
$username string

checkPassword

protected checkPassword(array $user, string $password): bool

Parameters:

Parameter Type Description
$user array
$password string

getUser

public getUser(string $username): array|bool

Parameters:

Parameter Type Description
$username string

scopeExists

public scopeExists(mixed $scope): mixed

Parameters:

Parameter Type Description
$scope mixed

getDefaultScope

public getDefaultScope(mixed $client_id = null): mixed

Parameters:

Parameter Type Description
$client_id mixed

getUserClaims

public getUserClaims(mixed $user_id, mixed $claims): mixed

Parameters:

Parameter Type Description
$user_id mixed
$claims mixed

setUser

plaintext passwords are bad! Override this for your application

public setUser(string $username, string $password, string $firstName = null, string $lastName = null): bool

Parameters:

Parameter Type Description
$username string
$password string
$firstName string
$lastName string


Automatically generated on 2025-03-19