Skip to content

Add shared gRPC auth service for mobile clients#7745

Merged
renemadsen merged 1 commit intostablefrom
feature/grpc-auth-service
Apr 4, 2026
Merged

Add shared gRPC auth service for mobile clients#7745
renemadsen merged 1 commit intostablefrom
feature/grpc-auth-service

Conversation

@renemadsen
Copy link
Copy Markdown
Member

Summary

  • Add EformAuthGrpcService with AuthenticateUser and RefreshToken gRPC endpoints in eFormAPI.Web
  • Directly injects IAuthService — no reflection or cross-assembly hacks needed
  • Generic auth that all mobile client plugins can share instead of each plugin reimplementing auth
  • 4 unit tests covering success and failure paths for both endpoints

Files

  • eFormAPI.Web/Protos/auth.proto — proto definition with EformAuthService
  • eFormAPI.Web/Services/GrpcServices/EformAuthGrpcService.cs — service implementation
  • eFormAPI.Web/Startup.csAddGrpc() + MapGrpcService registration
  • eFormAPI.Web.Tests/GrpcServices/EformAuthGrpcServiceTests.cs — 4 unit tests

Related

Test plan

  • All 4 auth gRPC unit tests pass
  • Integration test with Flutter client

🤖 Generated with Claude Code

…oken

Shared auth gRPC endpoints that can be used by any mobile client plugin,
avoiding duplication of auth logic across plugins. Directly injects
IAuthService — no reflection needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@renemadsen renemadsen merged commit 11b0531 into stable Apr 4, 2026
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant