import "v.io/x/ref/services/identity"
Package identity defines interfaces for Vanadium identity providers.
const SeekBlessingsRoute = oauth.SeekBlessingsRoute
var MacaroonBlesserDesc rpc.InterfaceDesc = descMacaroonBlesser
MacaroonBlesserDesc describes the MacaroonBlesser interface.
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 (x BlessingRootResponse) VDLIsZero() bool
func (x *BlessingRootResponse) VDLRead(dec vdl.Decoder) error
func (BlessingRootResponse) VDLReflect(struct { Name string `vdl:"v.io/x/ref/services/identity.BlessingRootResponse"` })
func (x BlessingRootResponse) VDLWrite(enc vdl.Encoder) error
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 interface { MacaroonBlesserClientMethods }
MacaroonBlesserClientStub embeds MacaroonBlesserClientMethods and is a placeholder for additional management operations.
func MacaroonBlesserClient(name string) MacaroonBlesserClientStub
MacaroonBlesserClient returns a client stub for MacaroonBlesser.
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 interface { MacaroonBlesserServerStubMethods // DescribeInterfaces the MacaroonBlesser interfaces. Describe__() []rpc.InterfaceDesc }
MacaroonBlesserServerStub adds universal methods to MacaroonBlesserServerStubMethods.
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 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.
Path | Synopsis |
---|---|
identityd | Command identityd runs a daemon HTTP server that uses OAuth to create security.Blessings objects. |
identitylib | Package 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/oauth | Package oauth implements an http.Handler that has two main purposes listed below: |
internal/revocation | nolint:golint |
internal/server | HTTP server that uses OAuth to create security.Blessings objects. |
internal/templates | |
internal/util | Package util implements miscellaneous utility functions needed by the identity HTTP server. |
Package identity imports 6 packages (graph) and is imported by 5 packages. Updated 2021-01-28. Refresh now. Tools for package owners.