summaryrefslogtreecommitdiff
path: root/client/client.go
AgeCommit message (Collapse)Author
2024-06-25Client: More frequent state file savingjwijenbergh
2024-06-06Discovery: Organization list cache updatesjwijenbergh
2024-06-06Client: Add portugese translationjwijenbergh
2024-05-31Client: Add punctuation for Newf errorjwijenbergh
2024-05-31Client: Move a lot of errors to internal onlyjwijenbergh
2024-05-30Client: Fix lint error with FSM debugjwijenbergh
2024-05-08Server: Add a way to pass OAuth start timeJeroen Wijenbergh
2024-04-22Client: Cancel ProxyGuard in Cleanup functionjwijenbergh
Clients like Android currently do not cleanup ProxyGuard, whilst they should, it makes sense to just cancel it for them. Cleanup should be called if possible by the client anyways.
2024-04-16Client: Set the default log level to infojwijenbergh
2024-03-14Client + Server: Cache secure internet profile choice per locationjwijenbergh
2024-03-14All: Make WireGuard support mandatoryjwijenbergh
2024-03-14Client: Fix previous state not being set correctly on config errorjwijenbergh
2024-03-13Client + Server: Refactor adding a server by first adding then authjwijenbergh
Otherwise we go to the main state after auth is done and the server is not yet added
2024-03-07Client + Server: Add a way to obtain the cached profiles listjwijenbergh
2024-03-07Client: Wrap internal identifier conversion errorjwijenbergh
2024-03-07Client: Remove obsolete transition log TODOjwijenbergh
2024-03-06Client: Make the get config otain server error less vaguejwijenbergh
2024-02-19All: Document everything to pass revive lintjwijenbergh
2024-02-19Client: Ensure we are in GettingConfigjwijenbergh
2024-02-19Client: Refactor to newest internal APIjwijenbergh
2024-02-19Client: Split client id and discovery functionsjwijenbergh
2023-10-26Client: Support govVPN client IDsjwijenbergh
2023-09-29Client: Simplify mobile redirect logic to separate filejwijenbergh
2023-09-29Client + Server + OAuth: Support mobile redirectsjwijenbergh
2023-09-25Client + Locales: Update cleanup+renew canceled erorr messagejwijenbergh
2023-09-25Client: Refresh server endpoints on renew and cleanupjwijenbergh
2023-09-25Server: Have separate implementations for refreshing endpointsjwijenbergh
2023-09-25Client + l18n: Make some errors internal onlyjwijenbergh
2023-09-25Client + Exports + Python: Add a startup boolean to getconfigjwijenbergh
To be used for autoconnect on startup. If autoconnect on startup set to true This ignores any callbacks that require user input (profile, authorization & location callbacks)
2023-09-25Client: Be less strict on chosen server transitionjwijenbergh
2023-09-25Client: Return immediately on profile validity check errorjwijenbergh
2023-09-25Client: Remove bogus chosen server transition for renewjwijenbergh
This is not correct, we already do chosen server in the callback function
2023-09-25Client: Save internal state regularlyjwijenbergh
Fixes #22
2023-09-25Client i18n: Add Sloveniajwijenbergh
2023-09-25Initial i18n implementationjwijenbergh
2023-09-25Client: Call Deregistered transition on Deregister()jwijenbergh
2023-09-25Client: Use a mutex for state transitionsjwijenbergh
2023-09-25Client + FSM: Check transitions and add SetStatejwijenbergh
Also make sure GotConfig can be used to go back to
2023-09-25Client: Disable identifier conversion for secure internetjwijenbergh
2023-09-25Client + OAuth + Server: Initialize the OAuth clientID on addjwijenbergh
2023-09-25Client + Types: Expose support contactjwijenbergh
2023-09-25Client: Remove Got Config state check for current serverjwijenbergh
2023-09-25Client: Do not defer NoServer transition when noninteractivejwijenbergh
2023-09-25Client: Relax state requirements for No Server on addjwijenbergh
2023-09-25Client: Fix institute servers map typojwijenbergh
2023-09-25Client: Return on refresh endpoints context errorjwijenbergh
2023-09-25Client: Re-create failover object on new calljwijenbergh
This additional bookkeeping is not needed now because we have contexts
2023-09-25All: Implement a token handlerjwijenbergh
This implements a token handler for OAuth tokens. Clients can use the SetTokenHandler function in exports to set a token handler. It needs two arguments, a getter and a setter. The getter is a callback with three arguments: - The server to get the tokens for, in types.server.current as JSON - The output buffer - The output buffer maximum length The tokens should be written to the output buffer with maximum length. The type should be types.server.Tokens and be marshalled as JSON. If no tokens are available, leave the output buffer intact The token setter is a callback with two arguments: - The server for which to set the tokens for, in types.server.Current as JSON - The tokens, defined in types.server.Tokens as JSON Breaking changes: - No more tokens as arguments, was already deprecated in previous commits - Tokens are no longer returned in types.server.Configuration
2023-09-25Refactor: Move client implementation to one filejwijenbergh
Much easier to oversee and it forces me to keep the client type as small as possible. This also uses the cookie for cancellation We also no longer require tokens inside arguments. We will later implement them with callbacks
2023-09-25Exports + Client: Refactor registering a clientjwijenbergh
- Make sure the global exports state is only set on successful creating - Only call discovery when adding a server to ensure we get the most up to date args. Creating a client should have no network calls. Fixes #12 - Split creating a client in New and Register in the GO api