62 lines
1.4 KiB
Go
62 lines
1.4 KiB
Go
package controllers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// @Summary Register an account
|
|
// @Tags Auth
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Router /auth/registrationBegin [post]
|
|
func RegistrationBegin(c *gin.Context) {
|
|
c.Status(http.StatusNotImplemented)
|
|
}
|
|
|
|
// @Summary Confirm with code, finish creating the account
|
|
// @Tags Auth
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Router /auth/registrationComplete [post]
|
|
func RegistrationComplete(c *gin.Context) {
|
|
c.Status(http.StatusNotImplemented)
|
|
}
|
|
|
|
// @Summary Acquire tokens via login credentials (and 2FA code if needed)
|
|
// @Tags Auth
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Router /auth/login [post]
|
|
func Login(c *gin.Context) {
|
|
c.Status(http.StatusNotImplemented)
|
|
}
|
|
|
|
// @Summary Receive new tokens via refresh token
|
|
// @Tags Auth
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Router /auth/refresh [post]
|
|
func Refresh(c *gin.Context) {
|
|
c.Status(http.StatusNotImplemented)
|
|
}
|
|
|
|
// @Summary Request password reset email
|
|
// @Tags Auth
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Router /auth/passwordResetBegin [post]
|
|
func PasswordResetBegin(c *gin.Context) {
|
|
c.Status(http.StatusNotImplemented)
|
|
}
|
|
|
|
// @Summary Complete password reset with email code and provide 2FA code or backup code if needed
|
|
// @Tags Auth
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Router /auth/passwordResetComplete [post]
|
|
func PasswordResetComplete(c *gin.Context) {
|
|
c.Status(http.StatusNotImplemented)
|
|
}
|