summaryrefslogtreecommitdiff
path: root/internal
AgeCommit message (Collapse)Author
2023-09-25Verify Test: Use callStr on errorjwijenbergh
2023-09-25OAuth Token: Set previous refresh token if new refresh token is emptyjwijenbergh
This is for 2.x servers that return an empty refresh token after refreshing
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-25OAuth: Implement the Public() method for tokensjwijenbergh
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-25HTTP: Pass context around and optionally trail path in urljwijenbergh
2023-09-25OAuth: Pass a context aroundjwijenbergh
2023-09-25Failover: Pass a context aroundjwijenbergh
2023-09-25Format: Run gofumpt (Go) + black (py)jwijenbergh
2023-09-25Discovery: Pass a context aroundjwijenbergh
2023-09-25Fix connection monitoring on WindowsSimon Rozman
Linux requires su for `ip4:icmp` pings. Windows does not support `udp4` pings. Signed-off-by: Simon Rozman <simon@rozman.si>
2023-09-25FSM: Add more context to required transition errorjwijenbergh
2023-09-25Revert "FSM: Set handled to true for now"jwijenbergh
This reverts commit 2b1bb611b7c83d8e8e5eadfed7c717d16e61d81b.
2023-09-25Exports + Python + Server: Remove ShouldRenewButtonjwijenbergh
This is replace with expiry times
2023-09-25Tests: Pass for V2 APIjwijenbergh
2023-09-25Types: Split discovery into its own packagejwijenbergh
2023-09-25Server: Add a TODO note for custom server typesjwijenbergh
2023-09-25Util: Get rid of language matchingjwijenbergh
2023-09-25Institute Access: Add context to set errorsjwijenbergh
2023-09-25Server Base: Add functions for getting expiry timesjwijenbergh
2023-09-25FSM: Set handled to true for nowjwijenbergh
2023-09-25FSM: Add state name to transition errorjwijenbergh
2023-09-01Version: Update to 1.1.21.1.2jwijenbergh
2023-09-01Client + Server: Increase endpoint update frequency and update secure ↵jwijenbergh
internet handling
2023-08-29Version: Update to 1.1.11.1.1jwijenbergh
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-18Version: Update to 1.1.01.1.0jwijenbergh
2023-04-18Client + Server: Set default secure internet locationjwijenbergh
2023-04-18OAuth Token: Set previous refresh token if new refresh token is emptyjwijenbergh
This is for 2.x servers that return an empty refresh token after refreshing
2023-04-18Verify Test: Use callStr on errorjwijenbergh
2023-04-18Server Custom: Fix invalid wrap erorrjwijenbergh
2023-04-18Client + Server: Implement a token updater callbackjwijenbergh
2023-03-01Version: Update to 1.0.0jwijenbergh
2023-03-01Version: Downgrade to 0.99.0jwijenbergh
2023-03-01Format: Run black and gofumptjwijenbergh
2023-03-01Client + Exports + HTTP: Set a user-agent using the client's versionjwijenbergh
2023-02-28API + OAuth: Add some debug logging for tokensjwijenbergh
2023-02-28Refactor: Remove error leveljwijenbergh
Not useful enought just yet
2023-02-28Config: Rename ConfigFormat to Formatjwijenbergh
2023-02-28Discovery: Update tests to use the right membersjwijenbergh
2023-02-28Config: Add a version fieldjwijenbergh
2023-02-28Log: Use a global logger instancejwijenbergh
2023-02-28Discovery: Cache within JSON as welljwijenbergh
2023-02-27Discovery: Fix embedding preamblejwijenbergh
2023-02-27Profile Test: formatjwijenbergh
2023-02-27Discovery: Conditionally embed latest discovery files for local cachejwijenbergh
Conditionally embedding based on https://github.com/golang/go/issues/44484#issuecomment-948137497 To use it, wget the discovery files into the internal/discovery folder (same JSON name) after verifying the signature. Then build with -tags=release
2023-02-27OAuth: Use a sync.Once to only handle the request oncejwijenbergh
This prevents someone from spamming the local redirect URI and sending additional outgoing token requests to the legitimate server
2023-02-17HTTP: Fix test for joining path by removing trailing slashjwijenbergh
2023-02-17HTTP: Only add trailing slash for ensuring valid URLjwijenbergh