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 ctxh.ContextHandler) ctxh.ContextHandler
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.
func LoginHandler ¶
func LoginHandler(config *oauth1.Config, cookieConfig gologin.CookieConfig, failure ctxh.ContextHandler) ctxh.ContextHandler
LoginHandler handles Tumblr login requests by obtaining a request token, setting a temporary token secret cookie, and redirecting to the authorization URL.
Types ¶
Click to show internal directories.
Click to hide internal directories.