| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2022-11-28 | Linter: Fix dupword errors | jwijenbergh | |
| 2022-11-28 | Log: Fix copy&paste function comments | jwijenbergh | |
| 2022-11-28 | Log: Define f prefix for log functions to indicate printf like | jwijenbergh | |
| 2022-11-28 | OAuth: Define ReadHeaderTimeout | jwijenbergh | |
| 2022-11-28 | OAuth Listener: Explicitly specify localhost | jwijenbergh | |
| 2022-11-28 | Formatting: Run golines | jwijenbergh | |
| 2022-11-28 | Formatting: Run gofumpt -w | jwijenbergh | |
| 2022-11-28 | Refactor: Fix revive linter errors by deleting redundant prefixes | jwijenbergh | |
| 2022-11-28 | OAuth: Refactor Token getting and do not save them in the config | jwijenbergh | |
| This commit refactors getting the tokens into receiver methods. This means that functions do not have to call the cryptic "EnsureTokens" method. The receiver getter then already verifier whether or not the tokens could be obtained (and refreshes too). The downside is that some things are now private, so testing for invalid tokens needs to be done somewhere else. This needs another patch such that clients can save the tokens themselves using a keyring. | |||
| 2022-11-28 | Lint: Run godot fix | jwijenbergh | |
| Full command: golangci-lint run --disable-all -E godot --fix | |||
| 2022-11-28 | Refactor: Remove most get prefixes for receiver functions | jwijenbergh | |
| 2022-11-28 | Document: Add comments for most functions and packages | jwijenbergh | |
| Errors and test files still need to be done. Also some getters are changed by removing the 'get' prefix | |||
| 2022-11-25 | Discovery + Exports: Rename variable to not clash with server pkg | jwijenbergh | |
| 2022-11-24 | Style: Use stylecheck and fix errors | jwijenbergh | |
| 2022-11-24 | Discovery + Server: Get rid of unused imports | jwijenbergh | |
| 2022-11-24 | Util: Get rid of current time helper | jwijenbergh | |
| Fixes #5 | |||
| 2022-11-23 | FSM: Check unhandled transitions | jwijenbergh | |
| 2022-11-17 | Log: Rename log file to log | jwijenbergh | |
| 2022-11-17 | Log: Add additional params to get rid of Sprintf calls | jwijenbergh | |
| 2022-11-14 | Client + Server: Refresh the endpoints before checking for a valid profile | jwijenbergh | |
| 2022-11-10 | HTTP: Fix typo in status error | jwijenbergh | |
| 2022-11-10 | Logging: Add a Debug level | jwijenbergh | |
| This makes the levels more logical | |||
| 2022-11-10 | Server: Re-initialize endpoints when getting a config | jwijenbergh | |
| 2022-10-25 | Client + FSM: Remove background argument from transition | jwijenbergh | |
| This fixes a race condition reported by Go's -race flag In the future we should use waitgroups to ensure the OAuth local listener is started before we sent the URL | |||
| 2022-10-25 | Verify Test: Fix ugly race condition found with Go's -race flag | jwijenbergh | |
| 2022-10-24 | Log: Rename log file to go.log | jwijenbergh | |
| 2022-10-24 | Log: Use a multiwriter and make output neater | jwijenbergh | |
| 2022-10-24 | Client + Server + Exports: Implement optional WireGuard support | jwijenbergh | |
| 2022-10-19 | OAuth + Server: Fix ISS for secure internet | jwijenbergh | |
| The wrong base url was used. Use the one from the home server NOT the current location | |||
| 2022-10-19 | Refactor: Make errors use the parent's error level | jwijenbergh | |
| - All wrapped errors have to be created with types.NewWrappedError to inherit the error level from the parent - Or types.NewWrappedErrorLevel can be used which means a custom error level is given. For example this is done with cancelling OAuth - Client public errors are forwarded with handleError that also logs it with the error's level | |||
| 2022-10-19 | Discovery + Server: Remove unused 'Raw' strings | jwijenbergh | |
| 2022-10-18 | OAuth: Do not use url.Values Has(), only use Get() | jwijenbergh | |
| Has() was only added in Go 1.17 | |||
| 2022-10-17 | Client + Server: Delete tokens before attempting a login for renew | jwijenbergh | |
| 2022-10-17 | Server + Util: Ensure the base URL already ends with a / | jwijenbergh | |
| 2022-10-17 | OAuth: Use values Has and Get functions and check state after ISS | jwijenbergh | |
| 2022-10-17 | OAuth: Implement Authorization Server Issuer Identification (ISS) | jwijenbergh | |
| - This patch implements ISS checking according to RFC 9207 https://datatracker.ietf.org/doc/html/rfc9207 - This tries to prevent so called "mix-up" attacks where the client is fooled into authorizing with an honest AS through a malicious entity | |||
| 2022-10-13 | OAuth: Add a TODO note about ISS | jwijenbergh | |
| 2022-10-13 | OAuth: Wrap template errors | jwijenbergh | |
| 2022-10-13 | OAuth: Return HTML response on authorized | jwijenbergh | |
| HTML Template adapted from: https://github.com/eduvpn/apple/blob/5b18f834be7aebfed00570ae0c2f7bcbaf1c69cc/EduVPN/Helpers/Mac/OAuthRedirectHTTPHandler.m#L25 | |||
| 2022-10-13 | Server API: Use default timeout for /disconnect | jwijenbergh | |
| 2022-10-13 | Format: Run gofumpt | jwijenbergh | |
| 2022-10-13 | Client + Config + FSM: Simplify file names | jwijenbergh | |
| 2022-10-11 | Client + Server: Set the current institute / custom server on adding | jwijenbergh | |
| 2022-10-11 | Client: Refactor out adding a Server from getting a config | jwijenbergh | |
| 2022-10-06 | OAuth: Use an available port instead of the hard-coded 8000 | jwijenbergh | |
| 2022-10-04 | Util Test: Remove function signature comment | jwijenbergh | |
| 2022-10-04 | Server: Implement `prefer_tcp` according to spec | jwijenbergh | |
| 2022-10-04 | Refactor: Renmae force TCP to prefer TCP | jwijenbergh | |
| 2022-09-27 | Log: Add 'inherit' that sets the error level as the log level | jwijenbergh | |
| 2022-09-26 | OAuth: Verifier and State docs improvement | jwijenbergh | |
