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.