Documentation ¶
Overview ¶
Package tumblr provides Tumblr OAuth1 login and callback handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnableToGetTumblrUser = errors.New("tumblr: unable to get Tumblr User")
)
Tumblr login errors
Functions ¶
func CallbackHandler ¶
func CallbackHandler(config *oauth1.Config, cookieConfig gologin.CookieConfig, success, failure http.Handler) http.Handler
CallbackHandler handles Tumblr callback requests by parsing the oauth token and verifier and adding the Tubmlr access token and User to the ctx. If authentication succeeds, handling delegates to the success handler, otherwise to the failure handler.
Types ¶
Click to show internal directories.
Click to hide internal directories.