NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #4284 most downloaded on Packagist
🔑 Simple Keycloak Guard for Laravel
Latest stable
2.0.1
Last release 7 months ago
17 Apr 2026
Release timing varies
gaps range from 2 weeks to 1.7 years
Most releases are documented
notes for 15 of 23 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
23 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
fix: Guard id() needs to support string identifiers for UUIDs by @0xSpell in https://github.com/robsontenorio/laravel-keycloak-guard/pull/144
Full Changelog: https://github.com/robsontenorio/laravel-keycloak-guard/compare/2.0.0...2.0.1
v2.0 Proposal by @DvDty in https://github.com/robsontenorio/laravel-keycloak-guard/pull/130
Full Changelog: https://github.com/robsontenorio/laravel-keycloak-guard/compare/1.6.3...2.0.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix PHP 8.4 deprecation warning by @robsontenorio in https://github.com/robsontenorio/laravel-keycloak-guard/pull/124
Full Changelog: https://github.com/robsontenorio/laravel-keycloak-guard/compare/1.6.2...1.6.3
Error message information and grammar improvement by @hamidhaghdoost in https://github.com/robsontenorio/laravel-keycloak-guard/pull/117
Full Changelog: https://github.com/robsontenorio/laravel-keycloak-guard/compare/1.6.1...1.6.2
Improve ActingAsKeycloakUser trait by @elnurvl in https://github.com/robsontenorio/laravel-keycloak-guard/pull/114
Full Changelog: https://github.com/robsontenorio/laravel-keycloak-guard/compare/1.6.0...1.6.1
Fix chapter order and add 'keycloak.preferred_username' option by @vlauciani in https://github.com/robsontenorio/laravel-keycloak-guard/pull/109
Full Changelog: https://github.com/robsontenorio/laravel-keycloak-guard/compare/1.5.1...1.6.0
Acting as a Keycloak user in tests by @tuytoosh in https://github.com/robsontenorio/laravel-keycloak-guard/pull/103
Full Changelog: https://github.com/robsontenorio/laravel-keycloak-guard/compare/1.5.0...1.5.1
Implement: 'scopes', 'hasScope' and 'hasAnyScopes' method by @vlauciani in https://github.com/robsontenorio/laravel-keycloak-guard/pull/107
Full Changelog: https://github.com/robsontenorio/laravel-keycloak-guard/compare/1.4.2...1.5.0
Allow the KeycloakGuard to be extended
Allow the KeycloakGuard to be extended (#94)
Thanks @SolveSoul !
Add hasAnyRole function to validate multiple roles for a given resource
Add hasAnyRole function to validate multiple roles for a given resource (#88)
Thanks @luizjr !
Add leeway option to prevent token excepetion due to network issues
leeway option to prevent token excepetion due to network issues
input_key to get an alternative token
ignore_resources_validation to ignore resource validation
Inspired by #75 . Big thanks to @Nizari effort !
Allow create / update users on the API users table with autenticated token #45 @frital @OfficialBAMM
Allow create / update users on the API users table with autenticated token #45 @frital @OfficialBAMM
Nothing published for this version
Nothing published for this version
Handle the scenario when JWT has no resource_access defined (Undefined property: stdClass::$resource_access)
Thanks @cunio-martin for #9
Handle the scenario when JWT has no resource_access defined (Undefined property: stdClass::$resource_access)
If you do not have an users table you must disable this.
✔️ load_user_from_database
Required. Default is true.
If you do not have an users table you must disable this.
It fetchs user from database and fill values into authenticated user object. If enabled, it will work together with user_provider_credential and user_provider_credential.
hasRole('some-resource', 'some-role'): Check if the authenticated user has especific role into a resource.
hasRole('some-resource', 'some-role'): Check if the authenticated user has especific role into a resource.
Ex: Whit this payload:
'resource_access' => [
'myapp-backend' => [
'roles' => [
'myapp-backend-role1',
'myapp-backend-role2'
]
],
'myapp-frontend' => [
'roles' => [
'myapp-frontend-role1',
'myapp-frontend-role2'
]
]
]
Auth::hasRole('myapp-backend', 'myapp-backend-role1') => true Auth::hasRole('myapp-frontend', 'myapp-frontend-role1') => true Auth::hasRole('myapp-backend', 'myapp-frontend-role1') => false
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.