KeycloakHandler
Table of Contents
-
$groupClaimName
: string
-
$groupsCollection
: GroupsCollection
-
$organizationId
: ObjectId
-
$organizationsCollection
: OrganizationsCollection
-
$provider
: Keycloak
-
$usersCollection
: UsersCollection
-
__construct()
: mixed
-
auth()
: array<string|int, mixed>
-
keycloakAuth()
: string
-
updateToken()
: string
-
getAirlayUser()
: UserEntity|null
-
getKeycloakUserInfo()
: array<string|int, mixed>
-
groupSynchronization()
: UserEntity
-
registration()
: UserEntity
-
userSynchronization()
: UserEntity
$groupClaimName
private
string
$groupClaimName
$groupsCollection
private
GroupsCollection
$groupsCollection
$organizationId
private
ObjectId
$organizationId
$organizationsCollection
private
OrganizationsCollection
$organizationsCollection
$provider
private
Keycloak
$provider
$usersCollection
private
UsersCollection
$usersCollection
__construct()
public
__construct(ConfigInterface $config) : mixed
Parameters
-
$config
: ConfigInterface
-
Return values
mixed
—
auth()
public
auth() : array<string|int, mixed>
-
throws
-
RuntimeException
Return values
array<string|int, mixed>
—
keycloakAuth()
public
keycloakAuth() : string
-
throws
-
InvalidArgumentException
Return values
string
—
updateToken()
public
updateToken(string $refreshToken) : string
Parameters
-
$refreshToken
: string
-
Return values
string
—
getAirlayUser()
private
getAirlayUser(array<string|int, mixed> $keycloakUser) : UserEntity|null
Parameters
-
$keycloakUser
: array<string|int, mixed>
-
Return values
UserEntity|null
—
getKeycloakUserInfo()
private
getKeycloakUserInfo(mixed $token) : array<string|int, mixed>
Parameters
-
$token
: mixed
-
-
throws
-
EncryptionConfigurationException
Return values
array<string|int, mixed>
—
groupSynchronization()
private
groupSynchronization(UserEntity $user, array<string|int, mixed> $groups) : UserEntity
Parameters
-
$user
: UserEntity
-
-
$groups
: array<string|int, mixed>
-
Return values
UserEntity
—
registration()
private
registration(array<string|int, mixed> $userInfo) : UserEntity
Parameters
-
$userInfo
: array<string|int, mixed>
-
-
throws
-
RuntimeException
Return values
UserEntity
—
userSynchronization()
private
userSynchronization(UserEntity $user, array<string|int, mixed> $keycloakUserInfo) : UserEntity
Parameters
-
$user
: UserEntity
-
-
$keycloakUserInfo
: array<string|int, mixed>
-
-
throws
-
RuntimeException
Return values
UserEntity
—