Documentation
¶
Index ¶
- type Auth
- func (a *Auth) CheckAuthentication(w http.ResponseWriter, r *http.Request, projectID uint64) bool
- func (a *Auth) CheckAuthenticationWithoutProject(w http.ResponseWriter, r *http.Request) bool
- func (a *Auth) IsAuthSupported() bool
- func (a *Auth) TryAuthenticate(w http.ResponseWriter, r *http.Request, dm domain.Map, lock *sync.RWMutex) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth handles authenticating users with GitLab API
func New ¶
func New(pagesDomain string, storeSecret string, clientID string, clientSecret string, redirectURI string, gitLabServer string) *Auth
New when authentication supported this will be used to create authentication handler
func (*Auth) CheckAuthentication ¶
CheckAuthentication checks if user is authenticated and has access to the project
func (*Auth) CheckAuthenticationWithoutProject ¶
CheckAuthenticationWithoutProject checks if user is authenticated and has a valid token
func (*Auth) IsAuthSupported ¶
IsAuthSupported checks if pages is running with the authentication support
Click to show internal directories.
Click to hide internal directories.