summaryrefslogtreecommitdiff
path: root/exports/exports.go
AgeCommit message (Collapse)Author
2024-06-04Format: Run Gofumptjwijenbergh
2024-05-30Exports: improvements in return data error handlingjwijenbergh
2024-05-29Exports Doc: Small updatesjwijenbergh
2024-05-29Exports: Run formatjwijenbergh
2024-05-29exports: Fix discovery subset in commentsjwijenbergh
2024-05-29Discovery: Implement search and do not return keywordsjwijenbergh
This patch implements search by adding a second argument to DiscoOrganizations and DiscoServers. A search string of = "" returns everything. This also makes the subset that is returned to the client even fewer, no keywords.
2024-05-08Server: Add a way to pass OAuth start timeJeroen Wijenbergh
2024-04-22Exports: Document ProxyGuard cleanupjwijenbergh
2024-03-14All: Make WireGuard support mandatoryjwijenbergh
2024-03-07Exports: Remove obsolete TODOjwijenbergh
2024-03-06Client + Exports + Wrappers: Add peer IPs argument to fd callbackjwijenbergh
And rename the callback to be closer to what it does
2024-02-23Exports: Nil check proxyReady in StartProxyguardjwijenbergh
2024-02-23Export Docs: Mention that the proxyguard ready callback takes nothingjwijenbergh
2024-02-23Proxy: Only call ready when client is not connectedjwijenbergh
2024-02-23Client + Exports: Update to latest proxyguard APIjwijenbergh
- Add a ClientProxyReady callback - do a DNS request for the IPs
2024-02-19Format: Run gofumptjwijenbergh
2024-02-19Docs: Add a WireGuard + proxyguard examplejwijenbergh
2024-02-19Proxyguard: Support a FD callbackjwijenbergh
useful for the android app
2024-02-19All: Document everything to pass revive lintjwijenbergh
2024-02-19Exports: Add doc for StartProxyguardjwijenbergh
2024-02-19Format: Run gofumptjwijenbergh
2024-02-19Exports: Set proper wg support booleanjwijenbergh
2024-02-19WireGuard: TCP support using proxyguardjwijenbergh
2024-02-19Exports + Python: Delete cookie but add orgid in set_secure_locationjwijenbergh
2024-02-19Cookie + Exports: Store and return the cookie from the underlying contextjwijenbergh
This has the ability so that we can easily get the same cookie back in the client package by creating the one from the context
2024-02-19All: Prepare to get rid of go-errors/errors libjwijenbergh
2024-02-19Exports + Python: New API for Token Getter and Setterjwijenbergh
First argument is the server id and type instead of a single argument with JSON
2023-09-29Exports Docs: Improve examples for mobile redirectsjwijenbergh
2023-09-29Client + Server + OAuth: Support mobile redirectsjwijenbergh
2023-09-25Exports: Log no tokens returned as debugjwijenbergh
2023-09-25Docs Exports: Add some example input/outputjwijenbergh
2023-09-25Exports: Update spacing in docsjwijenbergh
2023-09-25Exports: Update docsjwijenbergh
2023-09-25Genexportsdoc: Set executable flagjwijenbergh
2023-09-25Export Docs: Update bullets spacingjwijenbergh
2023-09-25Exports: Format and rewrite some commentsjwijenbergh
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-25Initial i18n implementationjwijenbergh
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-25Exports: Document that CookieReply can be done in the backgroundjwijenbergh
2023-09-25Exports: Document AddServer ni flagjwijenbergh
2023-09-25Exports: Fix function name for DiscoOrganizations in commentsjwijenbergh
2023-09-25Exports: Small fixes in cookie commentsjwijenbergh
2023-09-25Exports: Document getconfig prefer TCP and return typejwijenbergh
2023-09-25Exports: Initial comments documenting the APIjwijenbergh
2023-09-25Exports: Lowercase statecallbackjwijenbergh
2023-09-25Exports: Remove unused error.hjwijenbergh
2023-09-25Exports: Fix void signature for TokenGetterjwijenbergh
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