auth

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthGrpc

type AuthGrpc struct {
	*AuthService
	// contains filtered or unexported fields
}

func (*AuthGrpc) Address

func (i *AuthGrpc) Address() string

func (*AuthGrpc) Logger

func (i *AuthGrpc) Logger() *logrus.Entry

func (*AuthGrpc) Name

func (i *AuthGrpc) Name() string

func (*AuthGrpc) Serve

func (i *AuthGrpc) Serve() error

func (*AuthGrpc) Shutdown

func (i *AuthGrpc) Shutdown(_ context.Context) error

type AuthHttp

type AuthHttp struct {
	*AuthService
	// contains filtered or unexported fields
}

func (*AuthHttp) Address

func (i *AuthHttp) Address() string

func (*AuthHttp) Logger

func (i *AuthHttp) Logger() *logrus.Entry

func (*AuthHttp) Name

func (i *AuthHttp) Name() string

func (*AuthHttp) Serve

func (i *AuthHttp) Serve() error

func (*AuthHttp) Shutdown

func (i *AuthHttp) Shutdown(ctx context.Context) error

type AuthService

type AuthService struct {
	proto.UnimplementedAuthServiceServer
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(ctx context.Context, cfg authConfig.Config, db storage.Database) (*AuthService, error)

func (*AuthService) Health

func (*AuthService) SetupRoutes

func (i *AuthService) SetupRoutes(mux *http.ServeMux)

Directories

Path Synopsis
internal
oauth
server/accesstokens
Package accesstokens is the public API for access-token persistence.
Package accesstokens is the public API for access-token persistence.
server/authcodes
Package authcodes is the public API for authorization-code persistence.
Package authcodes is the public API for authorization-code persistence.
server/consent
Package consent persists consent challenges and verifiers.
Package consent persists consent challenges and verifiers.
server/internal/csrf
Package csrf provides the CSRF cookie and token helpers shared by the OAuth login and consent flows.
Package csrf provides the CSRF cookie and token helpers shared by the OAuth login and consent flows.
server/login
Package login persists login challenges and verifiers.
Package login persists login challenges and verifiers.
server/oidc
Package oidc is the public API for OpenID Connect session persistence.
Package oidc is the public API for OpenID Connect session persistence.
server/pkce
Package pkce is the public API for PKCE-request persistence.
Package pkce is the public API for PKCE-request persistence.
server/refreshtokens
Package refreshtokens is the public API for refresh-token persistence.
Package refreshtokens is the public API for refresh-token persistence.

Jump to

Keyboard shortcuts

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