質問編集履歴
2
改善
title
CHANGED
File without changes
|
body
CHANGED
@@ -30,4 +30,9 @@
|
|
30
30
|
|
31
31
|
Doorkeeper.configuration.token_grant_types << "password"
|
32
32
|
|
33
|
+
```
|
34
|
+
|
35
|
+
おそらく下記のようなエラーが出るのでdookeeper.rbのコードが間違ってると思うんですが、
|
36
|
+
```
|
37
|
+
Resource Owner Password Credentials flow failed due to Doorkeeper.configure.resource_owner_from_credentials being unconfigured.
|
33
38
|
```
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,6 +16,12 @@
|
|
16
16
|
Completed 401 Unauthorized in 39ms
|
17
17
|
```
|
18
18
|
|
19
|
+
```
|
20
|
+
[18] pry(main)> access_token = client.password.get_token('sample@gmail.com', 'password')
|
21
|
+
OAuth2::Error: unsupported_grant_type: The authorization grant type is not supported by the authorization server.
|
22
|
+
{"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported by the authorization server."}
|
23
|
+
```
|
24
|
+
|
19
25
|
initializer/doorkeeper.rb
|
20
26
|
```
|
21
27
|
resource_owner_authenticator do
|