Commit Graph

17 Commits (main)

Author SHA1 Message Date
Jan Dittberner e576d981f9 Reduce minimum CSRF key length to 256 bits 3 days ago
Jan Dittberner 1e676e8cf1 Switch logging to slog
This commit replaces logrus with slog from the Go standard library.
3 days ago
Jan Dittberner f22f8ff902 Update golangci-lint, fix warnings
- remove copyright years
- mark unused parameter with _
- add missing empty lines before expressions
3 days ago
Jan Dittberner f3dc4d71d1 Update dependencies 3 days ago
Jan Dittberner 44e18ca3a5 Implement consent management
The primary change in this commit is the introduction of consent management.

A few minor improvements have been made:

- move common header to ui/templates/base.gohtml
- add an I18NService to unify localization
- add a handlers.getLocalizer function
- fix translation extraction and merging in Makefile
- add a new AuthMiddleware to centralize client certificate authentication
- move client certificate handling to internal/handlers/security.go
- improver error handling, allow localization of HTTP error messages
9 months ago
Jan Dittberner 679dcb27ce Adapt to Hydra 2.x
- use new SDK package
- add session to transport user information from login to consent
10 months ago
Jan Dittberner 962dd30c6a Fix golangci-lint config 10 months ago
Jan Dittberner 79ab816489 Implement rendering of authorization server errors 10 months ago
Jan Dittberner 63e3333c4d Rename module to match Git repository URL 10 months ago
Jan Dittberner a0a86f1980 Improve startServer function
- reorder parameters to match other functions
- move context.Background call into function
10 months ago
Jan Dittberner f3be6959ab Extract configureAdminClient function 10 months ago
Jan Dittberner 26bfcc225e Improve logging
- switch to structured logging
- use JSON formatter
- support log level and formatter configuration
10 months ago
Jan Dittberner d23290b13b Move default configuration 10 months ago
Jan Dittberner 9821d34939 Improve documentation and defaults
- recommend `mkcert` to generate certificates for local development
- change default configuration to use files recommended in README.md
- separate server name and bind address to allow binding to a local address
  but publish a different public name
10 months ago
Jan Dittberner ab2e3c33b5 Implement logout-successful handler 10 months ago
Jan Dittberner d74503165e Add build info output at application start 10 months ago
Jan Dittberner 0b59ad9fd4 Add packaging configuration
- add gorelease config
- add commented example configuration
- add service file and postinst script
- rename cmd/idp.go to cmd/idp/main.go
10 months ago