summaryrefslogtreecommitdiff
path: root/internal/server
AgeCommit message (Collapse)Author
2024-11-21Replace all links from GitHub to Codebergjwijenbergh
2024-10-29All: Refactor to latest ProxyGuardjwijenbergh
2024-07-18Server: Go to GettingConfig after InvalidProfilejwijenbergh
Could be we have just done OAuth and are in state main...
2024-07-17Client + Server: Pass discovery manager and lock when neededjwijenbergh
2024-07-17Client + Discovery: Fetch dscovery at startup using DiscoveryStartupjwijenbergh
With a manager that locks and copies such that no race conditions happen
2024-07-17Client + API: Mark organizations expired *before* processing urljwijenbergh
2024-06-06Discovery: Organization list cache updatesjwijenbergh
2024-06-04Server: Fix comment regarding profilesjwijenbergh
2024-05-08Server: Add a way to pass OAuth start timeJeroen Wijenbergh
2024-03-22Format: Run gofumptjwijenbergh
2024-03-14Client + Server: Cache secure internet profile choice per locationjwijenbergh
2024-03-14All: Make WireGuard support mandatoryjwijenbergh
2024-03-13Server: Log on remove after failed authorization 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-07Server: Remove obsolete TODOjwijenbergh
2024-02-19Server: Only return should failover if prefer TCP was false toojwijenbergh
2024-02-19All: Document everything to pass revive lintjwijenbergh
2024-02-19Format: Run gofumptjwijenbergh
2024-02-19API + Server: Support vpn_proto_transport_listjwijenbergh
2024-02-19Server: Refactor internal server package to use new state filejwijenbergh
This completely rewrites the internal server package. Some advantages: - Caches less - Uses a callback interface so that the client package does not get so convoluted - Introduce a new API package that only deals with the server API and uses github.com/jwijenbergh/eduoauth-go
2024-02-19Server: Delete old files to prepare for new internal APIjwijenbergh
2023-11-01OAuth + Server: Make ISS optional for custom serversjwijenbergh
2023-09-29Client + Server + OAuth: Support mobile redirectsjwijenbergh
2023-09-25Server: Have separate implementations for refreshing endpointsjwijenbergh
2023-09-25Server: Set OAuth endpoints on refreshjwijenbergh
This fixes OAuth endpoints after e.g. an update from 2.x to 3.x
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 + OAuth + Server: Initialize the OAuth clientID on addjwijenbergh
2023-09-25API Test: Add test for invalid authorization endpoint schemejwijenbergh
2023-09-25Endpoints: Double check HTTPS schemejwijenbergh
Now the note in the CLI is really not needed, but maybe wise to keep it there?
2023-09-25Secure: Do not set current location as it is already donejwijenbergh
2023-09-25Custom: Use the hostname for custom servers display namejwijenbergh
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: Split internal server into multiple packagesjwijenbergh
- Pass contexts - Have separate packages for e.g. custom, institute and secure - internet servers, profiles.... - Return types from the public ./types package with a Public() method
2023-09-25Exports + Python + Server: Remove ShouldRenewButtonjwijenbergh
This is replace with expiry times
2023-09-25Types: Split discovery into its own packagejwijenbergh
2023-09-25Server: Add a TODO note for custom server typesjwijenbergh
2023-09-25Institute Access: Add context to set errorsjwijenbergh
2023-09-25Server Base: Add functions for getting expiry timesjwijenbergh
2023-09-01Client + Server: Increase endpoint update frequency and update secure ↵jwijenbergh
internet handling
2023-08-29Server: Set OAuth endpoints on refreshjwijenbergh
This fixes OAuth endpoints after e.g. an update from 2.x to 3.x
2023-04-18Client + Server: Set default secure internet locationjwijenbergh
2023-04-18Server Custom: Fix invalid wrap erorrjwijenbergh
2023-04-18Client + Server: Implement a token updater callbackjwijenbergh
2023-02-28API + OAuth: Add some debug logging for tokensjwijenbergh
2023-02-27Profile Test: formatjwijenbergh
2023-02-17Refactor: Improve some errors by using errors.New and add contextjwijenbergh
2023-02-16Server: Add test for profilesjwijenbergh
2023-02-16Format: Run gofumptjwijenbergh