Registry / auth / x-oauth2

x-oauth2

JSON →
library0.36.0gogounverified

Package oauth2 provides support for making OAuth2 authorized and authenticated HTTP requests, as specified in RFC 6749.

go get golang.org/x/oauth2
INSTALL
IMPORT
SIG · X-OAUTH2
X
x-oauth2
authgov0.36.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

oauth2
golang.org/x/oauth2

Configure an OAuth2 client

package main import ( "golang.org/x/oauth2" ) func main() { conf := &oauth2.Config{ ClientID: "your-client-id", ClientSecret: "your-client-secret", Scopes: []string{"scope1"}, Endpoint: oauth2.Endpoint{AuthURL: "https://provider.com/o/oauth2/auth", TokenURL: "https://provider.com/o/oauth2/token"}, } _ = conf }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.36.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
36
Resources
x-oauth2 — go get x-oauth2 · libregistry