New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

openseawave/keycloak

The keyclock plugin provides a simple way to integrate Keycloak admin api with full support for Laravel framework.
1,183 2
Install
composer require openseawave/keycloak
Latest Version:v1.0.7
PHP:^8.2
Laravel:10 · 11
License:MIT
Last Updated:Oct 31, 2024
Links: GitHub  ·  Packagist
Maintainer: omar-haris

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.

Related Packages

prestashopcorp/oauth2-prestashop

PrestaShop OAuth 2.0 support for the PHP League's OAuth 2.0 Client

12,313 0
ristekusdi/sso-laravel

SSO for internal Udayana projects based on Laravel

2,853 8
ejarnutowski/laravel-api-key

Authorize requests to your Laravel application with API keys

507,178 157
hypesewa/access-api-key

Authorize requests to hypesewa service with API keys

13 0
gem-partij/gemboot-lara

Laravel package for API services behind a central auth service: token, role, and...

5,036 1

Version History

Version Released PHP Laravel License
v1.0.7 ^8.2 ^10.0||^11.0 MIT
v1.0.6 ^8.2 ^10.0||^11.0 MIT
v1.0.5 ^8.2 ^10.0||^11.0 MIT
v1.0.4 ^8.2 ^10.0||^11.0 MIT
v1.0.3 ^8.2 ^10.0||^11.0 MIT