lib/rack/bearer_auth/middleware.rb in rack-bearer_auth-0.1.0 vs lib/rack/bearer_auth/middleware.rb in rack-bearer_auth-0.1.1
- old
+ new
@@ -33,9 +33,11 @@
private
def handle(req)
@match_patterns.each do |pattern|
case pattern.match(req)
+ when :skip
+ next
when :ok
break
when :token_required
return [401,
{ "WWW-Authenticate" => 'Bearer realm="token_required"',