cartalyst-sentry

laravel sentry redirect::intended not working

荒凉一梦 提交于 2019-12-03 04:06:56
I'm trying to get the sentry package set up in my app correctly. I can log a user in and out and protect routes but I can't seem to get the redirect::intended to work properly. My understanding is that a user will be taken back to the route they originally called before being directed to the login page. At the moment it simply keeps redirecting to the default page. In my routes.php I have the following group set up: Route::group(array('before' => 'sentryAuth'), function () {...} Within this group I've placed all the protected routes. In my filters.php I have the following filters: Route:

Laravel: Enable Sentry user account be used in multiple computers

旧城冷巷雨未停 提交于 2019-12-02 23:40:18
While using Sentry in L4, is it possible to make an account be used in multiple computers at the same time? Right now, Sentry logs out the user the moment the same account is used in another computer. Right now I'm trying for that not to happen and keep both users logged in at the same time. I know that it's a security feature when a user gets logged out, but my project's circumstances aren't what you'd call normal . Extension to Nico Kaag's answer and implementation of spamoom's comment: /app/config/packages/cartalyst/sentry/config.php ... // Modify users array to point to custom model.

Sentry 2 Facebook Oauth On Laravel says Call to undefined method ::profile()

陌路散爱 提交于 2019-12-01 13:10:46
问题 I am using Laravel 4.1, and using facebook/php-sdk with sentry actually it's derived from this questions answer: Facebook Login with Sentry, A password is required for user [email], none given This code isn't working any more: $profile = $user->profiles()->save($profile); throws this error: How to resolve it? route for that is available here Route code My models are as bellows: Profile model: <?php class Profile extends \Eloquent { public function user() { return $this->belongsTo('User'); } }

How to: implement sentry 2 permissions with Laravel 4?

爱⌒轻易说出口 提交于 2019-11-30 11:01:02
问题 I'm trying to use cartalyst sentry 2 in my site being built with Laravel 4. Basically I don't understand how to implement permissions. The examples I've seen for permissions for a group specify the following as an example: { "name" : "Administrator", "permissions" : { "user.create" : 1, "user.delete" : 1, "user.view" : 1, "user.update" : 1 } } SO this is setting permissions for the admin group. BUT where are these permissions set? In the table 'groups' there is a field called permissions

How to: implement sentry 2 permissions with Laravel 4?

倖福魔咒の 提交于 2019-11-29 23:02:06
I'm trying to use cartalyst sentry 2 in my site being built with Laravel 4. Basically I don't understand how to implement permissions. The examples I've seen for permissions for a group specify the following as an example: { "name" : "Administrator", "permissions" : { "user.create" : 1, "user.delete" : 1, "user.view" : 1, "user.update" : 1 } } SO this is setting permissions for the admin group. BUT where are these permissions set? In the table 'groups' there is a field called permissions which is a text field - are they set there - if so how? Or are these set in a model or controller? Can

How can I use sentry with laravel 5?

蹲街弑〆低调 提交于 2019-11-28 19:42:22
I have tried installing sentry in laravel 5 but it doesn't work. I would like to know if anyone has done it and how to do it. Update: I used the instructions for Laravel 4. scrfix I have this working. There is no official support right now for Sentry in L5. They state this right on their website. They are working on it however. Add the following to your composer.json file in the require section. "cartalyst/sentry": "dev-feature/laravel-5", "illuminate/html": "~5.0" Add the following to the autoload section. "app/Http/Controllers", It should look something like: "require": { "laravel/framework"