質問編集履歴

1

コマンドプロンプトの内容を追加しました。

2020/07/01 15:21

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -125,3 +125,47 @@
125
125
  config.omniauth :twitter, ENV['キー'], ENV['シークレットキー'], scope: 'email', oauth_callback: "url"
126
126
 
127
127
  ```
128
+
129
+
130
+
131
+ ちなみに、コマンドプロンプトはこうなりました。
132
+
133
+ ```コマンドプロンプト
134
+
135
+ Started GET "/users/auth/twitter" for ::1 at 2020-07-02 00:10:47 +0900
136
+
137
+ I, [2020-07-02T00:10:47.931087 #16912] INFO -- omniauth: (twitter) Request phase initiated.
138
+
139
+ Started GET "/users/auth/twitter" for ::1 at 2020-07-02 00:10:48 +0900
140
+
141
+ I, [2020-07-02T00:10:48.407058 #16912] INFO -- omniauth: (twitter) Request phase initiated.
142
+
143
+ Started GET "/users/auth/twitter/callback?oauth_token=VxRj-QAAAAABFl5dAAABcwruLzI&oauth_verifier=HncO5sdRW67GjaznVwFhqA4CWYjzTpSi" for ::1 at 2020-07-02 00:10:49 +0900
144
+
145
+ I, [2020-07-02T00:10:49.663093 #16912] INFO -- omniauth: (twitter) Callback phase initiated.
146
+
147
+ Processing by OmniauthCallbacksController#twitter as HTML
148
+
149
+ Parameters: {"oauth_token"=>"VxRj-QAAAAABFl5dAAABcwruLzI", "oauth_verifier"=>"HncO5sdRW67GjaznVwFhqA4CWYjzTpSi"}
150
+
151
+ User Load (0.8ms) SELECT `users`.* FROM `users` WHERE `users`.`uid` = '1159159785406599168' AND `users`.`provider` = 'twitter' ORDER BY `users`.`id` ASC LIMIT 1
152
+
153
+ ↳ app/models/user.rb:8:in `find_for_oauth'
154
+
155
+ (0.2ms) BEGIN
156
+
157
+ ↳ app/models/user.rb:11:in `find_for_oauth'
158
+
159
+ User Exists? (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY '1159159785406599168-twitter@example.com' LIMIT 1
160
+
161
+ ↳ app/models/user.rb:11:in `find_for_oauth'
162
+
163
+ (0.7ms) ROLLBACK
164
+
165
+ ↳ app/models/user.rb:11:in `find_for_oauth'
166
+
167
+ Redirected to http://localhost:3000/users/sign_up
168
+
169
+ Completed 302 Found in 296ms (ActiveRecord: 2.3ms | Allocations: 4796)
170
+
171
+ ```