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
10
votes
1 answer

Laravel 5.2 login session not persisting

I have been implementing a simple authentication system on Laravel 5.2 using Sentinel. // Route : /login $success = Sentinel::authenticate(array( 'email' => $email, 'password' => $password, )); echo $success ? 'Login success' : 'Login…
Nauphal
  • 6,194
  • 4
  • 27
  • 43
9
votes
1 answer

Laravel Cartalyst Sentinel - Adding a username column to users table (What is the right way)

I've pulled in cartalyst/sentinel and i've run the migrations required to generate the tables php artisan migrate --package=cartalyst/sentinel I notice that these are the columns available in the users…
arkhamDev
  • 1,028
  • 1
  • 15
  • 32
8
votes
4 answers

Laravel: getting Sentinel authentication to do registration, login etc Easy questions

sort of installed Sentinel ( i say sort of because I dont understand one part that says: Sentinel ships with default implementations for illuminate/database, in order to use it, make sure you require it on your composer.json file. // Import the…
patricio
  • 350
  • 2
  • 5
  • 13
3
votes
0 answers

Google SignUp/Login using PHP backend and client as web and android

So I am trying to implement Google Login in my application. On the client side I have an android App and a web app which interact with the restful API server in PHP (Cartalyst Sentinel 2.0 for authentication). I am facing multiple issues. REDIRECT…
3
votes
1 answer

Cartalyst Sentinel check() always returns false in Laravel 5.2

I use Cartalyst Sentinel to authenticate user $status=Sentinel::authenticate($credentials); the above code is in the login function in UserController. In the login function I can see that the Sentinel::check() returns some data. However, after…
Priska Aprilia
  • 1,149
  • 1
  • 15
  • 34
3
votes
1 answer

Getting all Sentinel user related to roles

How can I get all users related to user roles by Sentinel? And how can I get all users in Sentinel? This does not work: Sentinel::all()
yigitozmen
  • 947
  • 4
  • 23
  • 42
2
votes
3 answers

Non-static method Cartalyst\Sentinel\Sentinel::getUser() should not be called statically

Hi I am using laravel Sentinel as my Auth, also I am trying to use laravel auditing I am getting "Non-static method Cartalyst\Sentinel\Sentinel::getUser() should not be called statically". In my user model I have added a static function resolveId()…
2
votes
1 answer

Laravel 5.5 and Sentinel Missing required parameters

Everytime I try to delete a user, I get "Missing required parameters for [Route: delUser] [URI: deleteUser/{id}]". But when I refresh the page, the selected user will be deleted. I don't know why I am getting this error. Here is my…
Hooman
  • 106
  • 1
  • 8
2
votes
0 answers

Sentinel throttle denied service to multiple devices in same network

When I used my laptop and mobile phone to access login page using same network . Sentinel denied my both devices to access when I try more than 5 time wrong credentials only on my laptop.how to avoid to denied phone to access login page .
Sagar Shinde
  • 95
  • 1
  • 11
2
votes
2 answers

Laravel's Eloquent method getKey() returns the first number of the UUID

I have a User and a Role model extending Catalyst's Sentinel package. Everything works fine if I use the default incrementing primary key. When I change it to use UUIDs it acts weird. Everything works fine except for a little detail. Here's the code…
DanVeira
  • 361
  • 1
  • 6
  • 15
2
votes
0 answers

Cartalyst Sentinel with Laravel Socialite conflict

I have a laravel app where I have integrated Cartalyst Sentinel and Laravel Socialite. Before integrating Laravel Socialite, the authentication worked perfectly. After integrating Socialite, first I had an InvalidStateException error on…
xhulio
  • 1,093
  • 1
  • 13
  • 32
2
votes
1 answer

Implement Interface at run-time PHP

Hi Im working on a login application using slim and cartalyst\sentinel. When i create new instance of sentinel reminder $reminder = new Cartalyst\Sentinel\Reminders\IlluminateReminderRepository; it give an error to implement…
Shahid Chaudhary
  • 890
  • 3
  • 14
  • 25
2
votes
2 answers

Query regarding using Sentinel with Laravel and the $fillable array

I'm using Cartalyst Sentinel for the user authentication within Laravel. I've created my form to add a new user. For some strange reason the password does not come through Sentinel::register() unless I put the password field into the $fillable array…
zetetic
  • 171
  • 1
  • 13
2
votes
2 answers

Laravel Cartalyst Sentinel - Can't extend EloquentUser

I've so trouble adding columns to users table with Sentinel. What I did : Creating my own migration file to add (for now) 1 column : "adress" Creating a class "User" in app/Http/Controller namespace App\Http\Controllers; use…
Juyn
  • 80
  • 7
2
votes
1 answer

Laravel 5.1. - Login sessions not persisting

I am using laravel 5.1 with Sentinel - Cartalyst auth driver. Problem is that Laravel can't "keep" users logged in. After some time (when they visit website) it automatically kicks them out with error that they are not logged in (I have filter that…
user3681563
  • 103
  • 2
  • 11
1
2 3 4 5 6