summaryrefslogtreecommitdiff
path: root/internal/util
AgeCommit message (Collapse)Author
2024-02-19Util + OAuth: Delete internal OAuth implementationjwijenbergh
Preparing to move to github.com/jwijenbergh/eduoauth-go
2024-02-19All: Prepare to get rid of go-errors/errors libjwijenbergh
2023-09-25Util: Get rid of language matchingjwijenbergh
2023-02-16HTTP: Incorporate util ensure valid url with clean pathjwijenbergh
2023-01-31Util Test: test for HTTPS rewritejwijenbergh
2023-01-31HTTP + Util: Always set the scheme to HTTPSjwijenbergh
2022-12-12Util: Minor style changesjwijenbergh
2022-12-12simplify error handlingAleksandar Pesic
fixes #6 Signed-off-by: Aleksandar Pesic <peske.nis@gmail.com>
2022-11-28Lint: Use gocritic linter and fix errors returned by itjwijenbergh
2022-11-28Lint: Run godot fixjwijenbergh
Full command: golangci-lint run --disable-all -E godot --fix
2022-11-28Document: Add comments for most functions and packagesjwijenbergh
Errors and test files still need to be done. Also some getters are changed by removing the 'get' prefix
2022-11-24Style: Use stylecheck and fix errorsjwijenbergh
2022-11-24Util: Get rid of current time helperjwijenbergh
Fixes #5
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-17Server + Util: Ensure the base URL already ends with a /jwijenbergh
2022-10-17OAuth: 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-04Util Test: Remove function signature commentjwijenbergh
2022-09-26Refactor: Errors into custom export types and expose typesjwijenbergh
2022-09-20Module: Move to eduvpn/eduvpn-commonjwijenbergh
2022-09-20Golang-ci-lint: Fixesjwijenbergh
2022-09-14Refactor: Return without jsonjwijenbergh
2022-09-12Util: Add testsjwijenbergh
2022-09-12Util: ReplaceWAYF ensure that the template is validjwijenbergh
2022-08-23Formatting: Run golinesjwijenbergh
2022-08-10State + Util: Create a valid URL by ensuring a scheme is presentjwijenbergh
2022-08-09Refactor: Cleanup time calculations and usagejwijenbergh
2022-07-15Util: Create directory with 700 permissionsjwijenbergh
2022-07-07Format: Run gofumptjwijenbergh
2022-07-05Refactor: Handling of different servers and identifiersjwijenbergh
- Uses OrgID for Secure Internet and gets the data from discovery - Uses URL for Institute/Custom and gets the data from discovery - Implements SKIP WAYF as we now have the needed data - Implements an initial change location with a default location (NL right now)
2022-06-20Refactor: Errors to have one custom type that is to be wrappedjwijenbergh
- For this an `internal/types` package is created with a custom error type - This custom error type can give back the cause and traceback of an error
2022-09-20Server: Implement function for checking renewal button visibilityjwijenbergh