質問編集履歴

2

改善

2016/10/08 11:16

投稿

shuzootani
shuzootani

スコア28

test CHANGED
File without changes
test CHANGED
@@ -63,3 +63,13 @@
63
63
 
64
64
 
65
65
  ```
66
+
67
+
68
+
69
+ おそらく下記のようなエラーが出るのでdookeeper.rbのコードが間違ってると思うんですが、
70
+
71
+ ```
72
+
73
+ Resource Owner Password Credentials flow failed due to Doorkeeper.configure.resource_owner_from_credentials being unconfigured.
74
+
75
+ ```

1

追記

2016/10/08 11:16

投稿

shuzootani
shuzootani

スコア28

test CHANGED
File without changes
test CHANGED
@@ -34,6 +34,18 @@
34
34
 
35
35
 
36
36
 
37
+ ```
38
+
39
+ [18] pry(main)> access_token = client.password.get_token('sample@gmail.com', 'password')
40
+
41
+ OAuth2::Error: unsupported_grant_type: The authorization grant type is not supported by the authorization server.
42
+
43
+ {"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported by the authorization server."}
44
+
45
+ ```
46
+
47
+
48
+
37
49
  initializer/doorkeeper.rb
38
50
 
39
51
  ```