Module: HTTP::TokenAuth

Defined in:
lib/http/token_auth/version.rb,
lib/http/token_auth/challenge.rb,
lib/http/token_auth/credentials.rb,
lib/http/token_auth/scheme_parser.rb,
lib/http/token_auth/authorization_header_parser.rb,
lib/http/token_auth/www_authenticate_header_parser.rb

Defined Under Namespace

Classes: AuthorizationHeaderParser, AuthorizationHeaderParsingError, Challenge, ChallengeArgumentError, Credentials, CredentialsArgumentError, SchemeParser, SchemeParsingError, WWWAuthenticateHeaderParser, WWWAuthenticateHeaderParsingError

Constant Summary collapse

VERSION =
'0.1.3'.freeze

Class Method Summary collapse

Class Method Details

.parse_authorization_header(header) ⇒ Object



3
4
5
6
# File 'lib/http/token_auth/authorization_header_parser.rb', line 3

def self.parse_authorization_header(header)
  parser = AuthorizationHeaderParser.new
  parser.parse(header)
end

.parse_www_authenticate_header(header) ⇒ Object



3
4
5
6
# File 'lib/http/token_auth/www_authenticate_header_parser.rb', line 3

def self.parse_www_authenticate_header(header)
  parser = WWWAuthenticateHeaderParser.new
  parser.parse(header)
end