auth

package
v0.3.22 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithUser

func ContextWithUser(ctx context.Context, user *User) context.Context

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(ctx context.Context, keysUrl string) (*Service, error)

func (*Service) Authenticate

func (s *Service) Authenticate(ctx context.Context, token string) (*User, error)

type User

type User struct {
	Id string
}

func UserFromContext

func UserFromContext(ctx context.Context) (*User, bool)

Jump to

Keyboard shortcuts

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