Karl Persson
43b6b6b2a4
IDForwarding: add "authenticatedBy" to id token ( #80622 )
...
* IDForwading: Set authenticated by for users
2024-01-17 09:52:05 +01:00
Vardan Torosyan
63cd5a5625
Chore: Cleanup namespace and ID resolution ( #79360 )
...
* Chore: Cleanup namespace ID resolution
* Check for negative userID when relevant
* Reuse existing function for parsing ID as int
* Fix imports
2023-12-21 20:42:05 +01:00
Ryan McKinley
f69fd3726b
FeatureToggles: Add context and and an explicit global check ( #78081 )
2023-11-14 12:50:27 -08:00
Karl Persson
e2ba399e30
IDForwarding: Use single flight for SignIdentity ( #76530 )
...
* IDForwarding: Use single flight for SignIdentity
* Update cache inside single flight call
2023-10-13 14:32:53 +02:00
Karl Persson
ea741dda6b
Signingkeys: Add local cache ( #76234 )
...
* IDForwarding: change audience to be prefixed by org and remove JTI
* IDForwarding: Construct new signer each time we want to sign a token.
* SigningKeys: Simplify storage layer and move logic to service
* SigningKeys: Add private key to local cache
2023-10-10 14:17:16 +02:00
Karl Persson
a2d4ce18ad
IDForwarding: Add basic metrics ( #75798 )
...
* IDService: Add basic metrics
* IDService: Add more metrics
---------
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
2023-10-05 09:17:40 +02:00
Karl Persson
fd2235b5ad
AuthN: Implement requester interface for identity ( #75618 )
...
* AuthN: Implement identity.Requester interface for authn.Identity
* AuthN: Replace OrgRole with GetOrgRole
* IDForwarding: skip converting to SignedInUser
* Pass identity directly in permission sync hook
2023-09-28 16:37:32 +02:00
Karl Persson
b9b4246432
IDForwarding: Add auth hook to generate id token ( #75555 )
...
* AuthN: Move identity struct to its own file
* IDForwarding: Add IDToken property to usr and identity structs and add GetIDToken to requester interface
* Inject IDService into background services
* IDForwarding: Register post auth hook when feature toggle is enabled
2023-09-28 09:22:05 +02:00
Karl Persson
b50f1e15a8
IDForwarding: Add service and a local signer ( #75423 )
...
* IDForwarding: Add service for handling id token and create a local signer
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2023-09-27 11:36:23 +02:00