A modern and framework agnostic authorization and authentication package featuring groups, permissions, custom hashing algorithms and additional security features.
Questions tagged [cartalyst-sentry]
196 questions
1
vote
0 answers
Unable to let Sentry filters work properly in Laravel
I'm still getting used to Sentry, but if I'm correct I'm doing things right.
The thing is, when I apply a filter to a route, it doesn't work the way I'd like it to do. It's supposed to check if the user is logged in, if it is not logged in, redirect…

Jeroen
- 167
- 2
- 16
1
vote
2 answers
Sentry 2 Authentication workflow with Laravel
I'm building an authentication system using Sentry 2. The problem I'm facing is that I'm unable to create a session for the user after he's authenticated and logged in via Sentry. This is my controller code:
public function postLogin()
{
…

Ananth
- 837
- 1
- 10
- 20
1
vote
1 answer
Using Sentry::getUser(), I can't access model accessors
I'm using Sentry 2.1 for authentication.
My User Model:

Henson
- 5,563
- 12
- 46
- 60
1
vote
2 answers
Error when Call to a member function connection() on a non-object while using Illuminate Database
I have installed Sentry with Composer, thus it has installed Illuminate Database too. The installation was successful, I have done everything in the Sentry documentation. I'm trying to add a user to the database with a simple code. However it gives…

ilhan
- 8,700
- 35
- 117
- 201
1
vote
1 answer
Best way to check permissions with sentry 2 at Laravel
Im developing a basic aplication core, first im working with user/groups and & permissions access.
I choose Sentry 2 to work, and i want to limit the access to my.domain/admin to a users or groups that have admin permissions.
Im developing a filter…

ruudy
- 491
- 2
- 8
- 21
1
vote
3 answers
Laravel 4.1 - Sentry 2 User group access/permission
I'am building my project using Laravel 4.1 with Sentry 2 as authorization and authentication package.
I've managed to log users in, register them and assign proper user groups.
I have 3 user groups:
Administrator
Presenter
Registered
I want to…

SONGE
- 27
- 1
- 9
1
vote
1 answer
how to set permissions by the owner using sentry laravel 4
I am using sentry for my application.
but, I am still confused to implements sentry permission to declare the owner of the object.
for example : any authors writing an articles.
my question : how to set permissions by the owner of the article ?

antoniputra
- 4,251
- 6
- 26
- 31
1
vote
1 answer
Laravel 4 & Sentry
I've just trying to get my head round sentry... it's looking awesome.
I'm just wondering if there is a function to check if the user is currently logged in?
I've tried using the following:
if(!Sentry::check()) return Redirect::to('login');
But if…

WebDevB
- 492
- 2
- 7
- 25
1
vote
1 answer
laravel 4 sentry 2 how to change password and rehash
In my app there's a view that allows the logged in user to enter a new password. How am I to hash the new password? Using native Laravel Auth I would just
Hash::make($input['password']);
is it the same for Sentry 2? If it is, after performing a…

Jared Eitnier
- 7,012
- 12
- 68
- 123
1
vote
2 answers
Sentry Login using username or email (any of em) in Laravel 4
Currently I am using sentry login using email , I know how easily it can be converted into username if I simply change the
sentry config file to this
'login_attribute' => 'username',
But I find it odd because then the emailing of forget…

Sagiruddin Mondal
- 5,407
- 2
- 29
- 44
1
vote
1 answer
Are Permissions in Sentry 2 (by Cartalyst) associated with corresponding routes?
I'm trying to integrate Sentry 2 (by Cartalyst) in Laravel 4. I have a small query regarding the "Group Permissions".
On the documentation of Sentry 2, the use of permissions is shown as follows
"permissions" : {
"user.create" : 1,
…

aayush shrestha
- 1,858
- 2
- 17
- 33
1
vote
1 answer
Laravel 4, Sentry 2 and user permissions
I am about to begin building a system that will require a set questions to be selected and saved as a checklist document for distribution to an arbitrary set of users.
I am intending to use Laravel 4 as my framework and Sentry 2 to handle…

Qubical
- 641
- 5
- 13
1
vote
2 answers
Adding more constrain in sentry 2 authentication processs
Do you have any ideas, how to add some more constrain while authentication in sentry 2, I have a company table and users belongs to a company, and if the company is disabled(set the active to 0 to mark it as disabled in the company table) then the…

Nikhil Agrawal
- 285
- 1
- 3
- 12
1
vote
5 answers
Using the Remember me feature with Sentry in Laravel 4
I'm trying to get a login form to 'remember' the user logging in and I just can't work out how to do it.
Here's my controller
public function getLogin()
{
// Return the view with the data
return View::make('users.login');
}
public function…

bencarter78
- 3,555
- 9
- 35
- 53
1
vote
1 answer
Does Cartalyst Sentry 2, query database to check permission or check other thing?
I am using Cartalyst Sentry 2 for my user managment in my project ( using laravel 4 ). It works good and I like it.
I just have a small question that when you try to check the user permission or check anything about that user like is activated or…

cjmling
- 6,896
- 10
- 43
- 79