Questions tagged [cartalyst-sentinel]

Sentinel is a framework agnostic set of interfaces with default implementations for authentication & authorization.

Sentinel is a PHP 5.4+ fully-featured authentication & authorization system. It also provides additional features such as user roles and additional security features.

Sentinel is a framework agnostic set of interfaces with default implementations, though you can substitute any implementations you see fit.

An open source package by Cartalyst.

Source available at Github.com

85 questions
0
votes
1 answer

Adding another table named posts that contains the user_id of Sentinel Cartalyst

I am using Sentinel for authentication for my grading system project with added features like social networking system and advance authentication system, my problem is: $post = new Post; $post->title=$request->title; $post->body=$request->body;…
0
votes
2 answers

Android with Laravel 5.5

I'm working on an Android project, and I make Laravel login system using Sentinel. I am wanting to connect Laravel with Android - it always shows me the error token mismatch. I don't want to except my route.
Sagar Shinde
  • 95
  • 1
  • 11
0
votes
1 answer

Config sentinel throttle interval

How to change sentinel user time interval. When I make changes in IlluminateThrottleRepository in throttle folder userinterval from 900 to 3600. Still throttle denied for 900 second . How to make changes
Sagar Shinde
  • 95
  • 1
  • 11
0
votes
1 answer

Sentinel::check() always return FALSE in middleware

This is my route: Route::group(['middleware' => ['web']], function () { Route::get('/xx', 'xx\yy@zz'); This is my modification in Kernel.php: protected $middlewareGroups = [ 'web' => [ …
titonior
  • 147
  • 4
  • 13
0
votes
1 answer

Argument 2 passed to Cartalyst\Sentinel\Permissions\Standard Permissions::prepare Permissions() must be of the type array, null given

I have a Laravel 5.3 project with the Cartalyst\Sentinel (v2.0.15) package configured. I have this line $hasPermission = Sentinel::getUser()->hasAccess($routeName); But I keep getting this error message: Argument 2 passed to…
mattyh88
  • 1,585
  • 5
  • 26
  • 48
0
votes
1 answer

Overriding Sentinel Package

I want to override the activation package of sentinel package using Laravel. Can anyone tell me the easiest and efficient way in Laravel to achieve this ?
0
votes
0 answers

Sentinel::getUser() only returns null in appServiceProvider.php

I wanted to use Sentinel::getUser() in the AppServiceProvider.php to make it global in all front-end files. I include it in the boot function, like this: view()->share( 'loggedUser', Sentinel::getUser() );…
0
votes
1 answer

Laravel Sentinel setModel accessing the wrong table

I am attempting to use multiple tables for my authentication based on a subdomain. Therefore, I am attempting to use Sentinel's setModel function during runtime to set the model instance. So in my routes file I have some simple logic: if…
mdixon18
  • 1,199
  • 4
  • 14
  • 35
0
votes
0 answers

Testing login session with Behat

I am testing an XML and JSON REST API with Behat. For authentication, I use Sentinel. Now, if I log in a user through Behat, and I test the status of the login session, the API returns a negative response (e.g. user not logged in). When I do the…
wout
  • 2,477
  • 2
  • 21
  • 32
0
votes
1 answer

Laravel cartalyst sentinel - Softdelete and restore a user

How do I soft delete and restore user using cartalyst sentinel package. I am using it for authentication. My main problem is I cannot find a function which retrieves a soft deleted user in sentinel. if I fetch a user using User::withTrashed()->…
Sreejith Sasidharan
  • 1,318
  • 5
  • 25
  • 46
0
votes
1 answer

Laravel 5.3 Completely replace default auth by Cartalyst/Sentinel

I have fresh project on Laravel 5.3 and I want to user Cartalyst/Sentinel as default auth and roles manager. I tried to find some documentation about - how to make Sentinel default Auth manager, but don't find any enough accurate answers. Could…
Oleg Shakhov
  • 426
  • 6
  • 27
0
votes
1 answer

Multiple User Models in cartalyst/sentinel with laravel

I'm using cartalyst/sentinel with laravel and I'm looking to use Multiple User Models with sentinel. its a yii application that I'm rewriting in laravel it has separate tables for each type of user like a client, admin, etc. with role base I have to…
Shahid Chaudhary
  • 890
  • 3
  • 14
  • 25
0
votes
1 answer

Laravel 5.3 and Sentinel replacing artisan make:auth

I'm trying to use the scaffolding created by the artisan make:auth command for laravel 5.3, but to replace the functions there with Sentinel. In the create method of the RegisterController, I'm making the call to sentinel like so: return…
Sakamoto Kazuma
  • 2,573
  • 7
  • 34
  • 75
0
votes
1 answer

Sentinel Reminder::exists() error

Hi Im using Cartalyst/Sentinel for a login system everything work fine but this Reminder::exists($user) function giving this error Argument 1 passed to Cartalyst\Sentinel\Reminders\IlluminateReminderRepository::exists() must implement interface…
Shahid Chaudhary
  • 890
  • 3
  • 14
  • 25
0
votes
1 answer

How to us actingAs() with Sentinel

I am testing a Laravel 5.1 page that requires the user to be logged in. My project uses the Cartalyst/Sentinel packing for authentication. I tried this but I doesn't recognize that the user is logged in. public function testPageWithLogin() { …
cw24
  • 1,613
  • 2
  • 22
  • 31