auth

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowAll

func AllowAll(h api.Host_Server) api.AuthProvider

AllowAll is a policy that grants unrestricted access to h. Callers SHOULD NOT use AllowAll if they can avoid it.

func DenyAll

DenyAll is a policy that does not grant access to h. It is RECOMMENDED to use DenyAll by default.

Types

type Provider

type Provider api.AuthProvider

func (Provider) AddRef

func (p Provider) AddRef() Provider

func (Provider) Provide

func (p Provider) Provide(ctx context.Context, account Signer) (Session, capnp.ReleaseFunc)

func (Provider) Release

func (p Provider) Release()

type Session

type Session struct {
	api.AuthProvider_provide_Results_Future
}

func (Session) View

func (s Session) View() view.View

type Signer

type Signer api.Signer

func (Signer) AddRef

func (s Signer) AddRef() Signer

func (Signer) Release

func (s Signer) Release()

func (Signer) Sign

func (s Signer) Sign(ctx context.Context, challenge []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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