summaryrefslogtreecommitdiff
path: root/internal
AgeCommit message (Collapse)Author
2024-02-19Version: Initial packagejwijenbergh
2023-11-01OAuth + Server: Make ISS optional for custom serversjwijenbergh
2023-09-29OAuth: Check for error parameter in authorization responsejwijenbergh
2023-09-29OAuth Test: Fix redirect URI + listener changesjwijenbergh
2023-09-29OAuth: Correctly pass Redirect URI to token requestjwijenbergh
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-25FSM: Allow to always go back to the initial statejwijenbergh
2023-09-25Client + FSM: Check transitions and add SetStatejwijenbergh
Also make sure GotConfig can be used to go back to
2023-09-25Discovery: Ignore embeded discovery filesSimon Rozman
They are not part of the Git repository and are downloaded in the build process. Signed-off-by: Simon Rozman <simon@rozman.si>
2023-09-25Client + OAuth + Server: Initialize the OAuth clientID on addjwijenbergh
2023-09-25OAuth: Always set the scheme to HTTPS for the authorization URLjwijenbergh
Useful if the cache is busted
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-25Version: Update to 2.0.0jwijenbergh
2023-09-25Secure: Do not set current location as it is already donejwijenbergh
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