Commit Graph

18 Commits (7ef12da4fa06953610764fea5eebe3131a765072)

Author SHA1 Message Date
Jan Dittberner 7ef12da4fa Fix subject handling for login requests
This change implements handling for the case that a login request
retrieved from Hydra has a pre-defined subject. The login request is
rejected if the requested subject is not part of the presented client
certificate.
3 months ago
Jan Dittberner 1e676e8cf1 Switch logging to slog
This commit replaces logrus with slog from the Go standard library.
3 months ago
Jan Dittberner f22f8ff902 Update golangci-lint, fix warnings
- remove copyright years
- mark unused parameter with _
- add missing empty lines before expressions
3 months ago
Jan Dittberner 56ff01600f Improve consent handling
- hide client logo if there is no logo URI
- hide client information link if there is no client URI
- use buttons instead of a checkbox for consent
- use Markdown for messages
1 year 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
1 year ago
Jan Dittberner 679dcb27ce Adapt to Hydra 2.x
- use new SDK package
- add session to transport user information from login to consent
1 year ago
Jan Dittberner e2de4243a9 Enforce email address selection
This commit makes sure that an email address is selected when the user
presents a client certificate with multiple email addresses.
1 year ago
Jan Dittberner 962dd30c6a Fix golangci-lint config 1 year ago
Jan Dittberner 79ab816489 Implement rendering of authorization server errors 1 year ago
Jan Dittberner 63e3333c4d Rename module to match Git repository URL 1 year ago
Jan Dittberner cb7a3a8fa5 Re-order configuration precedence 1 year ago
Jan Dittberner 4618ebfe10 Fix golangci-lint warning 1 year ago
Jan Dittberner 26bfcc225e Improve logging
- switch to structured logging
- use JSON formatter
- support log level and formatter configuration
1 year ago
Jan Dittberner d23290b13b Move default configuration 1 year ago
Jan Dittberner c727bc39d7 Minor documentation and code improvements
- fix name of certificate in README
- avoid unneeded variable declaration in internal/services/i18n.go
1 year ago
Jan Dittberner ab2e3c33b5 Implement logout-successful handler 1 year ago
Jan Dittberner fe1914fd89 Move Markdown parsing to i18n service 1 year ago
Jan Dittberner 16a3dbedc8 Small IDP refactoring
- move internal code to internal directory
- add translations for texts on missing email in client certificate page
- add error handling for missing login_challenge request parameter
- add Markdown support via goldmark
- use https:// URLs in Apache license headers
1 year ago