Help us shape the future of Go! Take the 2026 Go Developer Survey

auth

package
v1.23.6 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UI_URL string
)

Functions

func Authenticate

func Authenticate(res http.ResponseWriter, req *http.Request)

Authenticates user with the speicified git provider using goth and calls the AuthCallback function

func List

func List(res http.ResponseWriter, req *http.Request)

Provides a list of git provider present in auth server

func Status

func Status(res http.ResponseWriter, req *http.Request)

Return name and status of the services

Types

type AuthService

type AuthService struct {
	Name   string `json:"name"`
	Status string `json:"status"`
}

type Service

type Service interface {
	AuthCallBack(res http.ResponseWriter, req *http.Request)
	HubAuthenticate(res http.ResponseWriter, req *http.Request)
}

func New

func New(api app.Config) Service

New returns the auth service implementation.

type Services

type Services struct {
	Service AuthService `json:"services"`
}

Jump to

Keyboard shortcuts

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