Documentation
¶
Index ¶
- type ApiController
- type AuthenticationController
- func (ac *AuthenticationController) GetLogin(c *gin.Context)
- func (ac *AuthenticationController) GetRegister(c *gin.Context)
- func (ac *AuthenticationController) Login(c *gin.Context)
- func (ac *AuthenticationController) Logout(c *gin.Context)
- func (ac *AuthenticationController) Register(c *gin.Context)
- type ConsentController
- type HealthController
- type OAuthController
- func (oa *OAuthController) Authorize(c *gin.Context)
- func (oa *OAuthController) JWKs(c *gin.Context)
- func (oa *OAuthController) Metadata(c *gin.Context)
- func (oa *OAuthController) Register(c *gin.Context)
- func (oa *OAuthController) Revoke(c *gin.Context)
- func (oa *OAuthController) Token(c *gin.Context)
- type ProfileController
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
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) Revoke ¶
func (cc *ConsentController) Revoke(c *gin.Context)
POST /consents/revoke
type HealthController ¶
type HealthController struct{}
func NewHealthController ¶
func NewHealthController() *HealthController
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
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
Click to show internal directories.
Click to hide internal directories.