Commit Graph

77 Commits

Author SHA1 Message Date
Дмитрий
97b1de1060 Error in documentation
Method clientLink no returns data. In the example of the use of manual output clients in the loop you need to use <?php instead of <?=
2014-12-02 02:21:27 +02:00
Klimov Paul
1605905fc1 Fixed CCS for yii\authclient\widgets\AuthChoice does not loaded if popupMode disabled 2014-11-11 13:37:39 +02:00
Klimov Paul
b5ddde0246 Code style fix 2014-11-07 17:17:42 +02:00
Alexander Mohorev
64b4d6dca1 Correct order of property declaration 2014-10-25 16:28:36 +03:00
Iyed
bef4685795 Update OAuth1.php 2014-10-15 01:12:52 +02:00
Qiang Xue
47f2272652 prepare for next release. 2014-10-12 16:44:45 -04:00
Qiang Xue
ae8d978270 2.0.0 release. 2014-10-12 13:09:06 -04:00
Klimov Paul
6ba7b52322 'authclient' docs adjusted 2014-10-10 16:37:21 +03:00
Klimov Paul
165e9ede6d Added ability to operate nested and complex attributes via yii\authclient\BaseClient::normalizeUserAttributeMap 2014-10-08 17:14:52 +03:00
Qiang Xue
5205eabe3e prepare for next release. 2014-09-28 01:44:31 -04:00
Qiang Xue
d2b864da84 prepare for 2.0.0-rc release. 2014-09-27 21:59:54 -04:00
Carsten Brandt
1e5c48957d composer.json tabs -> spaces 2014-09-22 17:37:19 +02:00
Carsten Brandt
e40fd9d623 added branch alias to composer.json 2014-09-22 17:26:21 +02:00
Qiang Xue
ad4f652ca9 Removed unused bower.json files. Adjusted version dependencies. 2014-09-18 23:25:38 -04:00
Revin Roman
538bd65a73 Fix alias in bundle 2014-09-17 18:24:52 +04:00
Qiang Xue
074c1f6c53 Merge branch 'master' into new-asset
Conflicts:
	apps/basic/composer.json
	composer.json
2014-09-16 20:03:53 -04:00
Yuan Chong
baee44c97b OAuth API Response with 20x status should be in normal
Hello,

I used **Yii2 authclient** to build a Github OAuth (2.0) client, and performed a POST call to create a Github repository hook. But I got this exception:

```
exception 'yii\authclient\InvalidResponseException' with message '
Request failed with code: 201, message:
{
	"url": "https://api.github.com/repos/ychongsaytc/example/hooks/1000000",
	"test_url": "https://api.github.com/repos/ychongsaytc/example/hooks/1000000/test",
	"id": 1000000,
	"name": "web",
	"active": true,
	"events": ["push"],
	"config": {
		"url": "https://example.com/payload",
		"content_type": "form",
		"secret": null
	},
	"last_response": {
		"code": null,
		"status": "unused",
		"message": null
	},
	"updated_at": "2014-09-14T03:02:55Z",
	"created_at": "2014-09-14T03:02:55Z"
}
' in /home/ubuntu/public_html/live/vendor/yiisoft/yii2-authclient/BaseOAuth.php:206
```

I think a successful API call is not always exactly return **200** status, like **Create a hook** API of Github: https://developer.github.com/v3/repos/hooks/

It will return `201 Created` if hook was successfully created.

In my opinion, is status code starts with **20** in normal scenario?

close #5011
2014-09-14 12:59:11 +02:00
dima
97b4c505ad fix authchoice.js 2014-09-10 20:36:35 +03:00
Alexander Makarov
9885aac0ae Removed unused "use" statements 2014-09-07 15:56:06 +04:00
Qiang Xue
60e07e0d2a new asset WIP: renabled asset publishing 2014-09-02 14:51:44 -04:00
Qiang Xue
d184fbb8ed new asset WIP [skip ci] 2014-08-29 14:54:49 -04:00
Qiang Xue
5a1cf0f3a5 Adjusted the location of AuthChoice assets. [skip ci] 2014-08-29 11:33:47 -04:00
Carsten Brandt
7736853837 property code style extensions 2014-07-30 00:40:46 +02:00
Alexander Makarov
100ba6c3ab Replaced substr_compare with strncmp where possible 2014-07-30 02:32:47 +04:00
Carsten Brandt
1f31f27787 phpdoc 2014-07-29 22:19:14 +02:00
Klimov Paul
fedf8eccd9 yii\authclient\widgets\AuthChoice now preserves initial settings while opening popup 2014-07-28 17:56:03 +03:00
Alexander Makarov
07f01bcf2b Used substr_compare instead of substr when we don't care about result 2014-07-23 16:37:49 +04:00
Klimov Paul
c9dff5305e Redundant yii\authclient\OpenId::sendStreamRequest() removed. 2014-07-16 16:42:15 +03:00
Klimov Paul
78daea1bfb OAuth extension adjusted to support any custom request type. 2014-07-16 16:37:50 +03:00
Klimov Paul
9757029191 yii\authclient\InvalidResponseException added 2014-07-11 14:38:20 +03:00
Klimov Paul
a1a9d9a3bc Method yii\authclient\BaseOAuth::mergeCurlOptions() advanced to merge array values 2014-07-11 12:30:30 +03:00
Klimov Paul
fbce722d85 Request HTTP headers argument added to yii\authclient\BaseOAuth::api() method 2014-07-11 12:27:33 +03:00
Klimov Paul
fe46caf74c User attributes fetching at VKontakte adjusted 2014-07-11 11:19:17 +03:00
Klimov Paul
3943641077 User attributes requesting at GoogleOAuth switched to Google+ API 2014-07-11 10:49:41 +03:00
Arthur Khachaturov
dbf10f1848 Missing semicolon 2014-07-02 16:30:26 +04:00
Carsten Brandt
6578cfbdab updated phpdoc and classmap 2014-06-25 18:24:23 +02:00
Alexander Makarov
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
Klimov Paul
243f0134c9 OpenId return URL comparison advanced to prevent url encode problem 2014-05-30 12:55:28 +03:00
Klimov Paul
984bb9874f list of predefined Auth clients updated 2014-05-28 11:11:20 +03:00
Carsten Brandt
d75f0c7288 removed @link tags from apidoc and replaced with markdown 2014-05-25 22:29:31 +02:00
Carsten Brandt
b7e493fca0 Tabs to spaces to be consistent
```
vendor/bin/indent --spaces -r framework/
vendor/bin/indent --tabs -r . --pattern=*.json
vendor/bin/indent --spaces -r . --pattern=*.md
vendor/bin/indent --spaces -r . --pattern=yii.*.js
vendor/bin/indent --spaces -r . --pattern=*.css
```
2014-05-23 16:58:21 +02:00
Paul Klimov
47960e8f0b Fix a typo 2014-05-09 15:35:14 +03:00
Paul Klimov
aa34d3121d VKontakte OAuth support added 2014-05-09 13:39:54 +03:00
Carsten Brandt
c27ac8ef0e updated phpdoc 2014-04-26 03:39:46 +02:00
Carsten Brandt
fe14f0c5e3 fixed all the PHPdoc in extensions 2014-04-23 03:25:11 +02:00
Alexander Makarov
c7c708d454 Removed unused imports 2014-04-17 15:35:09 +04:00
Qiang Xue
f4c38faf74 prepare for next release. 2014-04-13 21:22:29 -04:00
Qiang Xue
8bbcff70db prepare for 2.0.0-beta release. 2014-04-13 17:58:59 -04:00
Qiang Xue
0b29c9607d fixed broken API links [skip ci] 2014-04-09 22:22:49 -04:00
Carsten Brandt
3fdcf11f24 updated phpdoc 2014-04-09 18:51:45 +02:00