Open Relentlesslba opened 4 years ago
@Relentlesslba Thanks for writing that out. The way I see it you can create the following issues, which reference this issue.
Issue to address 1 and 2:
think about how you would write an integration test to test this process.
@ytitov
We will have more than one GRPC service, and all of them will require for the client to be authenticated, except one - the auth service.
The auth service will not have an interceptor. It will include a call to authenticate the client, expecting a username and password, and returning a session ID. Once the client has a session ID, it will communicate through other GRPC services (tasks, messages). These services will include an interceptor for both client and server.
Flow:
In summary, one auth interceptor will function for all GRPC services except the auth service on both the server and the client.