lib/apia/authenticator.rb
# If any of the given scopes are valid
#
# @param environment [Apia::RequestEnvironment]
# @param scope [String]
# @return [Boolean]
If any of the given scopes are valid
If any of the given scopes are valid
def authorized_scope?(environment, scopes)
        return true if definition.scope_validator.nil?
        return true if scopes.empty?
        scopes.any? { |s| environment.call(s, &definition.scope_validator) }
      end
def authorized_scope? ( environment , scopes ) return true if definition . scope_validator . nil? return true if scopes . empty? scopes . any? { | s | environment . call ( s , & definition . scope_validator ) } end
If any of the given scopes are valid
If any of the given scopes are valid
None
Boolean
environment
<not_specific>
scopes
<not_specific>
<not_specific>
None