From 5475e079b38eb34168ee39e01e6550d206a02d31 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 5 Apr 2022 12:03:23 +0200 Subject: OAuth: Comment failing test for now We need to uncomment this again when we find a proper fix. The problem is that our FSM only allows OAuth changes when we're not authenticated. When we're already authenticated and we want to completely re-do the oauth process, this is not possible. While we could go back to the not authenticated phase, this means that we're also leaving the connected phase. Decouple authentication and connection? --- src/fsm.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/fsm.go') diff --git a/src/fsm.go b/src/fsm.go index f73ce4c..08e3485 100644 --- a/src/fsm.go +++ b/src/fsm.go @@ -168,7 +168,6 @@ func (eduvpn *VPNState) writeGraph() { graph := eduvpn.GenerateGraph() f, err := os.Create("debug.graph") - if err != nil { eduvpn.Log(LOG_INFO, fmt.Sprintf("Failed to write debug fsm graph with error %v", err)) } @@ -204,12 +203,12 @@ func getGraphviz(fsm *FSM, graph string) string { } graph += "\nsubgraph cluster_" + name.String() + "{\n" - if (state.Locked) { + if state.Locked { graph += "style=\"dotted\"\n" } else { graph += "style=\"\"\n" } - if (fsm.Current == name) { + if fsm.Current == name { graph += "color=\"blue\"\n" graph += "fontcolor=\"blue\"\n" } else { -- cgit v1.2.3