Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSessionID = errors.New("no session ID found")
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
Authenticator is used to authenticate our users.
func NewAuthenticator ¶
func NewAuthenticator(ctx context.Context, req NewAuthenticatorRequest) (*Authenticator, error)
NewAuthenticator instantiates the *Authenticator.
func (*Authenticator) VerifyIDToken ¶
func (a *Authenticator) VerifyIDToken(ctx context.Context, token *oauth2.Token) (*oidc.IDToken, error)
VerifyIDToken verifies that an *oauth2.Token is a valid *oidc.IDToken.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler( baseURL string, env string, cookieStore *sessions.CookieStore, sessionRepo SessionRepository, auth *Authenticator, oidcLogoutRedirectURL string, csrfAuthKey []byte, authzSvc *authorization.Service, fileManagerSvc filemanager.Service, listingSvc listing.Service, ) (*Handler, error)
type NewAuthenticatorRequest ¶
type SessionAlreadyExistsError ¶
type SessionAlreadyExistsError struct {
ID string
}
func (SessionAlreadyExistsError) Error ¶
func (err SessionAlreadyExistsError) Error() string
type SessionNotFoundError ¶
type SessionNotFoundError struct {
ID string
}
func (SessionNotFoundError) Error ¶
func (err SessionNotFoundError) Error() string
Source Files
¶
- about-us-page.go
- archive-item.go
- auth.go
- callback.go
- create-item.go
- csrf.go
- delete-item.go
- edit-item-page.go
- error-message.go
- handler.go
- index-page.go
- login.go
- logout.go
- new-contact-info-item.go
- new-item-page.go
- not-found-page.go
- publish-item.go
- routes.go
- send-item-for-publish.go
- session.go
- single-item-get-contact-info.go
- single-item-page.go
- update-item.go
- upload-course-thumbnail.go
- user-items-page.go
Directories
¶
| Path | Synopsis |
|---|---|
|
templ: version: v0.3.857
|
templ: version: v0.3.857 |
|
components
templ: version: v0.3.857
|
templ: version: v0.3.857 |
|
icons
templ: version: v0.3.857
|
templ: version: v0.3.857 |
Click to show internal directories.
Click to hide internal directories.