auth

package
v0.0.0-...-18d628c Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthManager

type AuthManager interface {
	Authorize(ctx context.Context, token string) (*model.Session, error)
	AuthorizeFromContext(ctx context.Context) (*model.Session, error)
}

type AuthorizationClient

type AuthorizationClient struct {
	Client     authclient.AuthClient
	Group      singleflight.Group
	Connection *grpc.ClientConn
}

func NewAuthorizationClient

func NewAuthorizationClient(conn *grpc.ClientConn) (*AuthorizationClient, error)

func (*AuthorizationClient) UserInfo

func (c *AuthorizationClient) UserInfo(ctx context.Context, token string) (*model.Session, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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