v.io: v.io/x/ref/services/identity Index | Files | Directories

package identity

import "v.io/x/ref/services/identity"

Package identity defines interfaces for Vanadium identity providers. nolint:golint

Index

Package Files

const.go identity.vdl.go

Constants

const SeekBlessingsRoute = oauth.SeekBlessingsRoute

Variables

var MacaroonBlesserDesc rpc.InterfaceDesc = descMacaroonBlesser

MacaroonBlesserDesc describes the MacaroonBlesser interface.

type BlessingRootResponse Uses

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) VDLIsZero Uses

func (x BlessingRootResponse) VDLIsZero() bool

func (*BlessingRootResponse) VDLRead Uses

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

func (BlessingRootResponse) VDLReflect Uses

func (BlessingRootResponse) VDLReflect(struct {
    Name string `vdl:"v.io/x/ref/services/identity.BlessingRootResponse"`
})

func (BlessingRootResponse) VDLWrite Uses

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

type MacaroonBlesserClientMethods Uses

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 Uses

type MacaroonBlesserClientStub interface {
    MacaroonBlesserClientMethods
}

MacaroonBlesserClientStub embeds MacaroonBlesserClientMethods and is a placeholder for additional management operations.

func MacaroonBlesserClient Uses

func MacaroonBlesserClient(name string) MacaroonBlesserClientStub

MacaroonBlesserClient returns a client stub for MacaroonBlesser.

type MacaroonBlesserServerMethods Uses

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 Uses

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

MacaroonBlesserServerStub adds universal methods to MacaroonBlesserServerStubMethods.

func MacaroonBlesserServer Uses

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 Uses

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

PathSynopsis
identitydCommand identityd runs a daemon HTTP server that uses OAuth to create security.Blessings objects.
identitylibPackage identitylib implements a test identityd service registered using the v.io/x/lib/gosh library.
internal/auditor
internal/blesser
internal/caveats
internal/dischargerlib
internal/handlers
internal/oauthPackage oauth implements an http.Handler that has two main purposes listed below:
internal/revocationnolint:golint
internal/serverHTTP server that uses OAuth to create security.Blessings objects.
internal/templates
internal/utilPackage util implements miscellaneous utility functions needed by the identity HTTP server.

Package identity imports 6 packages (graph) and is imported by 5 packages. Updated 2020-10-12. Refresh now. Tools for package owners.