增加Bot授权相关

This commit is contained in:
2023-02-15 18:37:36 +08:00
parent f0c1e9e319
commit 1cd43de75b
10 changed files with 206 additions and 11 deletions

View File

@@ -18,7 +18,7 @@ Doorkeeper.configure do
User.authenticate!(params[:username], params[:password])
end
access_token_generator '::Doorkeeper::JWT'
# access_token_generator '::Doorkeeper::JWT'
admin_authenticator do
user = current_user