oauthbrowser

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package oauthbrowser drives explicit browser consent in offline OAuth fixtures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApprovalRequest added in v0.0.53

func ApprovalRequest(ctx context.Context, page *url.URL, body io.Reader) (*http.Request, error)

ApprovalRequest builds the browser's approval of the consent page at page, whose HTML is body: a POST of the page's form, with its handle and decision=approve, to the form's action, carrying the page's Origin as a browser would. The caller sends it with the cookies that fetched the page.

func Approve

func Approve(client *http.Client, request *http.Request) (*http.Response, error)

Approve follows an authorization request, then submits its consent form with the same browser cookies. The caller owns the returned response body.

Types

This section is empty.

Jump to

Keyboard shortcuts

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