module Doorkeeper::ApplicationMixin::ClassMethods
def by_uid_and_secret(uid, secret)
-
(Doorkeeper::Application, nil)
-
Parameters:
-
secret
(#to_s
) -- secret (any object that responds to `#to_s`) -
uid
(#to_s
) -- UID (any object that responds to `#to_s`)
def by_uid_and_secret(uid, secret) app = by_uid(uid) return unless app return app if secret.blank? && !app.confidential? return unless app.secret_matches?(secret) app end