www

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: BSD-3-Clause Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const CONTEXT_TOKEN_KEY string = "token"

Variables

This section is empty.

Functions

func AppendAccessTokenFromCookieHandler added in v0.0.6

func AppendAccessTokenFromCookieHandler(opts *oauth2.Options, next_handler http.Handler) http.Handler

func EnsureOAuth2TokenCookieHandler

func EnsureOAuth2TokenCookieHandler(opts *oauth2.Options, next http.Handler) http.Handler

func EnsureOAuth2TokenCookieHandlerWithErrorHandler

func EnsureOAuth2TokenCookieHandlerWithErrorHandler(opts *oauth2.Options, next http.Handler, error_handler http.Handler) http.Handler

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 NewOAuth2TokenCookie(ctx context.Context, opts *oauth2.Options) (cookie.Cookie, error)

func OAuth2AccessTokenCookieHandler

func OAuth2AccessTokenCookieHandler(opts *oauth2.Options) (http.Handler, error)

func OAuth2AccessTokenCookieHandlerWithErrorHandler

func OAuth2AccessTokenCookieHandlerWithErrorHandler(opts *oauth2.Options, error_handler http.Handler) (http.Handler, error)

func OAuth2RemoveAccessTokenCookieHandler

func OAuth2RemoveAccessTokenCookieHandler(opts *oauth2.Options) (http.Handler, error)

func OAuth2TokenCookieAuthorizeHandler

func OAuth2TokenCookieAuthorizeHandler(opts *oauth2.Options) (http.Handler, error)

func OAuth2TokenCookieAuthorizeHandlerWithErrorHandler

func OAuth2TokenCookieAuthorizeHandlerWithErrorHandler(opts *oauth2.Options, error_handler http.Handler) (http.Handler, error)

func SetOAuth2TokenContext

func SetOAuth2TokenContext(req *http.Request, token *goog_oauth2.Token) (*http.Request, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL