Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryOAuth2TokenStore ¶ added in v0.0.4
func NewMemoryOAuth2TokenStore ¶ added in v0.0.4
func NewMemoryOAuth2TokenStore() *MemoryOAuth2TokenStore
func (*MemoryOAuth2TokenStore) Get ¶ added in v0.0.4
func (s *MemoryOAuth2TokenStore) Get(key string) oauth2.TokenSource
func (*MemoryOAuth2TokenStore) Set ¶ added in v0.0.4
func (s *MemoryOAuth2TokenStore) Set(key string, token *oauth2.Token)
func (*MemoryOAuth2TokenStore) SetOAuth2Config ¶ added in v0.0.4
func (s *MemoryOAuth2TokenStore) SetOAuth2Config(config *oauth2.Config)
type MemoryTokenStore ¶
func NewMemoryTokenStore ¶
func NewMemoryTokenStore() *MemoryTokenStore
func (*MemoryTokenStore) Get ¶
func (s *MemoryTokenStore) Get(sessionID string) string
func (*MemoryTokenStore) Set ¶
func (s *MemoryTokenStore) Set(sessionID, value string)
type OAuth2TokenStore ¶ added in v0.0.4
type SSHSessionOauthHandler ¶
type SSHSessionOauthHandler interface { HandleAuth(w http.ResponseWriter, r *http.Request) HandleAuthCallback(w http.ResponseWriter, r *http.Request) HandleUser(w http.ResponseWriter, r *http.Request) // Return nil to call SessionHandler directly DefaultCommand() []string SSHSessionCommandHandler(ssh.Session, *exec.Cmd) error SessionHandler(ssh.Session) }
type TokenStore ¶
Click to show internal directories.
Click to hide internal directories.