Carsten Brandt
1e5c48957d
composer.json tabs -> spaces
10 years ago
Carsten Brandt
e40fd9d623
added branch alias to composer.json
10 years ago
Qiang Xue
ad4f652ca9
Removed unused bower.json files. Adjusted version dependencies.
10 years ago
Revin Roman
538bd65a73
Fix alias in bundle
10 years ago
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
10 years ago
dima
97b4c505ad
fix authchoice.js
10 years ago
Alexander Makarov
9885aac0ae
Removed unused "use" statements
10 years ago
Qiang Xue
60e07e0d2a
new asset WIP: renabled asset publishing
10 years ago
Qiang Xue
d184fbb8ed
new asset WIP [skip ci]
10 years ago
Qiang Xue
5a1cf0f3a5
Adjusted the location of AuthChoice assets. [skip ci]
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
7736853837
property code style extensions
10 years ago
Alexander Makarov
100ba6c3ab
Replaced substr_compare with strncmp where possible
10 years ago
Carsten Brandt
1f31f27787
phpdoc
10 years ago
Klimov Paul
fedf8eccd9
`yii\authclient\widgets\AuthChoice` now preserves initial settings while opening popup
10 years ago
Alexander Makarov
07f01bcf2b
Used substr_compare instead of substr when we don't care about result
10 years ago
Klimov Paul
c9dff5305e
Redundant `yii\authclient\OpenId::sendStreamRequest()` removed.
10 years ago
Klimov Paul
78daea1bfb
OAuth extension adjusted to support any custom request type.
10 years ago
Klimov Paul
9757029191
`yii\authclient\InvalidResponseException` added
10 years ago
Klimov Paul
a1a9d9a3bc
Method `yii\authclient\BaseOAuth::mergeCurlOptions()` advanced to merge array values
10 years ago
Klimov Paul
fbce722d85
Request HTTP headers argument added to `yii\authclient\BaseOAuth::api()` method
10 years ago
Klimov Paul
fe46caf74c
User attributes fetching at `VKontakte` adjusted
10 years ago
Klimov Paul
3943641077
User attributes requesting at GoogleOAuth switched to Google+ API
10 years ago
Arthur Khachaturov
dbf10f1848
Missing semicolon
10 years ago
Carsten Brandt
6578cfbdab
updated phpdoc and classmap
10 years ago
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
10 years ago
Klimov Paul
243f0134c9
OpenId return URL comparison advanced to prevent url encode problem
10 years ago
Klimov Paul
984bb9874f
list of predefined Auth clients updated
10 years ago
Carsten Brandt
d75f0c7288
removed `@link` tags from apidoc and replaced with markdown
10 years ago
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
```
11 years ago
Paul Klimov
47960e8f0b
Fix a typo
11 years ago
Paul Klimov
aa34d3121d
VKontakte OAuth support added
11 years ago
Carsten Brandt
c27ac8ef0e
updated phpdoc
11 years ago
Carsten Brandt
fe14f0c5e3
fixed all the PHPdoc in extensions
11 years ago
Alexander Makarov
c7c708d454
Removed unused imports
11 years ago
Qiang Xue
f4c38faf74
prepare for next release.
11 years ago
Qiang Xue
8bbcff70db
prepare for 2.0.0-beta release.
11 years ago
Qiang Xue
0b29c9607d
fixed broken API links [skip ci]
11 years ago
Carsten Brandt
3fdcf11f24
updated phpdoc
11 years ago
Klimov Paul
e3f4214978
Tabs replaced by spaces at AuthChoice asset files.
11 years ago
Klimov Paul
4f0089bb0d
Microsoft Live OAuth2 client added.
11 years ago
Klimov Paul
7f0ab92d8e
Widget 'yii\authclient\widgets\Choice' renamed to 'yii\authclient\widgets\AuthChoice'
11 years ago
Kartik Visweswaran
cd4038bfa8
Simplify inline script code
...
Simplify inline script code (removed extra space)
11 years ago
Kartik Visweswaran
14137a123e
Correct classname typo
...
Correct classname to `BaseOAuth` instead of `BaseClient` in PHP Doc.
11 years ago
Kartik Visweswaran
dd4ddfe06c
Simplify inline script code
...
Simplify the rendering of the inline script (using direct markup), eliminating need for using PHP variable to store value using HEREDOC.
11 years ago
Carsten Brandt
1e75427393
updated classmap and phpdoc
11 years ago
Qiang Xue
8c2e39235f
Turn module and application into DI containers.
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Carsten Brandt
6fff5662df
better use @see for See in phpdoc
11 years ago
Carsten Brandt
c94a40e90d
added a large amount of missing documentation
11 years ago