1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-10-19 11:15:48 +02:00
juanfont.headscale/hscontrol/types
Fredrik Ekre 5d8a2c25ea OIDC: Query userinfo endpoint before verifying user
This patch includes some changes to the OIDC integration in particular:
 - Make sure that userinfo claims are queried *before* comparing the
   user with the configured allowed groups, email and email domain.
 - Update user with group claim from the userinfo endpoint which is
   required for allowed groups to work correctly. This is essentially a
   continuation of #2545.
 - Let userinfo claims take precedence over id token claims.

With these changes I have verified that Headscale works as expected
together with Authelia without the documented escape hatch [0], i.e.
everything works even if the id token only contain the iss and sub
claims.

[0]: https://www.authelia.com/integration/openid-connect/headscale/#configuration-escape-hatch
2025-08-11 17:51:16 +02:00
..
change mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
testdata Restore support for "Override local DNS" (#2438) 2025-04-17 17:16:59 +02:00
api_key.go Split code into modules 2023-05-26 12:24:50 +02:00
common_test.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
common.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
config_test.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
config.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
const.go improve testing of route failover logic 2024-04-15 12:31:53 +02:00
node_test.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
node.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
policy.go feat: implements apis for managing headscale policy (#1792) 2024-07-18 07:38:25 +02:00
preauth_key_test.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
preauth_key.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
routes.go Redo route code (#2422) 2025-02-26 16:22:55 +01:00
types_clone.go all: use immutable node view in read path 2025-07-07 21:28:59 +01:00
types_view.go all: use immutable node view in read path 2025-07-07 21:28:59 +01:00
users_test.go users: harden, test, and add cleaner of identifier (#2593) 2025-05-14 16:45:14 +02:00
users.go OIDC: Query userinfo endpoint before verifying user 2025-08-11 17:51:16 +02:00
version.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00