Index

iClient

MMO\oauth\interfaces · 1 symbol · generated 5 Oct 2026

interface

iClient

iClient.php:10

Any object that can exchange credential with an oauth server

interface MMO\oauth\interfaces\iClient extends MMO\core\interfaces\iEntity, MMO\oauth\interfaces\iScopeProvider
Namespace
MMO\oauth\interfaces
Implements
iEntity, iScopeProvider

Index

FLAG_FIRST_CONNECTION
FLAG_RESET_SECRET
FLAG_USER_DEFINED
getClientRedirectUri() abstractReturns the registered redirect URI (as a string).
hasClientFlag($flag) abstract
isConfidential() abstractReturns true if the client is confidential.
updateClientFlag($flag, $value) abstract
verifySecret($secret) abstractValidates the redirect uri.

Constants3

FLAG_FIRST_CONNECTION

const FLAG_FIRST_CONNECTION = 1

FLAG_RESET_SECRET

const FLAG_RESET_SECRET = 2

FLAG_USER_DEFINED

const FLAG_USER_DEFINED = 4

Methods5

getClientRedirectUri()

abstractiClient.php:24

Returns the registered redirect URI (as a string).

abstract function getClientRedirectUri(): string
returnsstring

hasClientFlag($flag)

abstractiClient.php:15
abstract function hasClientFlag(int $flag): bool
$flagint
returnsbool

isConfidential()

abstractiClient.php:32

Returns true if the client is confidential.

abstract function isConfidential(): boolConfidential client are generally web application that use rest to get the credentials. User-agent (browser) or native application are usually public clients.
returnsbool

updateClientFlag($flag, $value)

abstractiClient.php:17
abstract function updateClientFlag(int $flag, bool $value = true): bool
$flagint
$value = truebool
returnsbool

verifySecret($secret)

abstractiClient.php:44

Validates the redirect uri.

abstract function verifySecret(?string $secret): bool
$secretnull | string
returnsboolReturn true if valid, false otherwise
Inherited members (55)
ConstantsDeclared byDescription
FLAG_CHANGEDiEntity
FLAG_CREATEDiEntity
FLAG_IGNORE_CHANGEiEntity
FLAG_IGNORE_ENTITYiEntity
FLAG_OPACIFYiEntity
FLAG_REMOVEDiEntity
MethodsDeclared byDescription
addFlags($flags)iEntity
applyScopes($scopes, $set)iScopeProvider
archive()iEntity
ArrayProperties()iArrayProperties
ArrayProperty($name)iArrayProperties
blameScope($uid)iScopeProvider
clearChanges()iEntity
compareTo($value)iComparable
debugName()iEntity
get($path, $default)iEntity
getChanges($asArray, $store)iEntity
getCollection()iEntity
getErrors()iEntity
getFlags()iEntity
getId()iEntity
getRepository()iEntity
getScopes()iScopeProviderGet all the scopes.
getStatus()iEntity
getTitle()iEntity
getUniqueName()iScopeProviderGet the unique name for this scope provider
hasStatusChanged()iEntity
HiddenPath($path)iArrayProperties
isAllowed($uids)iScopeProviderTest if scopes are allowed
isAnyAllowed($uids)iScopeProvider
isArchive()iEntity
isChanged()iEntity
isCreated()iEntity
isFinal()iEntity
isRemoved()iEntity
isValid()iEntity
loadArray($data, $coerceOptions, $fromStore)iEntity
loadFromStore($data)iEntityLoad data as read from storage: not recorded as a change.
localName()iEntityGet the local name (collection name and this id) in the current repository
markChanged($keys)iEntity
mutate($type, $path, $value, $oldValue)iMutationObserver
offsetExists($offset)ArrayAccess
offsetGet($offset)ArrayAccess
offsetSet($offset, $value)ArrayAccess
offsetUnset($offset)ArrayAccess
removeFlags($flags)iEntity
removePermanently()iEntityRemove it for good: only an archived entity can be.
Schema()iSchemaProvider
setArrayPropertyOffset($key, $offset, $value, $coerceOptions)iEntity
setStatus($status)iEntity
store()iEntity
test($filter)iEntity
toArray($fields)iArrayProperties
toLink($attributes)iEntity
uid()iIdentifiableGet the unique identifier