lib/rodauth/features/oauth_http_mac.rb in rodauth-oauth-0.1.0 vs lib/rodauth/features/oauth_http_mac.rb in rodauth-oauth-0.2.0
- old
+ new
@@ -1,10 +1,9 @@
# frozen-string-literal: true
module Rodauth
Feature.define(:oauth_http_mac) do
- # :nocov:
unless String.method_defined?(:delete_prefix)
module PrefixExtensions
refine(String) do
def delete_suffix(suffix)
suffix = suffix.to_s
@@ -26,10 +25,9 @@
end
end
end
using(PrefixExtensions)
end
- # :nocov:
depends :oauth
auth_value_method :oauth_token_type, "mac"
auth_value_method :oauth_mac_algorithm, "hmac-sha-256" # hmac-sha-256, hmac-sha-1