oauth2

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer[TUser user.Model, TAccount account.Model] struct {
	// contains filtered or unexported fields
}

func NewAuthorizer

func NewAuthorizer[TUser user.Model, TAccount account.Model](
	provider fosite.OAuth2Provider,
	accounts account.SessionRepository[TUser, TAccount],
) *Authorizer[TUser, TAccount]

func (*Authorizer[TUser, TAccount]) Authorize

func (au *Authorizer[TUser, TAccount]) Authorize(w http.ResponseWriter, r *http.Request) (string, TUser, TAccount, error)

func (*Authorizer[TUser, TAccount]) AuthorizerCode

func (au *Authorizer[TUser, TAccount]) AuthorizerCode() string

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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