2017-02-23 6 views
0

Drupal 8.3.xsimple_oauthモジュールを使用してRESTの認証と認証を行っています。Drupal 8:RESTエクスポートビューがsimple_oauthモジュールで動作しません

単純なRESTエクスポートビューを作成し、 "basic_auth、simple_oauth"に "Authentication"を設定しました。

しかし、私はURLをしようとすると、私が

{ 
    "message": "The used authentication method is not allowed on this route." 
} 

詳細の表示エラーを示しています:私はで私の問題を解決する

"url": "http://localhost/d8/api/stories?_format=hal_json", 
"method": "GET", 
"headers": { 
    "authorization": "Bearer <oauth token>" 
} 

答えて

1

enter image description here

UPDATE: ヘッダ詳細を"認証"を削除し、 "アクセス"をロールタイプ。

enter image description here

関連する問題