class X::OauthAuthenticator

Overview

Handles OAuth authentication

Defined in:

x/oauth_authenticator.cr

Constant Summary

OAUTH_ALGORITHM = OpenSSL::Algorithm::SHA1
OAUTH_SIGNATURE_METHOD = "HMAC-SHA1"
OAUTH_VERSION = "1.0"

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_key : String, api_key_secret : String, access_token : String, access_token_secret : String) #

[View source]

Instance Method Detail

def access_token : String #

[View source]
def access_token=(access_token : String) #

[View source]
def access_token_secret : String #

[View source]
def access_token_secret=(access_token_secret : String) #

[View source]
def api_key : String #

[View source]
def api_key=(api_key : String) #

[View source]
def api_key_secret : String #

[View source]
def api_key_secret=(api_key_secret : String) #

[View source]
def header(request : HTTP::Request) #

[View source]