Documentation ¶
Index ¶
- Constants
- func AppendAccessTokenFromCookieHandler(opts *oauth2.Options, next_handler http.Handler) http.Handler
- func EnsureOAuth2TokenCookieHandler(opts *oauth2.Options, next http.Handler) http.Handler
- func EnsureOAuth2TokenCookieHandlerWithErrorHandler(opts *oauth2.Options, next http.Handler, error_handler http.Handler) http.Handler
- func GetOAuth2TokenContext(req *http.Request) (*goog_oauth2.Token, error)
- func GetOAuth2TokenFromCookie(opts *oauth2.Options, req *http.Request) (*goog_oauth2.Token, error)
- func NewAccessTokenRewriteFunc(token *goog_oauth2.Token) rewrite.RewriteHTMLFunc
- func NewOAuth2TokenCookie(ctx context.Context, opts *oauth2.Options) (cookie.Cookie, error)
- func OAuth2AccessTokenCookieHandler(opts *oauth2.Options) (http.Handler, error)
- func OAuth2AccessTokenCookieHandlerWithErrorHandler(opts *oauth2.Options, error_handler http.Handler) (http.Handler, error)
- func OAuth2RemoveAccessTokenCookieHandler(opts *oauth2.Options) (http.Handler, error)
- func OAuth2TokenCookieAuthorizeHandler(opts *oauth2.Options) (http.Handler, error)
- func OAuth2TokenCookieAuthorizeHandlerWithErrorHandler(opts *oauth2.Options, error_handler http.Handler) (http.Handler, error)
- func SetOAuth2TokenContext(req *http.Request, token *goog_oauth2.Token) (*http.Request, error)
Constants ¶
View Source
const CONTEXT_TOKEN_KEY string = "token"
Variables ¶
This section is empty.
Functions ¶
func AppendAccessTokenFromCookieHandler ¶ added in v0.0.6
func GetOAuth2TokenContext ¶
func GetOAuth2TokenContext(req *http.Request) (*goog_oauth2.Token, error)
func GetOAuth2TokenFromCookie ¶
func GetOAuth2TokenFromCookie(opts *oauth2.Options, req *http.Request) (*goog_oauth2.Token, error)
func NewAccessTokenRewriteFunc ¶ added in v0.0.6
func NewAccessTokenRewriteFunc(token *goog_oauth2.Token) rewrite.RewriteHTMLFunc
func NewOAuth2TokenCookie ¶
func SetOAuth2TokenContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.