forgejo/services/auth/source/oauth2
Nils Goroll 180bd488e1 chore: Add JWT() method for convenience and clarity (#11067)
This slightly simplifies calling code by centralizing the common 3-liner to create a JWT from claims, signed by a key.

But more importantly, it reduces the risk of `key.PreProcessToken()` being forgotten, which will become relevant in upcoming PRs:

`key.PreProcessToken()` adds the key id to the JWT header, which is important to efficiently validate tokens when multiple validation keys are supported (that is not the case yet)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11067
Co-authored-by: Nils Goroll <nils.goroll@uplex.de>
Co-committed-by: Nils Goroll <nils.goroll@uplex.de>
2026-02-07 01:01:30 +01:00
..
assert_interface_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
init.go feat: add OIDC workload identity federation support (#10481) 2026-01-15 03:39:00 +01:00
providers.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
providers_base.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
providers_custom.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
providers_openid.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
providers_simple.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
source.go feat: allow sync quota groups with oauth2 auth source (#8554) 2025-12-01 14:12:00 +01:00
source_authenticate.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
source_callout.go feat: implement PKCE when acting as oauth2 client (for user login) 2024-04-29 11:20:26 +02:00
source_name.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
source_register.go Handle OpenID discovery URL errors a little nicer when creating/editing sources (#23397) 2023-03-10 01:14:43 -05:00
store.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
token.go chore: Add JWT() method for convenience and clarity (#11067) 2026-02-07 01:01:30 +01:00
urlmapping.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00