n3xt0r/laravel-passport-authorization-core
Core components for building OAuth2 authorization flows with Laravel Passport. Provides reusable helpers and abstractions to standardize consent/approval handling and authorization logic, making it easier to implement custom Passport authorization endpoints and UI.
context_client_id column to the passport_scope_grants table to explicitly
associate scope grants with an OAuth client context.GrantableTokenableResolver to centralize resolution and validation of
grantable tokenables and their active client context.GrantableTokenableContext DTO to represent resolved authorization context
in a typed, explicit form.TokenableGrantsAssignedTokenableGrantsRevokedTokenableGrantsUpsertedGetAllClientsUseCase to retrieve all OAuth clients or only active clients
via the client repository.GetAllActionsUseCase to retrieve all available Passport scope actions with
optional cache bypass.GetAllResourcesUseCase to retrieve all available Passport scope resources with
optional cache bypass.GetAllGrantsUseCase to retrieve all scope grants from the authorization store.GetGrantsForTokenableUseCase to retrieve all scope grants assigned to a given
grantable tokenable model.GetGrantsForTokenableByTypeAndId to retrieve scope grants for tokenables when
only type and identifier are available.SaveOwnershipRelationUseCase to enforce stricter domain validation and
ownership consistency.PassportScopeGrant::toScopeString incorrect scope strings like resource. instead of
resource:.private to protected to allow safe inheritance and extension of core
classes.passport_scope_grants table by including context_client_id in the unique
index.How can I help you explore Laravel packages today?