Commit graph

12 commits

Author SHA1 Message Date
c607cdae94 Update linter, remove copyright years
Git has all history information, copyright years don't provide useful additional information.
2024-05-12 10:20:06 +02:00
815c8e792a Use oauth2.AuthCodeURL to simplify Authenticate 2023-08-03 23:54:03 +02:00
7ec9e393e0 Add separate protected resource page
This commit adds a separate protected resource page to demonstrate how
to selectively require logins.

Add code to improve client performance by providing modification timestamps
and Cache-Control headers for embedded static files.
2023-08-03 16:46:28 +02:00
9ad06a2935 Improve token handling
- add identity information to the index page
- let the session expire when the token expires
2023-07-30 16:48:26 +02:00
4339baee85 Fix logged application name 2023-07-29 20:23:55 +02:00
1b0c4a7470 Use structured logging consistently 2023-07-29 18:34:40 +02:00
c6177c4d18 Add support for JSON logging 2023-07-29 17:58:09 +02:00
43f32731f6 Move internal packages 2023-07-29 17:53:26 +02:00
25b101afae Modernize demo application
- add linter config and fix golangci-lint warnings
- rename module to match new repository location
- use embedded resources for static assets, templates and translations
- recommend mkcert in README
- require at least Go 1.19
- update and tidy dependencies
- update copyright information
- improve Makefile, add lint and static asset targets
2023-07-29 17:46:33 +02:00
c69e8d2980 Fix useless err parameter 2022-01-16 14:02:20 +01:00
ff4396e6b1 Extract session setup into function 2021-09-19 19:55:00 +02:00
3bb3b2db0c Initial OIDC resource app
- copied/stripped down from
  https://git.dittberner.info/jan/hydra_oidc_poc
2021-09-11 13:37:31 +02:00