Documentation ¶
Overview ¶
Package authdb contains methods to work with authdb.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
rpcpb.UnimplementedAuthDBServer
}
Server implements AuthDB server.
func (*Server) CheckLegacyMembership ¶
CheckLegacyMembership serves the legacy REST API GET request to check whether a given identity is a member of any of the given groups.
Example query:
"identity=user:someone@example.com&groups=group-a&groups=group-b"
Example response:
{ "is_member": true }
func (*Server) GetSnapshot ¶
func (srv *Server) GetSnapshot(ctx context.Context, request *rpcpb.GetSnapshotRequest) (*rpcpb.Snapshot, error)
GetSnapshot implements the corresponding RPC method.
Click to show internal directories.
Click to hide internal directories.