server: go.chromium.org/goma/server/proto/auth Index | Files

package auth

import "go.chromium.org/goma/server/proto/auth"

Index

Package Files

acl.pb.go auth.pb.go auth_service.pb.go authdb.pb.go authdb_service.pb.go

func RegisterAuthDBServiceServer Uses

func RegisterAuthDBServiceServer(s *grpc.Server, srv AuthDBServiceServer)

func RegisterAuthServiceServer Uses

func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)

type ACL Uses

type ACL struct {
    // First matched group will be used.
    Groups               []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ACL) Descriptor Uses

func (*ACL) Descriptor() ([]byte, []int)

func (*ACL) GetGroups Uses

func (m *ACL) GetGroups() []*Group

func (*ACL) ProtoMessage Uses

func (*ACL) ProtoMessage()

func (*ACL) Reset Uses

func (m *ACL) Reset()

func (*ACL) String Uses

func (m *ACL) String() string

func (*ACL) XXX_DiscardUnknown Uses

func (m *ACL) XXX_DiscardUnknown()

func (*ACL) XXX_Marshal Uses

func (m *ACL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ACL) XXX_Merge Uses

func (m *ACL) XXX_Merge(src proto.Message)

func (*ACL) XXX_Size Uses

func (m *ACL) XXX_Size() int

func (*ACL) XXX_Unmarshal Uses

func (m *ACL) XXX_Unmarshal(b []byte) error

type AuthDBServiceClient Uses

type AuthDBServiceClient interface {
    CheckMembership(ctx context.Context, in *CheckMembershipReq, opts ...grpc.CallOption) (*CheckMembershipResp, error)
}

AuthDBServiceClient is the client API for AuthDBService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAuthDBServiceClient Uses

func NewAuthDBServiceClient(cc *grpc.ClientConn) AuthDBServiceClient

type AuthDBServiceServer Uses

type AuthDBServiceServer interface {
    CheckMembership(context.Context, *CheckMembershipReq) (*CheckMembershipResp, error)
}

AuthDBServiceServer is the server API for AuthDBService service.

type AuthReq Uses

type AuthReq struct {
    Authorization        string   `protobuf:"bytes,1,opt,name=authorization,proto3" json:"authorization,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*AuthReq) Descriptor Uses

func (*AuthReq) Descriptor() ([]byte, []int)

func (*AuthReq) GetAuthorization Uses

func (m *AuthReq) GetAuthorization() string

func (*AuthReq) ProtoMessage Uses

func (*AuthReq) ProtoMessage()

func (*AuthReq) Reset Uses

func (m *AuthReq) Reset()

func (*AuthReq) String Uses

func (m *AuthReq) String() string

func (*AuthReq) XXX_DiscardUnknown Uses

func (m *AuthReq) XXX_DiscardUnknown()

func (*AuthReq) XXX_Marshal Uses

func (m *AuthReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthReq) XXX_Merge Uses

func (m *AuthReq) XXX_Merge(src proto.Message)

func (*AuthReq) XXX_Size Uses

func (m *AuthReq) XXX_Size() int

func (*AuthReq) XXX_Unmarshal Uses

func (m *AuthReq) XXX_Unmarshal(b []byte) error

type AuthResp Uses

type AuthResp struct {
    Email     string               `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
    ExpiresAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
    // number of requests allowed until expire.
    // -1 means unlimited. 0 means disallow.
    Quota int32 `protobuf:"varint,4,opt,name=quota,proto3" json:"quota,omitempty"`
    // error description for user.
    ErrorDescription string `protobuf:"bytes,5,opt,name=error_description,json=errorDescription,proto3" json:"error_description,omitempty"`
    Token            *Token `protobuf:"bytes,7,opt,name=token,proto3" json:"token,omitempty"`
    // group that email belongs to.
    GroupId              string   `protobuf:"bytes,8,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*AuthResp) Descriptor Uses

func (*AuthResp) Descriptor() ([]byte, []int)

func (*AuthResp) GetEmail Uses

func (m *AuthResp) GetEmail() string

func (*AuthResp) GetErrorDescription Uses

func (m *AuthResp) GetErrorDescription() string

func (*AuthResp) GetExpiresAt Uses

func (m *AuthResp) GetExpiresAt() *timestamp.Timestamp

func (*AuthResp) GetGroupId Uses

func (m *AuthResp) GetGroupId() string

func (*AuthResp) GetQuota Uses

func (m *AuthResp) GetQuota() int32

func (*AuthResp) GetToken Uses

func (m *AuthResp) GetToken() *Token

func (*AuthResp) ProtoMessage Uses

func (*AuthResp) ProtoMessage()

func (*AuthResp) Reset Uses

func (m *AuthResp) Reset()

func (*AuthResp) String Uses

func (m *AuthResp) String() string

func (*AuthResp) XXX_DiscardUnknown Uses

func (m *AuthResp) XXX_DiscardUnknown()

func (*AuthResp) XXX_Marshal Uses

func (m *AuthResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthResp) XXX_Merge Uses

func (m *AuthResp) XXX_Merge(src proto.Message)

func (*AuthResp) XXX_Size Uses

func (m *AuthResp) XXX_Size() int

func (*AuthResp) XXX_Unmarshal Uses

func (m *AuthResp) XXX_Unmarshal(b []byte) error

type AuthServiceClient Uses

type AuthServiceClient interface {
    Auth(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*AuthResp, error)
}

AuthServiceClient is the client API for AuthService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAuthServiceClient Uses

func NewAuthServiceClient(cc *grpc.ClientConn) AuthServiceClient

type AuthServiceServer Uses

type AuthServiceServer interface {
    Auth(context.Context, *AuthReq) (*AuthResp, error)
}

AuthServiceServer is the server API for AuthService service.

type CheckMembershipReq Uses

type CheckMembershipReq struct {
    Email                string   `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
    Group                string   `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CheckMembershipReq) Descriptor Uses

func (*CheckMembershipReq) Descriptor() ([]byte, []int)

func (*CheckMembershipReq) GetEmail Uses

func (m *CheckMembershipReq) GetEmail() string

func (*CheckMembershipReq) GetGroup Uses

func (m *CheckMembershipReq) GetGroup() string

func (*CheckMembershipReq) ProtoMessage Uses

func (*CheckMembershipReq) ProtoMessage()

func (*CheckMembershipReq) Reset Uses

func (m *CheckMembershipReq) Reset()

func (*CheckMembershipReq) String Uses

func (m *CheckMembershipReq) String() string

func (*CheckMembershipReq) XXX_DiscardUnknown Uses

func (m *CheckMembershipReq) XXX_DiscardUnknown()

func (*CheckMembershipReq) XXX_Marshal Uses

func (m *CheckMembershipReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckMembershipReq) XXX_Merge Uses

func (m *CheckMembershipReq) XXX_Merge(src proto.Message)

func (*CheckMembershipReq) XXX_Size Uses

func (m *CheckMembershipReq) XXX_Size() int

func (*CheckMembershipReq) XXX_Unmarshal Uses

func (m *CheckMembershipReq) XXX_Unmarshal(b []byte) error

type CheckMembershipResp Uses

type CheckMembershipResp struct {
    IsMember             bool     `protobuf:"varint,1,opt,name=is_member,json=isMember,proto3" json:"is_member,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*CheckMembershipResp) Descriptor Uses

func (*CheckMembershipResp) Descriptor() ([]byte, []int)

func (*CheckMembershipResp) GetIsMember Uses

func (m *CheckMembershipResp) GetIsMember() bool

func (*CheckMembershipResp) ProtoMessage Uses

func (*CheckMembershipResp) ProtoMessage()

func (*CheckMembershipResp) Reset Uses

func (m *CheckMembershipResp) Reset()

func (*CheckMembershipResp) String Uses

func (m *CheckMembershipResp) String() string

func (*CheckMembershipResp) XXX_DiscardUnknown Uses

func (m *CheckMembershipResp) XXX_DiscardUnknown()

func (*CheckMembershipResp) XXX_Marshal Uses

func (m *CheckMembershipResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckMembershipResp) XXX_Merge Uses

func (m *CheckMembershipResp) XXX_Merge(src proto.Message)

func (*CheckMembershipResp) XXX_Size Uses

func (m *CheckMembershipResp) XXX_Size() int

func (*CheckMembershipResp) XXX_Unmarshal Uses

func (m *CheckMembershipResp) XXX_Unmarshal(b []byte) error

type Group Uses

type Group struct {
    Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
    // if audience is not empty, group member should have this audience
    // in the token.
    Audience string `protobuf:"bytes,3,opt,name=audience,proto3" json:"audience,omitempty"`
    // matches mail in the token.
    Emails []string `protobuf:"bytes,4,rep,name=emails,proto3" json:"emails,omitempty"`
    // matches domain part of email in the token.
    Domains []string `protobuf:"bytes,5,rep,name=domains,proto3" json:"domains,omitempty"`
    // use this service account for this group.
    // it is used to read json in service-accounts volume.
    // If service_account is "default", use server's default service account.
    // If service_account is empty, pass EUC as is.
    ServiceAccount string `protobuf:"bytes,6,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
    // If reject is true, deny access from this group.
    // Used for blacklisting.
    Reject               bool     `protobuf:"varint,7,opt,name=reject,proto3" json:"reject,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Group defines a group of users that shares the same service account. Different groups may share a service account.

func (*Group) Descriptor Uses

func (*Group) Descriptor() ([]byte, []int)

func (*Group) GetAudience Uses

func (m *Group) GetAudience() string

func (*Group) GetDescription Uses

func (m *Group) GetDescription() string

func (*Group) GetDomains Uses

func (m *Group) GetDomains() []string

func (*Group) GetEmails Uses

func (m *Group) GetEmails() []string

func (*Group) GetId Uses

func (m *Group) GetId() string

func (*Group) GetReject Uses

func (m *Group) GetReject() bool

func (*Group) GetServiceAccount Uses

func (m *Group) GetServiceAccount() string

func (*Group) ProtoMessage Uses

func (*Group) ProtoMessage()

func (*Group) Reset Uses

func (m *Group) Reset()

func (*Group) String Uses

func (m *Group) String() string

func (*Group) XXX_DiscardUnknown Uses

func (m *Group) XXX_DiscardUnknown()

func (*Group) XXX_Marshal Uses

func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Group) XXX_Merge Uses

func (m *Group) XXX_Merge(src proto.Message)

func (*Group) XXX_Size Uses

func (m *Group) XXX_Size() int

func (*Group) XXX_Unmarshal Uses

func (m *Group) XXX_Unmarshal(b []byte) error

type Token Uses

type Token struct {
    AccessToken          string   `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
    TokenType            string   `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Token) Descriptor Uses

func (*Token) Descriptor() ([]byte, []int)

func (*Token) GetAccessToken Uses

func (m *Token) GetAccessToken() string

func (*Token) GetTokenType Uses

func (m *Token) GetTokenType() string

func (*Token) ProtoMessage Uses

func (*Token) ProtoMessage()

func (*Token) Reset Uses

func (m *Token) Reset()

func (*Token) String Uses

func (m *Token) String() string

func (*Token) XXX_DiscardUnknown Uses

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal Uses

func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Token) XXX_Merge Uses

func (m *Token) XXX_Merge(src proto.Message)

func (*Token) XXX_Size Uses

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal Uses

func (m *Token) XXX_Unmarshal(b []byte) error

type UnimplementedAuthDBServiceServer Uses

type UnimplementedAuthDBServiceServer struct {
}

UnimplementedAuthDBServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthDBServiceServer) CheckMembership Uses

func (*UnimplementedAuthDBServiceServer) CheckMembership(ctx context.Context, req *CheckMembershipReq) (*CheckMembershipResp, error)

type UnimplementedAuthServiceServer Uses

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServiceServer) Auth Uses

func (*UnimplementedAuthServiceServer) Auth(ctx context.Context, req *AuthReq) (*AuthResp, error)

Package auth imports 8 packages (graph) and is imported by 7 packages. Updated 2019-11-15. Refresh now. Tools for package owners.