Skip to content

Commit

Permalink
Merge pull request #1160 from eleftherias/cleanup-auth
Browse files Browse the repository at this point in the history
Remove unused auth commands and endpoints
  • Loading branch information
eleftherias authored Oct 10, 2023
2 parents 6781bda + aa974e5 commit 1576d74
Show file tree
Hide file tree
Showing 10 changed files with 1,531 additions and 3,090 deletions.
86 changes: 0 additions & 86 deletions cmd/cli/app/auth/auth_revoke.go

This file was deleted.

112 changes: 0 additions & 112 deletions docs/docs/protodocs/proto.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 0 additions & 31 deletions internal/controlplane/handlers_auth.go

This file was deleted.

8 changes: 0 additions & 8 deletions internal/controlplane/register_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ func RegisterGatewayHTTPHandlers(ctx context.Context, gwmux *runtime.ServeMux, g
log.Fatalf("failed to register gateway: %v", err)
}

// Register AuthService handler
if err := pb.RegisterAuthServiceHandlerFromEndpoint(ctx, gwmux, grpcAddress, opts); err != nil {
log.Fatalf("failed to register gateway: %v", err)
}

// Register UserService handler
if err := pb.RegisterUserServiceHandlerFromEndpoint(ctx, gwmux, grpcAddress, opts); err != nil {
log.Fatalf("failed to register gateway: %v", err)
Expand Down Expand Up @@ -76,9 +71,6 @@ func RegisterGRPCServices(s *Server) {
// Register AuthUrlService handler
pb.RegisterOAuthServiceServer(s.grpcServer, s)

// Register the Auth service
pb.RegisterAuthServiceServer(s.grpcServer, s)

// Register the User service
pb.RegisterUserServiceServer(s.grpcServer, s)

Expand Down
1 change: 0 additions & 1 deletion internal/controlplane/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ type Server struct {
vldtr auth.JwtValidator
pb.UnimplementedHealthServiceServer
pb.UnimplementedOAuthServiceServer
pb.UnimplementedAuthServiceServer
pb.UnimplementedUserServiceServer
pb.UnimplementedRepositoryServiceServer
pb.UnimplementedProfileServiceServer
Expand Down
Loading

0 comments on commit 1576d74

Please sign in to comment.