Sha256: 2171c300f655db1e23a0ac8b3da222911d058ee95ae247d10d85bc14e2264edb
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchkeeper-0.6.7 | lib/doorkeeper/oauth/helpers/scope_checker.rb |