Registry / auth / ericchiang-oidc

ericchiang-oidc

JSON →
library0.0.0-20160908143337-11f62933e071gogounverified

Package oidc implements OpenID Connect client logic for the golang.org/x/oauth2 package.

go get github.com/ericchiang/oidc
INSTALL
IMPORT
SIG · ERICCHIANG-OIDC
E
ericchiang-oidc
authgov0.0.0-20160908143337-11f62933e071
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.

oidc
github.com/ericchiang/oidc

Verify an OpenID Connect ID token.

package main import ( "context" "fmt" "github.com/ericchiang/oidc" ) func main() { provider, _ := oidc.NewProvider(context.Background(), "https://accounts.google.com") verifier := provider.Verifier(&oidc.Config{ClientID: "your-client-id"}) idToken, _ := verifier.Verify(context.Background(), "id-token-string") fmt.Println(idToken.Subject) }
Debug
Known issues
breakingThis package is unmaintained and may have security issues.
fix
Consider using github.com/coreos/go-oidc/v3 instead.
affects: all
Upgrade
Version history
0.0.0-20160908143337-11f62933e071latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
1
Resources
ericchiang-oidc — go get ericchiang-oidc · libregistry