Resolve client authentication issue in daemon mode (#1181)

This commit is contained in:
Bethuel Mmbaga
2023-09-28 15:02:37 +03:00
committed by GitHub
parent 830dee1771
commit 1956ca169e
8 changed files with 164 additions and 147 deletions

View File

@@ -208,7 +208,7 @@ func (s *Server) Login(callerCtx context.Context, msg *proto.LoginRequest) (*pro
state.Set(internal.StatusConnecting)
if msg.SetupKey == "" {
oAuthFlow, err := auth.NewOAuthFlow(ctx, config)
oAuthFlow, err := auth.NewOAuthFlow(ctx, config, msg.IsLinuxDesktopClient)
if err != nil {
state.Set(internal.StatusLoginFailed)
return nil, err