class Slack::AuthHandler

Overview

https://api.slack.com/authentication/oauth-v2

Included Modules

Defined in:

slack/oauth/auth_handler.cr

Constant Summary

HABITAT_SETTINGS = [{decl: oauth_redirect_url : String = ENV["OAUTH_REDIRECT_URL"], example: nil, validation: nil}] of Nil

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(client : Nil) #

[View source]
def self.new(client : HTTP::Client) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.configure(&) #

[View source]
def self.run(request : HTTP::Request, http_client = nil) #

[View source]
def self.settings #

[View source]

Instance Method Detail

def authenticate_user(request : HTTP::Request) #

[View source]
def bot_scopes(*args, **options) #

[View source]
def bot_scopes(*args, **options, &) #

[View source]
def client_id(*args, **options) #

[View source]
def client_id(*args, **options, &) #

[View source]
def client_secret(*args, **options) #

[View source]
def client_secret(*args, **options, &) #

[View source]
def http_client : HTTP::Client #

[View source]
def http_client=(http_client : HTTP::Client) #

[View source]
def redirect_url #

[View source]
def settings #

[View source]
def user_scopes(*args, **options) #

[View source]
def user_scopes(*args, **options, &) #

[View source]