Documentation ¶
Index ¶
Constants ¶
View Source
const (
TokenTypeBearer = "Bearer"
)
Variables ¶
This section is empty.
Functions ¶
func NewSAMLMiddleware ¶
Types ¶
type AuthorizationRequest ¶
func (*AuthorizationRequest) Parse ¶
func (r *AuthorizationRequest) Parse(req *http.Request)
type BackendToken ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) AuthorizationHandler ¶
func (h *Handler) AuthorizationHandler() echo.HandlerFunc
func (*Handler) HandleRefresh ¶
func (*Handler) HandleSession ¶
func (*Handler) HandleToken ¶
func (*Handler) SAMLHandler ¶
func (h *Handler) SAMLHandler() echo.HandlerFunc
type RefreshRequest ¶
type Session ¶
type Session struct { ID string AccessCode string AccessCodeExpiry time.Time BackendToken *BackendToken RunnerToken *oauth2.Token }
func NewSession ¶
func NewSession() *Session
func (*Session) GenerateRunnerToken ¶
func (*Session) SetAccessCode ¶
func (*Session) SetBackendToken ¶
func (*Session) UnsetAccessCode ¶
func (s *Session) UnsetAccessCode()
type SessionRequest ¶
type SessionRequest struct {
State string `query:"state"`
}
type SessionStore ¶
type TokenRequest ¶
Click to show internal directories.
Click to hide internal directories.