initializers/doorkeeper.rb
doorkeeper_authorize! :admin, :write
means that the access token is required to have either :admin
scope or :write
scope, but does not need to have both of them.doorkeeper_authorize!
, for example::create
action only if its access token has both :admin
and :write
scopes.