endpoint

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const Const_Principle = "Principal"

Variables

This section is empty.

Functions

func AuthMiddleware added in v0.12.0

func AuthMiddleware(ctx *gin.Context)

func ShowLogin added in v0.12.1

func ShowLogin(ctx *gin.Context, redirect string, config *conf.Config)

Types

type AuthorizeController

type AuthorizeController struct {
	AuthorizeService service.AuthorizeService
	ClientService    service.ClientService
	ConsentSevice    service.ConsentService
	Config           *conf.Config
}

func (*AuthorizeController) Authorize

func (ctrl *AuthorizeController) Authorize(ctx *gin.Context)

type CheckSessionController added in v0.12.0

type CheckSessionController struct {
}

func (*CheckSessionController) CheckSession added in v0.12.0

func (ctrl *CheckSessionController) CheckSession(ctx *gin.Context)

type ConsentController

type ConsentController struct {
	ConsentService service.ConsentService
	Config         *conf.Config
}

func (*ConsentController) PostConsent

func (ctrl *ConsentController) PostConsent(ctx *gin.Context)

type DeviceCodeController

type DeviceCodeController struct {
	AuthorizationService service.AuthorizeService
	ClientService        service.ClientService
	Config               *conf.Config
}

func (*DeviceCodeController) GetDeviceAuthorization

func (ctrl *DeviceCodeController) GetDeviceAuthorization(ctx *gin.Context)

func (*DeviceCodeController) GetDeviceCode

func (ctrl *DeviceCodeController) GetDeviceCode(ctx *gin.Context)

func (*DeviceCodeController) PostDeviceAuthorization

func (ctrl *DeviceCodeController) PostDeviceAuthorization(ctx *gin.Context)

type EndSessionController added in v0.12.0

type EndSessionController struct {
	ClientService service.ClientService
}

func (*EndSessionController) EndSession added in v0.12.0

func (c *EndSessionController) EndSession(ctx *gin.Context)

type IIndexController added in v0.12.1

type IIndexController interface {
	Index(ctx *gin.Context)
}

type ILoginController added in v0.12.1

type ILoginController interface {
	PostLogin(ctx *gin.Context)
	GetLogin(ctx *gin.Context)
}

type ILogoutController added in v0.12.1

type ILogoutController interface {
	Logout(ctx *gin.Context)
}

type IndexController added in v0.12.1

type IndexController struct {
	Config *conf.Config
}

func (*IndexController) Index added in v0.12.1

func (ctrl *IndexController) Index(ctx *gin.Context)

type IntrospectController

type IntrospectController struct {
	AuthorizeService service.AuthorizeService
	ClientService    service.ClientService
}

func (*IntrospectController) GetIntrospect

func (c *IntrospectController) GetIntrospect(ctx *gin.Context)

type LoginController

type LoginController struct {
	UserService service.UserService
	Config      *conf.Config
}

func (*LoginController) GetLogin added in v0.12.1

func (ctrl *LoginController) GetLogin(ctx *gin.Context)

func (*LoginController) PostLogin

func (ctrl *LoginController) PostLogin(ctx *gin.Context)

type LogoutController added in v0.12.0

type LogoutController struct {
	ClientService service.ClientService
	Config        *conf.Config
}

func (*LogoutController) Logout added in v0.12.0

func (ctrl *LogoutController) Logout(ctx *gin.Context)

type RevokeController added in v0.12.0

type RevokeController struct {
	AuthorizeService service.AuthorizeService
	ClientService    service.ClientService
	TokenService     service.TokenService
}

func (*RevokeController) PostRevoke added in v0.12.0

func (c *RevokeController) PostRevoke(ctx *gin.Context)

type TokenController

type TokenController struct {
	AuthorizeService service.AuthorizeService
	ClientService    service.ClientService
	Config           *conf.Config
}

Url: /token

func (*TokenController) PostToken

func (ctrl *TokenController) PostToken(ctx *gin.Context)

type UserInfoController

type UserInfoController struct {
	AuthorizeService service.AuthorizeService
	UserService      service.UserService
}

func (*UserInfoController) GetUserInfo

func (c *UserInfoController) GetUserInfo(ctx *gin.Context)

type WellknownController

type WellknownController struct {
	Config *conf.Config
	JWKS   *conf.JWKS
}

func (*WellknownController) GetConfiguration

func (ctrl *WellknownController) GetConfiguration(ctx *gin.Context)

Well-known configuration

func (*WellknownController) GetJWKS

func (ctrl *WellknownController) GetJWKS(ctx *gin.Context)

Jump to

Keyboard shortcuts

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