You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wouldn't it make sense to ease this restriction and just require a callable?
Example use case:
classComplexAuthorizerdefcall# do magic and return a tokenendendauthorizer=ComplexAuthorizer.new(....)Faraday.new(url: ....)do |conn|
conn.request:authorization,'Bearer',authorizerend
The text was updated successfully, but these errors were encountered:
sled
changed the title
Ability to pass a callable as to authorization middleware
Ability to pass a callable to authorization middleware
Dec 10, 2021
The authorization middleware currently checks for a
Proc
:faraday/lib/faraday/request/authorization.rb
Line 40 in 746ab73
Wouldn't it make sense to ease this restriction and just require a callable?
Example use case:
The text was updated successfully, but these errors were encountered: