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
4
votes
3 answers
Processing Login with Sentry 2
I'm having trouble understanding Sentry 2 implementation for login. I mean in Sentry it was pretty strait forward. Provide username/email and password from Input to Sentry::login() method however they changed it now and it's really confusing. …

Sterling Duchess
- 1,970
- 16
- 51
- 91
4
votes
3 answers
Sentry 2 and Laravel 4 adding fields to the user model
Im trying to add fields to the Users model that is based around Sentry 2 for Laravel 4.
I want to do it properly with migrations.
Is there a way to simply add to the sentry 2 migrations? or should i simply make my own migrations and add the required…

AndrewMcLagan
- 13,459
- 23
- 91
- 158
3
votes
1 answer
Laravel authentication in localhost
Laravel version 4.1
Works perfectly fine on the server and on the domain, but I wanted to take it into development to my localhost and I can't log in. I don't get error messages, nothing to log and nothing happens, expect I'm redirected back to…

EmJeiEn
- 1,343
- 5
- 17
- 30
3
votes
1 answer
Relationships between tables in Sentry shema
Why in Sentry 2 database schema, relationships between tables don't exist? For example between users and users_groups table. Do I have to manually set that?

gormit
- 807
- 3
- 9
- 29
3
votes
1 answer
Using Sentry 2, what is the difference between authenticate() and login()?
Using Cartalys Sentry 2, and I can't seem to find any documentation on the difference between the authenticate() and login() methods, nor when to use one versus the other. Any guidance appreciated.

mass6
- 96
- 6
3
votes
0 answers
Weird session problems in Codeception and Laravel 4
I have a large problem with acceptance testing Laravel 4.0 using Codeception.
There are many problems with sessions, such as tests involving flashes not going through and logged in user treated as not logged in.
If I do {{ var_dump(Session::all())…

Cysioland
- 1,126
- 1
- 9
- 21
3
votes
1 answer
Sentry on Laravel 4. Social Authentication without password
I am building a system where when a user is logging in for the first time using Facebook, he doesn't get to provide a password. So I try to log him in using the credentials from facebook.
Sentry::authenticate($credentials, false);
The above…

Timothy
- 4,198
- 6
- 49
- 59
2
votes
1 answer
How to impersonate any user in a laravel 4 app
Hi I want to switch to users accounts and browse their profiles I found this tutorial Easily impersonate any user in laravel 5 app about impersonating but it works for laravel 5 and I am using laravel 4

user5899040
- 21
- 3
2
votes
1 answer
Laravel app behind AWS ELB not working as expected
I've been stuck for two days now and here is my problem:
I'm looking at a weird behaviour of a laravel app that I didn't develop but I have the responsibility to figure out what's happening.
I set up a laravel app behind AWS ELB with session…

another geek
- 361
- 4
- 15
2
votes
2 answers
How to upload a user.csv in Sentry Laravel
I'm currently using Sentry in my Laravel project. And Goodby CSV which uses PDO for uploading CSV files and adding the data to my database.
Here's my controller to upload the users, it works but the problem is on how to hash the password.
public…

Caloyz
- 21
- 3
2
votes
1 answer
Get attribute from config.php of Sentry 2 for Laravel 4
I'm trying to modify the original User.php file within the vendor folder of cartalyt/sentry because I want to register two accounts with the same email but the original code of Sentry is not allowing this feature so I added an attribute to the…

SoldierCorp
- 7,610
- 16
- 60
- 100
2
votes
2 answers
I can't use some Eloquent methods
I'm trying to use Eloquent with a relationship and alwys have th same result:
Call to undefined method Illuminate\Database\Query\Builder::xxxx()
where xxxx could be "sons" defined in my model or save() if I use another code.
First of all I have…

kikerrobles
- 2,079
- 3
- 16
- 26
2
votes
2 answers
Soft deleting with Sentry 2 and Laravel 4.2
I want to be able to soft delete users through the $user->delete(); method but it doesn't seem to work properly. It always hard deletes, no matter what I do. I've followed all the Laravel 4.2 documentation about it and I think I've configured Sentry…

Gabriel Rebello
- 1,077
- 1
- 11
- 17
2
votes
1 answer
Login with Facebook using Sentry in Laravel
I am facing a problem as the one posted here
The problem is this piece of code
$profile = $user->profiles()->save($profile);
which results in this error
Call to undefined method Illuminate\Database\Query\Builder::profiles()
I tried to do what was…

105tNoMatter
- 147
- 3
- 10
2
votes
0 answers
Sentry 2: Using multiple login attributes
I have been using Sentry for a little while now and I think it is very useful. However, currently I need to be able to let the user log in to the application using their email or username. Due to Sentry's usage of exceptions a simple loop won't cut…

muuk
- 932
- 1
- 7
- 15