Parent

Methods

HTTP::AuthorizationHeader::BearerToken

OAuth2 Bearer token authorization header builder @see tools.ietf.org/html/rfc6750

@deprecated Will be remove in v0.7.0

Public Class Methods

new(opts) click to toggle source

@param [fetch] opts @option opts [to_s] :token @option opts [Boolean] :encode (false) deprecated

# File lib/http/authorization_header/bearer_token.rb, line 13
def initialize(opts)
  warn "#{Kernel.caller.first}: [DEPRECATION] BearerToken deprecated."

  @token = opts.fetch :token
  @token = Base64.strict_encode64 @token if opts.fetch(:encode, false)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.