auth

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizeResponse

type AuthorizeResponse struct {
	Code             string
	State            string
	Error            string
	ErrorDescription string
}

AuthorizeResponse represents LINE Notify authorize response

func ParseRequest

func ParseRequest(r *http.Request) (*AuthorizeResponse, error)

ParseRequest parses authorize request

type Client

type Client struct {
	ClientID     string
	RedirectURI  string
	ResponseMode string
	State        string
}

Client represents LINE Notify authorization

func New

func New(clientID, redirectURI string) (*Client, error)

New returns Client

func (*Client) Redirect

func (c *Client) Redirect(w http.ResponseWriter, req *http.Request) error

Redirect redirect to request url

func (*Client) RequestURL

func (c *Client) RequestURL() (string, error)

RequestURL builds request url with parameters

Jump to

Keyboard shortcuts

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