Skip to content

Latest commit

 

History

History
74 lines (49 loc) · 2.17 KB

README.md

File metadata and controls

74 lines (49 loc) · 2.17 KB

openseawave/keycloak

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

The keyclock plugin provides a simple way to integrate Keycloak admin api with full support for Laravel framework.

Installation

You can install the package via composer:

composer require openseawave/keycloak

You can publish the config file with:

php artisan vendor:publish --tag="keycloak-config"

Usage

you can use it like this:

use Openseawave\Keycloak\Keycloak;
use OpenSeaWave\Keycloak\Enums\GrantType;

$keycloak = new Keycloak(
    baseUrl: 'http://localhost:8080',
    username: 'admin',
    password: 'admin',
    grantType: GrantType::PASSWORD,
    clientId: 'admin-cli',
);

$keycloak->getUsers();

Also you can use it using Laravel Facade:

use Openseawave\Keycloak\Facades\Keycloak;
Keycloak::getUsers();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.