auth

package
v0.0.0-...-bebabf7 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Service *server.Server
	// contains filtered or unexported fields
}

func NewServer

func NewServer(logger log.Logger) *Server

func (*Server) GoogleCallback

func (s *Server) GoogleCallback(code string) (*models.UserInfo, error)

func (*Server) GoogleLogin

func (s *Server) GoogleLogin(w http.ResponseWriter, p runtime.Producer) string

func (*Server) NewClient

func (s *Server) NewClient(domain string, clientID string) *models.Credentials

func (*Server) TelegramCallback

func (s *Server) TelegramCallback(code string) (*models.VkUserInfo, error)

func (*Server) TelegramLogin

func (s *Server) TelegramLogin(w http.ResponseWriter, p runtime.Producer) string

func (*Server) VkCallback

func (s *Server) VkCallback(code string) (*models.VkUserInfo, error)

func (*Server) VkLogin

func (s *Server) VkLogin(w http.ResponseWriter, p runtime.Producer) string

func (*Server) YandexCallback

func (s *Server) YandexCallback(code string) (*models.UserInfo, error)

func (*Server) YandexLogin

func (s *Server) YandexLogin(w http.ResponseWriter, p runtime.Producer) string

Jump to

Keyboard shortcuts

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