Sha256: 465e11b4d15ad15c2a7fa845a02247aac96e3f70bf2dedeef25639a1fd88619a
Contents?: true
Size: 468 Bytes
Versions: 26
Compression:
Stored size: 468 Bytes
Contents
module Doorkeeper module OAuth module Helpers module ScopeChecker def self.matches?(current_scopes, scopes) return false if current_scopes.nil? || scopes.nil? current_scopes == scopes end def self.valid?(scope, server_scopes) scope.present? && scope !~ /[\n|\r|\t]/ && server_scopes.has_scopes?(Doorkeeper::OAuth::Scopes.from_string(scope)) end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems