Commit Graph

73 Commits

Author SHA1 Message Date
Sam Mousa
03e23adab8 Fixes #11679: Extracted CheckAccessInterface from ManagerInterface 2016-06-09 15:15:44 +03:00
Nikola Kovacs
9d327baa8b coding style fixes 2016-05-26 11:19:32 +02:00
SilverFire - Dmitry Naumenko
38be74446e Update PHPDoc, CHANGELOG, UPGRADE.md 2016-05-22 12:54:29 +03:00
maine-mike
7249a6c99e Move Identity Cookie code into separate functions 2016-05-22 12:12:04 +03:00
SilverFire - Dmitry Naumenko
0ff6eeba7d Enhanced 9f499eb: yii\web\User::checkRedirectAcceptable() removed check for "*" type (invalid in accept header) 2016-05-16 01:11:47 +03:00
SilverFire - Dmitry Naumenko
9f499eb51e Fixed yii\web\User::checkRedirectAcceptable() to treat acceptable content type */* as *
Closes #11523
2016-05-15 22:27:40 +03:00
dawei
5bd35c344c dont set return url, if request method is not GET 2016-04-22 22:21:31 +03:00
maine-mike
ad6047e09f Fixes #10480: Fixed removing old identity cookie when loggin in as another user without logging out first 2016-04-12 02:19:34 +03:00
SilverFire - Dmitry Naumenko
9a73593908 yii\web\User - updated PHPDoc 2016-03-23 00:08:07 +02:00
Sam Mousa
c7436909f4 Added optional $checkHeader param to loginRequired for checking the Accept header; defaults to true.
Added changelog line.

Fixed DbSessionTest

Added version annotations.

Improvements to phpdoc and whitespace.
2016-03-23 00:08:01 +02:00
SilverFire - Dmitry Naumenko
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
Alexander Makarov
0712bad090 Fixes #9846: Fixed yii\web\User::loginRequired() should throw 401 not 403 (reverted from commit 4e715f9d65)
See https://github.com/yiisoft/yii2/issues/9846#issuecomment-146891825
2015-10-09 22:13:39 +03:00
spikyjt@gmail.com
4e715f9d65 Fixes #9846: Fixed yii\web\User::loginRequired() should throw 401 not 403 2015-10-07 18:16:42 +03:00
Kevin LEVRON
bc543db206 fix doc 2015-09-28 15:25:29 +02:00
Alexander Kochetov
223b0bea5d Fixes #9369: Yii::$app->user->can() now returns false instead of erroring in case authManager component is not configured 2015-08-11 11:16:21 +03:00
Carsten Brandt
a2568d1ec8 updated some comments and @since annotations 2015-08-02 19:56:49 +02:00
Sebastian Chojniak
025845e660 performance: unnecessary (when result is cached) getAuthManager() removed 2015-07-09 19:22:36 +02:00
Alexander Mohorev
ae42a054bb PSR-2 spaces, commas, etc 2015-06-09 00:05:06 +03:00
Carsten Brandt
0802d3eb60 added more detailed comment for #8556 2015-06-01 15:44:07 +02:00
Alexander Makarov
acb7b2ebbb Fixes #8556: Extracted yii\web\User::getAuthManager() method 2015-05-31 12:46:38 +03:00
Qiang Xue
0c599b1ee1 Fixes #5480: Added defensive code to yii\web\User::getIdentity() to avoid potential infinite recursion 2014-11-27 21:55:28 -05:00
Alexander Makarov
e2b6cb69b0 Fixes #4889: Application was getting into redirect loop when user wasn't allowed accessing login page. Now shows 403 2014-11-07 03:01:05 +03:00
Alexander Makarov
48ec791e4a Fixes #5587: json_encode is now used with JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE where it makes sense, also it is now default for Json::encode() 2014-10-19 18:50:46 +04:00
Qiang Xue
851d15380f Fixes #5131: Added $autoRenew parameter to yii\web\User::getIdentity() 2014-09-22 17:58:58 -04:00
Alexander Kochetov
090e550a3d Rename \yii\web\User component param for consistency 2014-09-10 05:55:07 +04:00
Qiang Xue
f3105f736a Fixes #3283: Added $checkAjax to yii\web\User::loginRequired() 2014-08-26 22:29:40 -04:00
Qiang Xue
0cdf2f5171 Fixed code break. 2014-08-06 10:27:37 -04:00
Qiang Xue
dee0382c1f Added yii\base\InvalidValueException.
Refactored `yii\web\User`.
2014-08-06 10:07:14 -04:00
Qiang Xue
7a55aea247 Fixes #4600 2014-08-05 07:53:20 -04:00
Carsten Brandt
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
Nikola Kovacs
f6c589f043 Add absoluteAuthTimeout to yii\web\User.
This is based on the code from Yii 1.1.14 by Ivo Kund.
2014-07-16 10:46:11 +02:00
Qiang Xue
c6f711ccca Fixes #3765: Added yii\web\User::enableSession to support authentication without using session 2014-06-25 16:21:54 -04:00
Alexander Makarov
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
Qiang Xue
af7530663d Fixes #3383: Added $type parameter to IdentityInterface::findIdentityByAccessToken() 2014-05-06 18:45:18 -04:00
Qiang Xue
a6136e1b16 Renamed yii\web\User::checkAccess() to yii\web\User::can() 2014-04-12 19:14:50 -04:00
Qiang Xue
0b29c9607d fixed broken API links [skip ci] 2014-04-09 22:22:49 -04:00
Carsten Brandt
f0dcceb37c ensure Dispatchers logger gets set when requested.
fixes #2894
2014-03-27 13:00:59 +01:00
Carsten Brandt
435747cf98 apidoc and codestyle fixes 2014-03-26 23:03:18 +01:00
Carsten Brandt
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
Qiang Xue
58ead7deb1 cleanup. 2014-03-21 09:56:12 -04:00
Ряднов Андрей
aa4e6ec039 fix User::getReturnUrl() after #2501 2014-03-19 11:20:40 +03:00
Qiang Xue
f61734d412 Added $checkSession parameter to User::getIsGuest() and getId(). 2014-03-16 20:43:01 -04:00
Qiang Xue
9e33dedc4e Added return value for User::logout(). 2014-03-16 19:16:39 -04:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Carsten Brandt
40cb98bb02 updated @property annotations 2014-03-11 16:21:25 +01:00
Qiang Xue
bd3dd038ab Fixed user status check. 2014-03-08 15:36:07 -05:00
Qiang Xue
e38c4225b2 Merge commit 'bdce87b242abbff800020deba0a5c2031fc2efe7' into feature-restapi
Conflicts:
	framework/db/BaseActiveRecord.php
2014-03-06 00:00:33 -05:00
Carsten Brandt
8df35f7627 reset access cache when user identity is set
fixes #2632
2014-03-05 17:36:14 +01:00
Qiang Xue
94a9087b89 Renamed User::loginByToken() to loginByAccessToken(). 2014-03-03 15:03:18 -05:00
Qiang Xue
7a04dbaae1 Support for other auth types. 2014-03-03 10:18:39 -05:00