Configuration
Resource Owner Authentication
Doorkeeper.configure do
resource_owner_authenticator do
current_user || warden.authenticate!(scope: :user)
end
endApplication Management Authentication
Doorkeeper.configure do
admin_authenticator do |_routes|
current_user || warden.authenticate!(scope: :user)
end
endLast updated
Was this helpful?