Questions tagged [cartalyst-sentry]

A modern and framework agnostic authorization and authentication package featuring groups, permissions, custom hashing algorithms and additional security features.

196 questions
0
votes
1 answer

how to Inject a Sentry 2 User Model into a controller - laravel 4

How do you inject a Sentry 2 User model into a laravel 4 controller using IoC? for example i would like the following class myController extends BaseController { /** * creates a list of MyModel Models * * @return View */ …
AndrewMcLagan
  • 13,459
  • 23
  • 91
  • 158
0
votes
1 answer

Sentry authenticate by username in Laravel

How do I configure sentry to authenticate by username rather than by email. All the examples I am finding all authenticate by email. Any help much appreciated.
DamongoCoder
  • 431
  • 5
  • 7
0
votes
1 answer

Cartalyst Sentry2 only one user can log in

I'm using Cartalyst Sentry2 authentication in my Laravel 4.0 application. For some reason, I can only log in only one time with an account. If I tried to login again with another browser or another computer, the other session get log out…
Yada
  • 30,349
  • 24
  • 103
  • 144
0
votes
1 answer

By passing Sentry 2 authentication

I'm using Sentry2 for my authentication in a laravel 4 application. http://docs.cartalyst.com/sentry-2/authentication The specifications want the ability to "pretend" to be another user. For example, the super administrator can pretend to be any…
Yada
  • 30,349
  • 24
  • 103
  • 144
0
votes
1 answer

Validation using Sentry2 in Laravel 4

I want to use Sentry2 in my Laravel 4 application but I'm not sure how to use it to validate user submitted data before I interact with it. In my own models, I would write a $rules array to contain the validation rules and write a static validates()…
Iain
  • 1,724
  • 6
  • 23
  • 39
0
votes
1 answer

REST api authenication with laravel 4 and sentry 2

I am building a RESTful API with laravel 4 and sentry 2,I try to create API with method postSignin but failed.correction to beg in postSignin this is filters and route. filters Route::filter('api', function() { // Check if the user is…
avew
  • 13
  • 5
0
votes
1 answer

Laravel4 Sentry2 email activation

I am using Laravel4 and the Sentry2 package. I have a user registering and logging in successfully but I need help sending the email activation. My plan is to send an email with a link containing the users email and their activation code. The user…
jthompson
  • 229
  • 2
  • 15
0
votes
1 answer

Laravel 4 with Sentry - Multi step form/registration

I have a process where during the user registration I have to pull data from a 3rd party API service. I'm using Laravel and I'm still at learning stage but I want to do this professionally. I cant find any plugins related to Laravel 4 or Sentry to…
Sterling Duchess
  • 1,970
  • 16
  • 51
  • 91
0
votes
1 answer

Laravel Sentry 2 extending Group Model not working?

I use Sentry 2 for auth and I created a User, Throttle and a Group Model. After i did this, i modified the config file from sentry 2 package. I use my own primary keys in the models. Instead of id, i use user_id, group_id etc. But if i modify the…
Marco
  • 1,579
  • 1
  • 19
  • 34
0
votes
1 answer

Getting started with Laravel and Sentry

I found a Laravel 4 announcement on HN a few weeks ago and thought I could give it a try. After looking for a basic tutorial, I found this one: http://www.codeforest.net/laravel4-simple-website-with-backend-1 And ran into what is probably a silly…
Carlos
  • 57
  • 2
  • 9
0
votes
3 answers

Laravel: Adding permissions in sentry

I've only started using in Sentry Laravel 4 and I'm not sure where I should be writing my Group permissions. I've gone through the Sentry docs but the explanation seems a bit vague. Are there any Sentry users who can point me in the right direction?
ally
  • 51
  • 2
  • 11
0
votes
1 answer

create/register a user using laravel3 + sentry1

I'd like to register a user without metadata. I have this code but this $user = Sentry::user()->register(array( 'email' => Input::get('email'), 'password' => Input::get('password') )); but then I got this error: SQLSTATE[HY000]: General…
Ricbermo
  • 815
  • 1
  • 6
  • 28
0
votes
1 answer

Laravel 4 'with' data persisting

I'm using Laravel 4's App::error class to catch Sentry exceptions throughout my application and pass the data back to the template using the withErrors() function. Simple route: routes.php Route::post('/login... ... $credentials = array( …
steveneaston
  • 259
  • 1
  • 4
  • 10
0
votes
1 answer

FuelPHP Sentry Insert Group on Regstration

I can't really find anything about this in the documentation. I used Codeigniter a lot, and I used Ben Edmunds Ion auth mostly, and that was a bit easier for me, because there I was able to add a group insert function in the registration. You can…
Side
  • 1,753
  • 9
  • 35
  • 64
-1
votes
1 answer

converting json to associative array in laravel?

I want to send user permissions (sentry) to a blade page.user permission is a json object(as I know). it's controller code: $user = Sentry::findUserByID($id); $gr = Sentry::findGroupByName('admin'); $permissions = $gr->permissions; $per =…
cielo
  • 5
  • 1
  • 5
1 2 3
13
14