73 Commits

Author SHA1 Message Date
bef4685795 Update OAuth1.php 2014-10-15 01:12:52 +02:00
47f2272652 prepare for next release. 2014-10-12 16:44:45 -04:00
ae8d978270 2.0.0 release. 2014-10-12 13:09:06 -04:00
6ba7b52322 'authclient' docs adjusted 2014-10-10 16:37:21 +03:00
165e9ede6d Added ability to operate nested and complex attributes via yii\authclient\BaseClient::normalizeUserAttributeMap 2014-10-08 17:14:52 +03:00
5205eabe3e prepare for next release. 2014-09-28 01:44:31 -04:00
d2b864da84 prepare for 2.0.0-rc release. 2014-09-27 21:59:54 -04:00
1e5c48957d composer.json tabs -> spaces 2014-09-22 17:37:19 +02:00
e40fd9d623 added branch alias to composer.json 2014-09-22 17:26:21 +02:00
ad4f652ca9 Removed unused bower.json files. Adjusted version dependencies. 2014-09-18 23:25:38 -04:00
538bd65a73 Fix alias in bundle 2014-09-17 18:24:52 +04:00
074c1f6c53 Merge branch 'master' into new-asset
Conflicts:
	apps/basic/composer.json
	composer.json
2014-09-16 20:03:53 -04:00
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
97b4c505ad fix authchoice.js 2014-09-10 20:36:35 +03:00
9885aac0ae Removed unused "use" statements 2014-09-07 15:56:06 +04:00
60e07e0d2a new asset WIP: renabled asset publishing 2014-09-02 14:51:44 -04:00
d184fbb8ed new asset WIP [skip ci] 2014-08-29 14:54:49 -04:00
5a1cf0f3a5 Adjusted the location of AuthChoice assets. [skip ci] 2014-08-29 11:33:47 -04:00
7736853837 property code style extensions 2014-07-30 00:40:46 +02:00
100ba6c3ab Replaced substr_compare with strncmp where possible 2014-07-30 02:32:47 +04:00
1f31f27787 phpdoc 2014-07-29 22:19:14 +02:00
fedf8eccd9 yii\authclient\widgets\AuthChoice now preserves initial settings while opening popup 2014-07-28 17:56:03 +03:00
07f01bcf2b Used substr_compare instead of substr when we don't care about result 2014-07-23 16:37:49 +04:00
c9dff5305e Redundant yii\authclient\OpenId::sendStreamRequest() removed. 2014-07-16 16:42:15 +03:00
78daea1bfb OAuth extension adjusted to support any custom request type. 2014-07-16 16:37:50 +03:00
9757029191 yii\authclient\InvalidResponseException added 2014-07-11 14:38:20 +03:00
a1a9d9a3bc Method yii\authclient\BaseOAuth::mergeCurlOptions() advanced to merge array values 2014-07-11 12:30:30 +03:00
fbce722d85 Request HTTP headers argument added to yii\authclient\BaseOAuth::api() method 2014-07-11 12:27:33 +03:00
fe46caf74c User attributes fetching at VKontakte adjusted 2014-07-11 11:19:17 +03:00
3943641077 User attributes requesting at GoogleOAuth switched to Google+ API 2014-07-11 10:49:41 +03:00
dbf10f1848 Missing semicolon 2014-07-02 16:30:26 +04:00
6578cfbdab updated phpdoc and classmap 2014-06-25 18:24:23 +02:00
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
243f0134c9 OpenId return URL comparison advanced to prevent url encode problem 2014-05-30 12:55:28 +03:00
984bb9874f list of predefined Auth clients updated 2014-05-28 11:11:20 +03:00
d75f0c7288 removed @link tags from apidoc and replaced with markdown 2014-05-25 22:29:31 +02:00
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
47960e8f0b Fix a typo 2014-05-09 15:35:14 +03:00
aa34d3121d VKontakte OAuth support added 2014-05-09 13:39:54 +03:00
c27ac8ef0e updated phpdoc 2014-04-26 03:39:46 +02:00
fe14f0c5e3 fixed all the PHPdoc in extensions 2014-04-23 03:25:11 +02:00
c7c708d454 Removed unused imports 2014-04-17 15:35:09 +04:00
f4c38faf74 prepare for next release. 2014-04-13 21:22:29 -04:00
8bbcff70db prepare for 2.0.0-beta release. 2014-04-13 17:58:59 -04:00
0b29c9607d fixed broken API links [skip ci] 2014-04-09 22:22:49 -04:00
3fdcf11f24 updated phpdoc 2014-04-09 18:51:45 +02:00
e3f4214978 Tabs replaced by spaces at AuthChoice asset files. 2014-04-07 16:29:00 +03:00
4f0089bb0d Microsoft Live OAuth2 client added. 2014-04-07 16:22:00 +03:00
7f0ab92d8e Widget 'yii\authclient\widgets\Choice' renamed to 'yii\authclient\widgets\AuthChoice' 2014-04-07 15:38:16 +03:00
0d3e85caff Merge pull request #2883 from kartik-v/patch-14
Simplify inline script code
2014-03-26 14:28:20 +03:00