grafana/pkg/apimachinery/identity
Claudiu Dragalina-Paraipan a8b07b0c81
[authn] use authlib client+interceptors for in-proc mode (#93124)
* Add authlib gRPC authenticators for in-proc mode

* implement `StaticRequester` signing in the unified resource client
- [x] when the `claims.AuthInfo` value type is `identity.StaticRequester`, and there's no ID token set, create an internal token and sign it with symmetrical key. This is a workaround for `go-jose` not offering the possibility to create an unsigned token.
- [x] update `IDClaimsWrapper` to support the scenario above
- [x] Switch to using `claims.From()` in `dashboardSqlAccess.SaveDashboard()`

---------

Co-authored-by: gamab <gabriel.mabille@grafana.com>
2024-09-24 09:03:48 +03:00
..
context_test.go
context.go Auth: Use claims.AuthInfo in requester (#91739) 2024-08-09 19:46:56 +03:00
error.go Identity: remove GetTypedID (#91745) 2024-08-09 18:20:24 +03:00
requester.go Auth: remove id token flag (#92209) 2024-08-21 16:30:17 +03:00
role_type.go
static.go [authn] use authlib client+interceptors for in-proc mode (#93124) 2024-09-24 09:03:48 +03:00
typed_id.go Identity: Remove typed id (#91801) 2024-08-13 10:18:28 +02:00
wrapper.go [authn] use authlib client+interceptors for in-proc mode (#93124) 2024-09-24 09:03:48 +03:00