controllers

package
v0.0.0-...-5c97e34 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiController

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

func NewUserController

func NewUserController(usr *services.UserService, tok *services.TokenService) *ApiController

func (*ApiController) Me

func (a *ApiController) Me(c *gin.Context)

GET /api/users/me

type AuthenticationController

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

func NewAuthenticationController

func NewAuthenticationController(authenticationService *services.AuthenticationService, clientService *services.ClientService, consentService *services.ConsentService) *AuthenticationController

func (*AuthenticationController) GetLogin

func (ac *AuthenticationController) GetLogin(c *gin.Context)

GET /login

func (*AuthenticationController) GetRegister

func (ac *AuthenticationController) GetRegister(c *gin.Context)

GET /register

func (*AuthenticationController) Login

func (ac *AuthenticationController) Login(c *gin.Context)

POST /login

func (*AuthenticationController) Logout

func (ac *AuthenticationController) Logout(c *gin.Context)

POST /logout

func (*AuthenticationController) Register

func (ac *AuthenticationController) Register(c *gin.Context)

POST /register

type ConsentController

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

func NewConsentController

func NewConsentController(authenticationService *services.AuthenticationService, clientService *services.ClientService, consentService *services.ConsentService, tokenService *services.TokenService) *ConsentController

func (*ConsentController) Create

func (cc *ConsentController) Create(c *gin.Context)

POST /consents

func (*ConsentController) Get

func (cc *ConsentController) Get(c *gin.Context)

GET /consents

func (*ConsentController) Revoke

func (cc *ConsentController) Revoke(c *gin.Context)

POST /consents/revoke

type HealthController

type HealthController struct{}

func NewHealthController

func NewHealthController() *HealthController

func (*HealthController) Health

func (h *HealthController) Health(c *gin.Context)

GET /health

type OAuthController

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

func NewOAuthController

func NewOAuthController(oas *services.OAuthService) *OAuthController

func (*OAuthController) Authorize

func (oa *OAuthController) Authorize(c *gin.Context)

GET /oauth/authorize

func (*OAuthController) JWKs

func (oa *OAuthController) JWKs(c *gin.Context)

GET /.well-known/jwks.json

func (*OAuthController) Metadata

func (oa *OAuthController) Metadata(c *gin.Context)

GET /.well-known/oauth-authorization-server

func (*OAuthController) Register

func (oa *OAuthController) Register(c *gin.Context)

POST /oauth/register

func (*OAuthController) Revoke

func (oa *OAuthController) Revoke(c *gin.Context)

POST /oauth/revoke

func (*OAuthController) Token

func (oa *OAuthController) Token(c *gin.Context)

POST /oauth/token

type ProfileController

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

func NewProfileController

func NewProfileController(authenticationService *services.AuthenticationService, profileService *services.ProfileService) *ProfileController

func (*ProfileController) GetProfile

func (pc *ProfileController) GetProfile(c *gin.Context)

GET /profile

func (*ProfileController) UpdateProfile

func (pc *ProfileController) UpdateProfile(c *gin.Context)

POST /profile

Jump to

Keyboard shortcuts

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