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
1
vote
1 answer

Laravel 5.0 Cartalyst Sentinel Setup

I'm trying to install Sentinel into my Laravel 5.0 application, however despite following the guide to the letter: https://cartalyst.com/manual/sentinel/2.0#laravel-5 I keep getting the following…
user1785684
  • 291
  • 3
  • 17
1
vote
1 answer

Laravel 5.1 Sentinel::getUser() return null

I am using Sentinel to authenticate users and as the auth Middleware. Middleware code: public function handle($request, Closure $next) { var_dump(Sentinel::guest()); // prints false if (Sentinel::guest()) { if ($request->ajax()) { …
brazorf
  • 1,943
  • 2
  • 32
  • 52
1
vote
0 answers

How do I augment the Cartalyst Sentinel Sign Up/Sign In functionality?

I am trying to learn more about Cartalyst Sentinel in Slim PHP for user sign up and authentication. I'm a bit out of my depth as I've not attempted this type of thing in the past. I have been following this tutorial on how to implement Sentinel in…
Shane McCarthy
  • 109
  • 3
  • 12
1
vote
1 answer

Laravel Sentinel Login with Webview App

I have a web application built with Laravel 5.1. I have opened a POST route on frontend for webview apps. This is my app login function: $json = array(); $credentials = [ 'email' => $request->email, 'password' =>…
1
vote
1 answer

Cartalyst Sentinel - Log events (What is the right way)

Where will be the right place to Log of every Signup and Signin attempt inside Sentinel? I'm looking to store: status (succeful or not), time stamp, IP, HTTP User Agent, HTTP Accept Language. I had think to put them inside…
yakofetof
  • 11
  • 2
1
vote
1 answer

Laravel 5 with Sentinel using 'username' to login/register

I've followed the other posts/tutorials -Made a new model - put it into app/Models(I created this folder)/User.php use Cartalyst\Sentinel\Users\EloquentUser as CartalystUser; class User extends CartalystUser { protected $fillable = [ …
1
vote
0 answers

Using JWT Auth along with existing authenticatiion system

So, this is the first time that I am trying to implement auth in my API. I already had an existing authentication system - Cartalyst Sentinel 2.0 and now to add auth I am using JWT. What I have done is : Send a token to the client end at the time…
Ashish
  • 679
  • 7
  • 19
1
vote
2 answers

Is it possible to set content related permissions on cartalyst/sentinel?

i'm new to laravel and cartalyst/sentinel, but for this project i'm facing out an authorization problem: I have to set User CRUD permissions for the single content, and i'm facing out how to do id with cartalyst/sentinel. (a lil' example: if i have…
1
vote
0 answers

Laravel / Cartalyst Sentinel Authentication not detecting the user as logged in

I'm on Laravel 5.1 using Cartalyst's Sentinel as my authentication system. I'm using angular on my front-end. I have a form at domain.com/login that sends a POST request to api.domain.com/login. If the user has entered correct credentials…
Zaki Aziz
  • 3,592
  • 11
  • 43
  • 61
1
vote
3 answers

Cartalyst Sentinel get all roles

So I have chosen Sentinel as an ACL for my CMS. And I'm getting to the point where I need to assign roles to users. To do that I need to get a list of all available roles. But when requesting: Role::all() from my model (which extends the…
Matt
  • 1,081
  • 15
  • 27
1
vote
0 answers

Sentinel for laravel 5 - Cannot Logout - session persists

Laravel 5.1 Sentinel 2 Here is my logout() in controller: public function logout() { $user = Sentinel::getUser(); Sentinel::logout($user, true); return redirect('/shopadmin/login'); } Here is how I login: public…
TrueStory
  • 439
  • 5
  • 17
1
vote
0 answers

Database [users] not configured

I'm using Cartalyst Sentinel to register a user. Everything works fine (form, validation, etc) but when I send a valid user information, this error Pops out. Image: https://i.stack.imgur.com/QhYS5.jpg database.php : http://laravel.io/bin/DeG7n
1
vote
1 answer

Authenticate user through email using Sentinel

Is there any way to authenticate a user via email/link/code in Cartalyst Sentinel? I'm building a simple user registration in Laravel 5.1 which sends a activation email after sign up. By clicking the link, I'd like to activate and authenticate the…
henriale
  • 1,012
  • 9
  • 21
1
vote
4 answers

Error installing cartalyst/sentinel

When i am trying to install sentinel with composer "repositories": [ { "type": "composer", "url": "https://packages.cartalyst.com" } ], "require": { "laravel/framework": "4.2.*", …
Invitiom
  • 25
  • 5
0
votes
0 answers

NativeSession::startSession taking more time in laravel - Sentinel

As per new relic data NativeSession::startSession taking almost 80% of time ( 6sec) in Laravel some times /** * Starts the session if it does not exist. * * @return void */ protected function startSession() { // Check that the session hasn't…
SteDS
  • 1
  • 2