auth

package module
v0.0.0-...-f24493f Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 14 Imported by: 0

README

Deploys.app - Auth

Development

$ asdf install
$ bun install
$ bun start

Deployment

$ bun run deploy

Diagram

Diagram

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOAuth2ClientNotFound  = errors.New("oauth2: client not found")
	ErrOAuth2CodeNotFound    = errors.New("oauth2: code not found")
	ErrOAuth2SessionNotFound = errors.New("oauth2: session not found")
)

Functions

This section is empty.

Types

type CallbackHandler

type CallbackHandler struct {
	OAuth2ClientID     string
	OAuth2ClientSecret string
}

func (CallbackHandler) ServeHTTP

func (h CallbackHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type OAuth2Client

type OAuth2Client struct {
	ID          string
	Secret      string
	RedirectURI string
}

type RedirectHandler

type RedirectHandler struct {
	OAuth2ClientID string
}

func (RedirectHandler) ServeHTTP

func (h RedirectHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RevokeHandler

type RevokeHandler struct{}

func (RevokeHandler) ServeHTTP

func (RevokeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RevokePostHandler

type RevokePostHandler struct{}

func (RevokePostHandler) ServeHTTP

type Session

type Session struct {
	ClientID      string
	State         string
	CallbackState string
	CallbackURL   string
}

type TokenHandler

type TokenHandler struct{}

func (TokenHandler) ServeHTTP

func (TokenHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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