{"record":{"id":"ad70828078d4aa11","repo":"netbirdio/netbird","slug":"sso-login-failed-v","errorCode":null,"errorMessage":"sso login failed: %v","messagePattern":"sso login failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"client/cmd/login.go","lineNumber":167,"sourceCode":"\t\t\ts.Code() == codes.PermissionDenied ||\n\t\t\ts.Code() == codes.NotFound ||\n\t\t\ts.Code() == codes.Unimplemented) {\n\t\t\tloginErr = backOffErr\n\t\t\treturn nil\n\t\t}\n\t\treturn backOffErr\n\t})\n\tif err != nil {\n\t\treturn fmt.Errorf(\"login backoff cycle failed: %v\", err)\n\t}\n\n\tif loginErr != nil {\n\t\treturn fmt.Errorf(\"login failed: %v\", loginErr)\n\t}\n\n\tif loginResp.NeedsSSOLogin {\n\t\tif err := handleSSOLogin(ctx, cmd, loginResp, client, pm); err != nil {\n\t\t\treturn fmt.Errorf(\"sso login failed: %v\", err)\n\t\t}\n\t}\n\n\treturn nil\n}\n\n// doExtendSession drives the daemon's RequestExtendAuthSession /\n// WaitExtendAuthSession pair. The user is sent through a regular SSO flow\n// (browser + verification URL) and the resulting JWT is forwarded to the\n// management server's ExtendAuthSession RPC. The tunnel stays up\n// throughout — no Down/Up, no network-map resync.\nfunc doExtendSession(ctx context.Context, cmd *cobra.Command) error {\n\tconn, err := DialClientGRPCServer(ctx, daemonAddr)\n\tif err != nil {\n\t\t//nolint\n\t\treturn fmt.Errorf(\"failed to connect to daemon error: %v\\n\"+\n\t\t\t\"If the daemon is not running please run: \"+\n\t\t\t\"\\nnetbird service install \\nnetbird service start\\n\", err)","sourceCodeStart":149,"sourceCodeEnd":185,"githubUrl":"https://github.com/netbirdio/netbird/blob/93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c/client/cmd/login.go#L149-L185","documentation":"Error \"sso login failed: %v\" thrown in netbirdio/netbird.","triggerScenarios":"Thrown at client/cmd/login.go:167 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c","analyzedAt":"2026-08-16T03:09:19.136Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}