# File lib/generators/mongoid/oauth_provider_templates/client_application.rb, line 33 def self.find_token(token_key) token = OauthToken.where(:token => token_key) if token && token.authorized? token else nil end end