lib/rodauth/features/oauth_http_mac.rb in rodauth-oauth-0.0.6 vs lib/rodauth/features/oauth_http_mac.rb in rodauth-oauth-0.1.0
- old
+ new
@@ -1,9 +1,10 @@
# 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
@@ -25,9 +26,10 @@
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