identity

package
v0.0.0-...-ff5f600 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2016 License: BSD-3-Clause Imports: 7 Imported by: 0

README

Vanadium Identity Service

This package and its sub-packages implement the identity service at https://dev.v.io/auth.

The design is described here: https://vanadium.github.io/designdocs/identity-service.html

Documentation

Overview

Package identity defines interfaces for Vanadium identity providers.

Index

Constants

View Source
const SeekBlessingsRoute = oauth.SeekBlessingsRoute

Variables

View Source
var MacaroonBlesserDesc rpc.InterfaceDesc = descMacaroonBlesser

MacaroonBlesserDesc describes the MacaroonBlesser interface.

Functions

This section is empty.

Types

type BlessingRootResponse

type BlessingRootResponse struct {
	// Names of the blessings.
	Names []string
	// Base64 der-encoded public key.
	PublicKey string
}

BlessingRootResponse is the struct representing the JSON response provided by the "blessing-root" route of the identity service.

func (*BlessingRootResponse) FillVDLTarget

func (m *BlessingRootResponse) FillVDLTarget(t vdl.Target, tt *vdl.Type) error

func (*BlessingRootResponse) MakeVDLTarget

func (m *BlessingRootResponse) MakeVDLTarget() vdl.Target

func (BlessingRootResponse) VDLIsZero

func (x BlessingRootResponse) VDLIsZero() bool

func (*BlessingRootResponse) VDLRead

func (x *BlessingRootResponse) VDLRead(dec vdl.Decoder) error

func (BlessingRootResponse) VDLWrite

func (x BlessingRootResponse) VDLWrite(enc vdl.Encoder) error

type BlessingRootResponseTarget

type BlessingRootResponseTarget struct {
	Value *BlessingRootResponse

	vdl.TargetBase
	vdl.FieldsTargetBase
	// contains filtered or unexported fields
}

func (*BlessingRootResponseTarget) FinishField

func (t *BlessingRootResponseTarget) FinishField(_, _ vdl.Target) error

func (*BlessingRootResponseTarget) FinishFields

func (t *BlessingRootResponseTarget) FinishFields(_ vdl.FieldsTarget) error

func (*BlessingRootResponseTarget) StartField

func (t *BlessingRootResponseTarget) StartField(name string) (key, field vdl.Target, _ error)

func (*BlessingRootResponseTarget) StartFields

func (t *BlessingRootResponseTarget) StartFields(tt *vdl.Type) (vdl.FieldsTarget, error)

func (*BlessingRootResponseTarget) ZeroField

func (t *BlessingRootResponseTarget) ZeroField(name string) error

type MacaroonBlesserClientMethods

type MacaroonBlesserClientMethods interface {
	// Bless uses the provided macaroon (which contains email and caveats)
	// to return a blessing for the client.
	Bless(_ *context.T, macaroon string, _ ...rpc.CallOpt) (blessing security.Blessings, _ error)
}

MacaroonBlesserClientMethods is the client interface containing MacaroonBlesser methods.

MacaroonBlesser returns a blessing given the provided macaroon string.

type MacaroonBlesserClientStub

type MacaroonBlesserClientStub interface {
	MacaroonBlesserClientMethods
	rpc.UniversalServiceMethods
}

MacaroonBlesserClientStub adds universal methods to MacaroonBlesserClientMethods.

func MacaroonBlesserClient

func MacaroonBlesserClient(name string) MacaroonBlesserClientStub

MacaroonBlesserClient returns a client stub for MacaroonBlesser.

type MacaroonBlesserServerMethods

type MacaroonBlesserServerMethods interface {
	// Bless uses the provided macaroon (which contains email and caveats)
	// to return a blessing for the client.
	Bless(_ *context.T, _ rpc.ServerCall, macaroon string) (blessing security.Blessings, _ error)
}

MacaroonBlesserServerMethods is the interface a server writer implements for MacaroonBlesser.

MacaroonBlesser returns a blessing given the provided macaroon string.

type MacaroonBlesserServerStub

type MacaroonBlesserServerStub interface {
	MacaroonBlesserServerStubMethods
	// Describe the MacaroonBlesser interfaces.
	Describe__() []rpc.InterfaceDesc
}

MacaroonBlesserServerStub adds universal methods to MacaroonBlesserServerStubMethods.

func MacaroonBlesserServer

func MacaroonBlesserServer(impl MacaroonBlesserServerMethods) MacaroonBlesserServerStub

MacaroonBlesserServer returns a server stub for MacaroonBlesser. It converts an implementation of MacaroonBlesserServerMethods into an object that may be used by rpc.Server.

type MacaroonBlesserServerStubMethods

type MacaroonBlesserServerStubMethods MacaroonBlesserServerMethods

MacaroonBlesserServerStubMethods is the server interface containing MacaroonBlesser methods, as expected by rpc.Server. There is no difference between this interface and MacaroonBlesserServerMethods since there are no streaming methods.

Directories

Path Synopsis
Command identityd runs a daemon HTTP server that uses OAuth to create security.Blessings objects.
Command identityd runs a daemon HTTP server that uses OAuth to create security.Blessings objects.
Package identitylib implements a test identityd service registered using the v.io/x/lib/gosh library.
Package identitylib implements a test identityd service registered using the v.io/x/lib/gosh library.
internal
identityd_test
Command identityd_test runs a daemon HTTP server that uses OAuth to create security.Blessings objects.
Command identityd_test runs a daemon HTTP server that uses OAuth to create security.Blessings objects.
revocation
Package revocation provides tools to create and manage revocation caveats.
Package revocation provides tools to create and manage revocation caveats.
server
HTTP server that uses OAuth to create security.Blessings objects.
HTTP server that uses OAuth to create security.Blessings objects.
util
Package util implements miscellaneous utility functions needed by the identity HTTP server.
Package util implements miscellaneous utility functions needed by the identity HTTP server.

Jump to

Keyboard shortcuts

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