handlers

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitrixOauthHandler

type BitrixOauthHandler struct {
	// contains filtered or unexported fields
}

func (*BitrixOauthHandler) Setup

func (g *BitrixOauthHandler) Setup(
	log *zap.Logger,
	router *mux.Router,
	cfg config.OAuth2Config,
	regClient registry.AccountsServiceClient,
	signingKey []byte,
)

type GithubOauthHandler

type GithubOauthHandler struct {
	// contains filtered or unexported fields
}

func (*GithubOauthHandler) Setup

func (g *GithubOauthHandler) Setup(
	log *zap.Logger,
	router *mux.Router,
	cfg config.OAuth2Config,
	regClient registry.AccountsServiceClient,
	signingKey []byte,
)

type GoogleOauthHandler

type GoogleOauthHandler struct {
	// contains filtered or unexported fields
}

func (*GoogleOauthHandler) Setup

func (g *GoogleOauthHandler) Setup(
	log *zap.Logger,
	router *mux.Router,
	cfg config.OAuth2Config,
	regClient registry.AccountsServiceClient,
	signingKey []byte,
)

type OAuthHandler

type OAuthHandler interface {
	Setup(*zap.Logger, *mux.Router, config.OAuth2Config, registry.AccountsServiceClient, []byte)
}

func GetOAuthHandler

func GetOAuthHandler(handlerType string) OAuthHandler

type StateInfo

type StateInfo struct {
	RedirectUrl string
	Token       string
	Method      string
}

type UserInfo

type UserInfo struct {
	Result map[string]interface{} `json:"result"`
}

Jump to

Keyboard shortcuts

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