oauth

package module
v0.0.0-...-a2e7b97 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 2 Imported by: 0

README

go-oauth

Claims OAuth info

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claimer

type Claimer interface {
	Claims(ctx context.Context, token *oauth2.Token) (Claims, error)
}

type Claims

type Claims interface {
	UID() string
}

type OAuth

type OAuth struct {
	*oauth2.Config
	Claimer Claimer
}

func (*OAuth) ExchangeAndClaims

func (oauth *OAuth) ExchangeAndClaims(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (Claims, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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