The Kohana Auth module provides an easy-to-use API for basic website authentication (users) and authorization (roles)
Questions tagged [kohana-auth]
69 questions
10
votes
3 answers
Securing Cookies and Sessions
The issue I'm having, which may not be solvable, is as follows:
I have a client that is a large organization of 1,500+ users at 7-8 different locations. The application is a PHP application build on the Kohana v3.0 framework. The organization sits…

norris-md
- 306
- 2
- 10
5
votes
2 answers
3.1 Auth working example of login/logout controller methods?
Does anyone happen to have a working example of Auth in 3.1? I've been trying to get this to work, but have not had any luck.
New to Kohana, first attempt is 3.1. Found Bonafide, but don't need it since I'm starting w/ 3.1.
Been using examples from…

steveint
- 71
- 1
- 3
5
votes
2 answers
Kohana 3 auth module, getting users with 'staff' or 'manager' role
I'm learning the framework, and now building an application using it.
I need to get all users that have 'user' or 'staff' role, but I couldn't find about it on the documentation.
Help anyone? (I think it's more an ORM problem the the auth module)

leonardys
- 504
- 4
- 10
4
votes
1 answer
Cannot login with Kohana 3.3.0 ORM Auth
I am trying to use the Auth module with ORM driver in Kohana 3.3.0, but the only thing I can do is insert new users in the database. I can't login with them.
I started with a blank Kohana project, a simple route, the database config file, and I…

Romain Paulus
- 2,306
- 1
- 20
- 20
3
votes
2 answers
Kohana 3 auth module, how to configure user table and fields
I have uncomment in module loader to load auth, but what I am not understanding is that how to tell auth module that which fields of which table it should use to authenticate? I also didn't find that in userguide in Kohana 3 as I found that…

Hafiz
- 4,187
- 12
- 58
- 111
3
votes
2 answers
one-to-many relation in Kohana
I have 3 tables users , roles and roles_users. The roles_users table have user_id and role_id
Now my models are Model_User, Model_Role, Model_User_Role.
How can i link the three models so that every user is associated to one role and one role has…

jimy
- 4,848
- 3
- 35
- 52
3
votes
2 answers
kohana2 auth - login problem
I'm trying to make a login form for my kohana2 app using ORM example presented in kohana2 docs ( http://docs.kohanaphp.com/addons/auth ). I've done everything like in the wiki but after providing username, password and sending a form, nothing…

mbajur
- 4,406
- 5
- 49
- 79
3
votes
3 answers
PHP framework with good user login/admin
I am looking for a good PHP framework with a good user login & admin. I have looked at Codeigniter, but the user admins I have found seem dated. I have been looking at at Kohana, but have not been able to find a viable login / admin pannel? I…

Ethan Whitt
- 81
- 1
- 1
- 4
3
votes
1 answer
Error when using Auth with ORM driver kohana 3.3.0
today i download a 3.3.0 but have error when working with Auth and ORM :
Fatal error: Class 'Auth_Orm' not found in
/home/vsao4/domains/v4.mclub.vn/public_html/modules/auth/classes/Kohana/Auth.php
on line 37
My Auth config as below…

tieungao
- 45
- 1
- 3
3
votes
1 answer
Kohana 3.2 Auth ORM: I can't seem to stay logged in with the "remember me" option set
I'm having a problem with Auth / ORM and auto_login. I have the lifetime set to two weeks, but I get logged out after about an hour, regardless of whether the browser is closed or not. In fact, it's time-based, since the session does stay, even over…

Mr Mikkél
- 2,577
- 4
- 34
- 52
2
votes
1 answer
How can I ensure users are logged in before accessing the Kohana Userguide & API Browser?
I'm realizing that I have a bit of a security hole on my sites, specifically when it's in development mode.
The problem is that you can access the User Guide / API Browser without being logged in. Now the User Guide isn't a big deal, but the API…

Darryl Hein
- 142,451
- 95
- 218
- 261
2
votes
3 answers
Making user profiles with Kohana
I'm running Kohana 3, and having a hard time understanding the Auth module, or even if it's what I need. Basically I want to create a basic user profile site with basic username/password protection.
How do I take my existing controllers...
class…

JoeCortopassi
- 5,083
- 7
- 37
- 65
2
votes
3 answers
How to delete all user roles in Kohana 3
I'm using ORM Auth module and it's difficult to figure out how to do it. I've tried this case:
$user = ORM::factory('user', $id);
$user->roles->delete_all();
And got error ErrorException [ Fatal Error ]: Call to undefined method…

Bob0101
- 187
- 2
- 14
2
votes
1 answer
Login with Kohana auth module - what am I doing wrong?
I'm trying to login with the following controller action, but my login attempt keeps failing (I get the 'invalid username and/or password' message). What am I doing wrong? I also tried the other method given in the examples in the auth…

keithjgrant
- 12,421
- 6
- 54
- 88
2
votes
3 answers
Kohana/JQuery Auth access issue
I have a website using the Kohana ORM Auth. I am having a url which when called via ajax will check whether the user is logged in and return json_encoded data corresponding to the users role. this url is working fine when i tried it in normal…

logeeks
- 4,849
- 15
- 62
- 93