github

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package github provides the GitHub oauth2 authentication controller for the opampcommander.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller is a struct that implements the GitHub OAuth2 authentication controller.

func NewController

func NewController(
	logger *slog.Logger,
	service *security.Service,
) *Controller

NewController creates a new instance of the Controller struct with the provided settings.

func (*Controller) APIAuth

func (c *Controller) APIAuth(ctx *gin.Context)

APIAuth handles the API request for GitHub OAuth2 authentication.

func (*Controller) BasicAuth

func (c *Controller) BasicAuth(ctx *gin.Context)

BasicAuth handles the HTTP request for basic authentication. It expects the request to contain basic auth credentials in the format "username:password".

func (*Controller) Callback

func (c *Controller) Callback(ctx *gin.Context)

Callback handles the callback from GitHub after the user has authenticated.

func (*Controller) HTTPAuth

func (c *Controller) HTTPAuth(ctx *gin.Context)

HTTPAuth handles the HTTP request for GitHub OAuth2 authentication.

func (*Controller) RoutesInfo

func (c *Controller) RoutesInfo() gin.RoutesInfo

RoutesInfo returns the routes information for the GitHub OAuth2 authentication controller.

Jump to

Keyboard shortcuts

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