auth

package
v1.87.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkSetMetadataToDomain

func BulkSetMetadataToDomain(req *auth.BulkSetMyMetadataRequest) []*domain.Metadata

func ListMyProjectOrgsRequestToQuery

func ListMyProjectOrgsRequestToQuery(req *auth_pb.ListMyProjectOrgsRequest) (*query.OrgSearchQueries, error)

func MemberTypeToDomain

func MemberTypeToDomain(m *query.Membership) (_ domain.MemberType, displayName, aggID, objID string)

func RemoveMyLinkedIDPRequestToDomain

func RemoveMyLinkedIDPRequestToDomain(ctx context.Context, req *auth_pb.RemoveMyLinkedIDPRequest) *domain.UserIDPLink

func UpdateMyEmailToDomain

func UpdateMyEmailToDomain(ctx context.Context, email *auth.SetMyEmailRequest) *domain.Email

func UpdateMyPhoneToDomain

func UpdateMyPhoneToDomain(ctx context.Context, phone *auth.SetMyPhoneRequest) *domain.Phone

func UpdateProfileToDomain

func UpdateProfileToDomain(ctx context.Context, profile *auth.UpdateMyProfileRequest) *domain.Profile

func UserGrantToPb

func UserGrantToPb(grant *query.UserGrant) *auth_pb.UserGrant

func UserGrantsToPb

func UserGrantsToPb(grants []*query.UserGrant) []*auth_pb.UserGrant

Types

type Config

type Config struct {
	Repository eventsourcing.Config
}

type Server

type Server struct {
	auth.UnimplementedAuthServiceServer
	// contains filtered or unexported fields
}

func CreateServer

func CreateServer(command *command.Commands, query *query.Queries, authRepo repository.Repository, defaults systemdefaults.SystemDefaults, assetsAPIDomain string) *Server

func (*Server) AppName

func (s *Server) AppName() string

func (*Server) AuthMethods

func (s *Server) AuthMethods() authz.MethodMapping

func (*Server) GatewayPathPrefix

func (s *Server) GatewayPathPrefix() string

func (*Server) GetMyEmail

func (*Server) GetMyMetadata

func (*Server) GetMyPhone

func (*Server) GetMyProfile

func (*Server) GetMyUser

func (*Server) Healthz

func (*Server) ListMyMetadata

func (*Server) MethodPrefix

func (s *Server) MethodPrefix() string

func (*Server) RegisterGateway

func (s *Server) RegisterGateway() server.GatewayFunc

func (*Server) RegisterServer

func (s *Server) RegisterServer(grpcServer *grpc.Server)

func (*Server) RemoveMyAvatar

func (*Server) RemoveMyUser

func (*Server) SetMyEmail

func (*Server) SetMyPhone

func (*Server) VerifyMyEmail

func (*Server) VerifyMyPhone

Jump to

Keyboard shortcuts

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