質問編集履歴
2
project1\resources\views を見たところauthとうフォルダが見当たりません。
test
CHANGED
File without changes
|
test
CHANGED
@@ -369,3 +369,17 @@
|
|
369
369
|
理由がわかる人がいましたら教えていただければ幸いです。
|
370
370
|
|
371
371
|
>>>>>>>
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
その後
|
380
|
+
|
381
|
+
project1\resources\views
|
382
|
+
|
383
|
+
を見たところauthとうフォルダが見当たりません。
|
384
|
+
|
385
|
+
ここに自動的に作られるはずなのでしょうか?
|
1
途中まで進みました
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,150 @@
|
|
1
|
-
xammpをつかってlaravelを使っています。
|
1
|
+
リストxammpをつかってlaravelを使っています。
|
2
|
+
|
2
|
-
|
3
|
+
下記の質問をしたのですが、その後何とか自力でエラー画面まで来ました。
|
4
|
+
|
5
|
+
|
6
|
+
|
3
|
-
|
7
|
+
このエラーは認証のエラーでしょうか?
|
8
|
+
|
9
|
+
ツイッターの開発者アカウントのIDとseacretIDが間違っているという事ですか?
|
10
|
+
|
11
|
+
マイグレーションなどすべて終わってから上記を見つけて記載したのですが、それらの処理が終わってからIDを最後に入れてはいけないという事でしょうか?
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
```ここに言語を入力
|
18
|
+
|
19
|
+
League \ OAuth1 \ Client \ Credentials \ CredentialsException
|
20
|
+
|
21
|
+
Received HTTP status code [401] with message "{"errors":[{"code":32,"message":"Could not authenticate you."}]}" when getting temporary credentials.
|
22
|
+
|
23
|
+
```
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
*Server.php
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
```ここに言語を入力
|
36
|
+
|
37
|
+
$_clientCredentials->setCallbackUri($clientCredentials['callback_uri']);
|
38
|
+
|
39
|
+
}
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
return $_clientCredentials;
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
/**
|
50
|
+
|
51
|
+
* Handle a bad response coming back when getting temporary credentials.
|
52
|
+
|
53
|
+
*
|
54
|
+
|
55
|
+
* @param BadResponseException $e
|
56
|
+
|
57
|
+
*
|
58
|
+
|
59
|
+
* @throws CredentialsException
|
60
|
+
|
61
|
+
*/
|
62
|
+
|
63
|
+
protected function handleTemporaryCredentialsBadResponse(BadResponseException $e)
|
64
|
+
|
65
|
+
{
|
66
|
+
|
67
|
+
$response = $e->getResponse();
|
68
|
+
|
69
|
+
$body = $response->getBody();
|
70
|
+
|
71
|
+
$statusCode = $response->getStatusCode();
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
throw new CredentialsException(
|
76
|
+
|
77
|
+
"Received HTTP status code [$statusCode] with message \"$body\" when getting temporary credentials."
|
78
|
+
|
79
|
+
);
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
/**
|
86
|
+
|
87
|
+
* Creates temporary credentials from the body response.
|
88
|
+
|
89
|
+
*
|
90
|
+
|
91
|
+
* @param string $body
|
92
|
+
|
93
|
+
*
|
94
|
+
|
95
|
+
* @return TemporaryCredentials
|
96
|
+
|
97
|
+
*/
|
98
|
+
|
99
|
+
protected function createTemporaryCredentials($body)
|
100
|
+
|
101
|
+
{
|
102
|
+
|
103
|
+
parse_str($body, $data);
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
if (!$data || !is_array($data)) {
|
108
|
+
|
109
|
+
throw new CredentialsException('Unable to parse temporary credentials response.');
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
if (!isset($data['oauth_callback_confirmed']) || $data['oauth_callback_confirmed'] != 'true') {
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
Arguments
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
"Received HTTP status code [401] with message "{"errors":[{"code":32,"message":"Could not authenticate you."}]}" when getting temporary credentials."
|
124
|
+
|
125
|
+
```
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
envファイルに下記二つのキーを入れていますが間違っていますか?
|
132
|
+
|
133
|
+
Consumer Key (API Key) iw~
|
134
|
+
|
135
|
+
Consumer Secret (API Secret) Ous~
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
・元の質問
|
146
|
+
|
147
|
+
>>>>
|
4
148
|
|
5
149
|
laravelのフォルダの場所をデフォルトから下記に変更しています。
|
6
150
|
|
@@ -223,3 +367,5 @@
|
|
223
367
|
|
224
368
|
|
225
369
|
理由がわかる人がいましたら教えていただければ幸いです。
|
370
|
+
|
371
|
+
>>>>>>>
|