oauth

package
v0.0.0-...-c1d965a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClientID string

	Secret string
)

Functions

This section is empty.

Types

type Slack

type Slack struct {
	Authorize *url.URL
	Access    *url.URL
	// contains filtered or unexported fields
}

func NewSlack

func NewSlack() *Slack

func (*Slack) RedirectURL

func (s *Slack) RedirectURL(scopes []string) string

Create the url to that the user needs to be redirected to sign into slack.

func (*Slack) RequestHandler

func (s *Slack) RequestHandler(w http.ResponseWriter, r *http.Request)

func (*Slack) RequestToken

func (s *Slack) RequestToken(code string, state string) (*http.Response, error)

func (*Slack) ResponseHandler

func (s *Slack) ResponseHandler(w http.ResponseWriter, resp *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL