Documentation ¶
Index ¶
- Constants
- Variables
- type Controller
- func (ac Controller) DefaultLogin(w http.ResponseWriter, r *http.Request)
- func (ac Controller) Logout(w http.ResponseWriter, r *http.Request)
- func (ac Controller) Middleware(next http.Handler) http.Handler
- func (ac Controller) Revoke(w http.ResponseWriter, r *http.Request)
- func (ac Controller) SocialMediaCallback(w http.ResponseWriter, r *http.Request)
- func (ac Controller) SocialMediaRedirect(w http.ResponseWriter, r *http.Request)
- type Kind
- type Request
- type Response
Constants ¶
View Source
const (
AuthorizationHeader = "Authorization"
)
Variables ¶
View Source
var (
ErrForbidden = errors.New("forbidden")
)
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(userRepository userRepo.UserRepository, authRepository authRepo.AuthRepository) Controller
func (Controller) DefaultLogin ¶
func (ac Controller) DefaultLogin(w http.ResponseWriter, r *http.Request)
func (Controller) Logout ¶
func (ac Controller) Logout(w http.ResponseWriter, r *http.Request)
func (Controller) Middleware ¶
func (ac Controller) Middleware(next http.Handler) http.Handler
func (Controller) Revoke ¶
func (ac Controller) Revoke(w http.ResponseWriter, r *http.Request)
func (Controller) SocialMediaCallback ¶
func (ac Controller) SocialMediaCallback(w http.ResponseWriter, r *http.Request)
func (Controller) SocialMediaRedirect ¶
func (ac Controller) SocialMediaRedirect(w http.ResponseWriter, r *http.Request)
type Kind ¶
type Kind string
const ( DefaultAuthKind Kind = "DefaultLogin" GithubAuthKind = "Github" )
Click to show internal directories.
Click to hide internal directories.