Documentation ¶
Index ¶
- func OAuthAppsFromConfig(appsConfig []oauthapps.OAuthAppConfig, baseURL string) (map[string]OAuthApp, error)
- func RegisterAPI(context *Context, oauthApps map[string]OAuthApp, cache StateCache, ...) (*mux.Router, error)
- type AppCtxHandlerFunc
- type AuthFormData
- type Config
- type Context
- type CtxHandlerFunc
- type Handler
- type OAuthApp
- type OAuthAppContext
- type OAuthURLs
- type StateCache
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OAuthAppsFromConfig ¶
Types ¶
type AppCtxHandlerFunc ¶ added in v0.1.1
type AppCtxHandlerFunc func(c *OAuthAppContext, w http.ResponseWriter, r *http.Request)
type AuthFormData ¶ added in v0.1.1
type Context ¶
type Context struct { RequestID string Logger logrus.FieldLogger }
type CtxHandlerFunc ¶
type CtxHandlerFunc func(c *Context, w http.ResponseWriter, r *http.Request)
type OAuthApp ¶
type OAuthApp struct { oauthapps.OAuthAppConfig OAuthURLs }
type OAuthAppContext ¶ added in v0.1.1
OAuthAppContext is Context that includes OAuth Application. The application is derived from path variables on routs such as `v1/github/plugin-github/...`.
type OAuthURLs ¶
func NewOAuthURLs ¶
type StateCache ¶
type StateCache interface { GetRedirectURI(state string) (cache.AuthorizationState, error) SetRedirectURI(state string, authzState cache.AuthorizationState) error DeleteState(state string) error }
type TokenResponse ¶ added in v0.1.3
Click to show internal directories.
Click to hide internal directories.