Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetAuthToken ¶
func SetAuthToken(w http.ResponseWriter, token []byte)
Types ¶
type AuthTokenContextKey ¶
type AuthTokenContextKey struct{}
type AuthTokenMiddleware ¶
type AuthTokenMiddleware struct { Next http.Handler RedirectTo string Doorkeeper interface { VerifyTextToken(ctx context.Context, textToken string) (bool, error) } }
func (*AuthTokenMiddleware) ServeHTTP ¶
func (mw *AuthTokenMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.