diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-02 17:33:23 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-02 17:33:23 +0400 |
commit | 0aa24a150bbb153f55ca92dfb595385b4fe3839c (patch) | |
tree | 7a18e3678d07ce5fdd7123d2dd4e57869cea8068 /lib/pleroma/web/api_spec/operations | |
parent | 23219e6fb3163bfac07fb5fb1b2602dcd27e47c2 (diff) | |
download | pleroma-0aa24a150bbb153f55ca92dfb595385b4fe3839c.tar.gz |
Add oAuth
Diffstat (limited to 'lib/pleroma/web/api_spec/operations')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/app_operation.ex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/operations/app_operation.ex b/lib/pleroma/web/api_spec/operations/app_operation.ex index 2a4958acf..41d56693a 100644 --- a/lib/pleroma/web/api_spec/operations/app_operation.ex +++ b/lib/pleroma/web/api_spec/operations/app_operation.ex @@ -51,8 +51,10 @@ defmodule Pleroma.Web.ApiSpec.AppOperation do summary: "Verify your app works", description: "Confirm that the app's OAuth2 credentials work.", operationId: "AppController.verify_credentials", - parameters: [ - Operation.parameter(:authorization, :header, :string, "Bearer <app token>", required: true) + security: [ + %{ + "oAuth" => ["read"] + } ], responses: %{ 200 => |