summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-04-22Refactor: Restructure projectjwijenbergh
- Add an internal folder where all the internal code lives - Make a state.go and state_test.go for the public interface This gives a more clear separation between functions and modules. It also makes this a more typical Go project setup.
2022-04-22API: Only retry authenticated on a 401jwijenbergh
2022-04-22Servers: Add initial support for multiple using a mapjwijenbergh
2022-04-22API: Add /disconnectjwijenbergh
2022-04-22FSM: Make data for transitions optionaljwijenbergh
2022-04-21Discovery: Rollback preventions and hourly updates for serversjwijenbergh
2022-04-20State: Check if we are Deregistered before initializing FSMjwijenbergh
2022-04-20State: Always allow Deregisterjwijenbergh
2022-04-20Server Test: Add back invalid token testsjwijenbergh
2022-04-20Refactor: Eliminate most uses of pointers in structsjwijenbergh
2022-04-20FSM: Check if the FSM is defined for transitions and state checksjwijenbergh
2022-04-20Profiles: Implement SetProfileID instead of getting generic datajwijenbergh
2022-04-20FSM: More states and fix graph orderjwijenbergh
2022-04-20HTTP: Explicitly close request to eliminate EOF errorsjwijenbergh
2022-04-19Profiles: Implement basic functionality for sending a profile_idJeroen Wijenbergh
2022-04-19Server relogin: Add extra check for OAuth.Token == nilJeroen Wijenbergh
2022-04-19Config: Only write on deregisterJeroen Wijenbergh
2022-04-19OAuth improvements: Also ensure tokens based on config stateJeroen Wijenbergh
2022-04-14FSM graph generation: Add generation using mermaid as defaultjwijenbergh
Dot from graphviz kept re-ordering (e.g. flipping edges) which is annoying when showing the graph live
2022-04-14FSM Transitions: Add descriptionsjwijenbergh
2022-04-14Simplify FSM by removing hierarchyjwijenbergh
2022-04-07FSM: Different color for non-activated current states and a legendjwijenbergh
2022-04-05OAuth Expired Test: Ensure we have a fresh statejwijenbergh
2022-04-05OAuth: Comment failing test for nowjwijenbergh
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?
2022-04-05Return http code error if status code is not 2xxjwijenbergh
2022-04-05Correct tests for fsmjwijenbergh
2022-04-05Remove duplicate graph writing codejwijenbergh
2022-04-05Add debug variable to save a live fsm graphjwijenbergh
2022-03-31Initial approach to creating a fsm with states and substatesjwijenbergh
2022-03-29State: Add a deregister method for cleanupjwijenbergh
2022-03-29Logging: Add more logging statementsjwijenbergh
2022-03-29Debugging: Implement a basic level-based file loggerjwijenbergh
2022-03-29Tests: Change OAuth expiry tests by using a custom expiry timejwijenbergh
2022-03-28OAuth: Token refresh changes and testsJeroen Wijenbergh
2022-03-25Return error on run commandjwijenbergh
2022-03-25Add server oauth parameter test casesjwijenbergh
2022-03-25Login to oauth with selenium and testjwijenbergh
2022-03-25Run callback in a goroutine for oauth initializedjwijenbergh
2022-03-23Remove debug statementjwijenbergh
2022-03-23Run gofumptjwijenbergh
2022-03-23Add getting profiles and add openvpn config supportjwijenbergh
2022-03-23Return headers in HTTP for wireguard expiryjwijenbergh
2022-03-23Add wrapping functionality for getting a wireguard configjwijenbergh
2022-03-23Python: Implement state callbacks using decoratorsjwijenbergh
2022-03-22Save a local copy of the disco listjwijenbergh
2022-03-21Update python and add basic config supportJeroen Wijenbergh
2022-09-20Wireguard: Add basic supportJeroen Wijenbergh
2022-04-05OAuth: Make sure the tokens are not expiredJeroen Wijenbergh
2022-04-05Refactor: Structures changed and added Token refresh functionjwijenbergh
2022-04-05Move HTTP GET/POST methods to its own filejwijenbergh