summaryrefslogtreecommitdiff
path: root/internal/server/custom.go
AgeCommit message (Collapse)Author
2024-11-21Replace all links from GitHub to Codebergjwijenbergh
2024-05-08Server: Add a way to pass OAuth start timeJeroen Wijenbergh
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-02-19All: Document everything to pass revive lintjwijenbergh
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
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-04-18Server Custom: Fix invalid wrap erorrjwijenbergh
2023-02-17Refactor: Improve some errors by using errors.New and add contextjwijenbergh
2022-12-12simplify error handlingAleksandar Pesic
fixes #6 Signed-off-by: Aleksandar Pesic <peske.nis@gmail.com>
2022-11-28Formatting: Run golinesjwijenbergh
2022-11-28Refactor: Remove most get prefixes for receiver functionsjwijenbergh
2022-11-24Style: Use stylecheck and fix errorsjwijenbergh
2022-10-19Refactor: Make errors use the parent's error leveljwijenbergh
- 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-13Format: Run gofumptjwijenbergh
2022-10-11Client + Server: Set the current institute / custom server on addingjwijenbergh
2022-10-11Client: Refactor out adding a Server from getting a configjwijenbergh
2022-09-14Refactor: Return without jsonjwijenbergh
2022-08-24State + Server + Exports: Implement removing a serverjwijenbergh