HumHub Documentation (unofficial)

AuthClientService
in package

AuthClientService

Tags
since
1.14

Table of Contents

Properties

$authClient  : ClientInterface

Methods

__construct()  : mixed
allowSelfRegistration()  : bool
autoMapToExistingUser()  : void
createRegistration()  : Registration|null
createUser()  : User|null
Automatically creates user by auth client attributes
getCollection()  : Collection
getUser()  : User|null
Returns the user object which is linked against given authClient
getUsersQuery()  : ActiveQueryUser
Returns all users which are using an given authclient
updateUser()  : bool
Updates (or creates) a user in HumHub using AuthClients Attributes This method will be called after login or by cron sync.

Properties

Methods

allowSelfRegistration()

public allowSelfRegistration() : bool
Tags
since
1.15
Return values
bool

createUser()

Automatically creates user by auth client attributes

public createUser() : User|null
Return values
User|null

the created user

getUser()

Returns the user object which is linked against given authClient

public getUser() : User|null
Return values
User|null

the user model or null if not found

updateUser()

Updates (or creates) a user in HumHub using AuthClients Attributes This method will be called after login or by cron sync.

public updateUser([User|null $user = null ]) : bool
Parameters
$user : User|null = null
Return values
bool

succeed


        
On this page

Search results