v0

Default implementation of authentication provider.

\Hubleto\Framework\Auth\KeycloakOAuth2Provider

Parent class\Hubleto\Framework\AuthProvider

Properties

 

☍ provider

public $provider

Methods

ƒ init

public init(): void

ƒ getUserFromSession

public getUserFromSession(): array

ƒ isUserInSession

public isUserInSession(): bool

ƒ signOut

public signOut(): mixed

ƒ getAccessToken

public getAccessToken(): mixed

ƒ setAccessToken

public setAccessToken(mixed $accessToken): mixed

Parameters

Parameter Type Description
$accessToken mixed

ƒ auth

public auth(): void

Inherited methods

ƒ __construct

public __construct(): mixed

ƒ getServiceStatic

Shortcut for the dependency injection.

public static getServiceStatic(string $service): mixed
Parameter Type Description
$service string

ƒ getService

[Description for getService]

public getService(string $service): mixed

Parameters

Parameter Type Description
$service string

ƒ env

Shortcut for the env service.

public env(): \Hubleto\Framework\Env

ƒ authProvider

Shortcut for the authentication service.

public authProvider(): \Hubleto\Framework\Interfaces\AuthInterface

ƒ db

Shortcut for the database service.

public db(): \Hubleto\Framework\Db

ƒ appManager

Shortcut for the app manager service.

public appManager(): \Hubleto\Framework\Interfaces\AppManagerInterface

ƒ router

Shortcut for the router service.

public router(): \Hubleto\Framework\Router

ƒ hookManager

Shortcut for the hook manager service.

public hookManager(): \Hubleto\Framework\HookManager

ƒ sessionManager

Shortcut for the session manager service.

public sessionManager(): \Hubleto\Framework\SessionManager

ƒ permissionsManager

Shortcut for the permissions manager service.

public permissionsManager(): \Hubleto\Framework\PermissionsManager

ƒ cronManager

Shortcut for the cron manager service.

public cronManager(): \Hubleto\Framework\CronManager

ƒ emailProvider

Shortcut for the email provider service.

public emailProvider(): \Hubleto\Framework\EmailProvider

ƒ config

Shortcut for the config service.

public config(): \Hubleto\Framework\Interfaces\ConfigManagerInterface

ƒ terminal

Shortcut for the terminal service.

public terminal(): \Hubleto\Framework\Interfaces\TerminalInterface

ƒ logger

Shortcut for the logger service.

public logger(): \Hubleto\Framework\Interfaces\LoggerInterface

ƒ locale

Shortcut for the locale service.

public locale(): \Hubleto\Framework\Interfaces\LocaleInterface

ƒ renderer

Shortcut for the renderer service.

public renderer(): \Hubleto\Framework\Interfaces\RendererInterface

ƒ translator

Shortcut for the translator service.

public translator(): \Hubleto\Framework\Interfaces\TranslatorInterface

ƒ getModel

[Description for getModel]

public getModel(string $model): \Hubleto\Framework\Interfaces\ModelInterface

Parameters

Parameter Type Description
$model string

ƒ getController

[Description for getController]

public getController(string $controller): \Hubleto\Framework\Controller

Parameters

Parameter Type Description
$controller string

ƒ translate

public translate(string $string, array<string,string> $vars = [], string $contextInner = ''): string

Parameters

Parameter Type Description
$string string
$vars array<string,string>
$contextInner string

ƒ init

public init(): void

ƒ getUserFromSession

public getUserFromSession(): array

ƒ updateUserInSession

public updateUserInSession(array $user): void

Parameters

Parameter Type Description
$user array

ƒ isUserInSession

public isUserInSession(): bool

ƒ deleteSession

public deleteSession(): mixed

ƒ signIn

public signIn(array $user): mixed

Parameters

Parameter Type Description
$user array

ƒ signOut

public signOut(): mixed

ƒ createUserModel

public createUserModel(): \Hubleto\Framework\Model

ƒ findUsersByLogin

public findUsersByLogin(string $login): array

Parameters

Parameter Type Description
$login string

ƒ verifyPassword

public verifyPassword(mixed $password1, mixed $password2): bool

Parameters

Parameter Type Description
$password1 mixed
$password2 mixed

ƒ getActiveUsers

public getActiveUsers(): array

ƒ auth

public auth(): void

ƒ getUser

public getUser(): array

ƒ getUserType

public getUserType(): int

ƒ getUserRoles

public getUserRoles(): array

ƒ userHasRole

public userHasRole(int $idRole): bool

Parameters

Parameter Type Description
$idRole int

ƒ getUserId

public getUserId(): int

ƒ getUserEmail

public getUserEmail(): string

ƒ forgotPassword

public forgotPassword(): void

ƒ resetPassword

public resetPassword(): void

ƒ getUserLanguage

public getUserLanguage(): string

ƒ setUserLanguage

public setUserLanguage(string $language): void

Parameters

Parameter Type Description
$language string
www.hubleto.com | Found a bug or missing something? Report an issue via GitHub.