grafana/pkg/services/authn/clients
Jo 5340a6e548
Auth: Extended JWT client for OBO and Service Authentication (#83814)
* reenable ext-jwt-client

* fixup settings struct

* add user and service auth

* lint up

* add user auth to grafana ext

* fixes

* Populate token permissions

Co-authored-by: jguer <joao.guerreiro@grafana.com>

* fix tests

* fix lint

* small prealloc

* small prealloc

* use special namespace for access policies

* fix access policy auth

* fix tests

* fix uncalled settings expander

* add feature toggle

* small feedback fixes

* rename entitlements to permissions

* add authlibn

* allow viewing the signed in user info for non user namespace

* fix invalid namespacedID

* use authlib as verifier for tokens

* Update pkg/services/authn/clients/ext_jwt.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* Update pkg/services/authn/clients/ext_jwt_test.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* fix parameter names

* change asserts to normal package

* add rule for assert

* fix ownerships

* Local diff

* test and lint

* Fix test

* Fix ac test

* Fix pluginproxy test

* Revert testdata changes

* Force revert on test data

---------

Co-authored-by: gamab <gabriel.mabille@grafana.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-04-02 17:45:15 +02:00
..
api_key_test.go AuthN: Use sync hook to fetch service account (#84078) 2024-03-11 15:56:53 +01:00
api_key.go AuthN: Use sync hook to fetch service account (#84078) 2024-03-11 15:56:53 +01:00
basic_test.go AuthN: Remove embedded oauth server (#83146) 2024-02-26 11:29:09 +01:00
basic.go AuthN: Remove embedded oauth server (#83146) 2024-02-26 11:29:09 +01:00
constants.go Chore: Add errutils helpers (#73577) 2023-08-22 12:52:24 +02:00
ext_jwt_test.go Auth: Extended JWT client for OBO and Service Authentication (#83814) 2024-04-02 17:45:15 +02:00
ext_jwt.go Auth: Extended JWT client for OBO and Service Authentication (#83814) 2024-04-02 17:45:15 +02:00
form_test.go AuthN: Perform login with authn.Service (#61466) 2023-01-17 09:11:45 +01:00
form.go Chore: Add errutils helpers (#73577) 2023-08-22 12:52:24 +02:00
grafana_test.go AuthProxy: Allow disabling Auth Proxy cache (#83755) 2024-03-01 11:31:06 +01:00
grafana.go AuthProxy: Allow disabling Auth Proxy cache (#83755) 2024-03-01 11:31:06 +01:00
identity.go Authn: Add function to resolve identity from org and namespace id (#84555) 2024-03-15 15:08:15 +01:00
jwt_test.go JWT: Find login and email claims with JMESPATH (#85305) 2024-03-28 17:25:26 +01:00
jwt.go JWT: Find login and email claims with JMESPATH (#85305) 2024-03-28 17:25:26 +01:00
ldap_test.go Login: refactor auth info package (#78459) 2023-11-21 14:47:23 +01:00
ldap.go AuthN: Change EnableDisabledUserHook to EnableUserHook (#75248) 2023-09-27 11:16:53 +02:00
oauth_test.go OAuth: Make sub claim required for generic oauth behind feature toggle (#85065) 2024-03-25 14:22:24 +01:00
oauth.go OAuth: Make sub claim required for generic oauth behind feature toggle (#85065) 2024-03-25 14:22:24 +01:00
password_test.go Authn: Standardize errors (#74012) 2023-08-29 15:44:04 +02:00
password.go Authn: Standardize errors (#74012) 2023-08-29 15:44:04 +02:00
proxy_test.go AuthProxy: Allow disabling Auth Proxy cache (#83755) 2024-03-01 11:31:06 +01:00
proxy.go AuthProxy: Allow disabling Auth Proxy cache (#83755) 2024-03-01 11:31:06 +01:00
render_test.go AuthN: Use fetch user sync hook for render keys connected to a user (#84080) 2024-03-12 09:15:14 +01:00
render.go AuthN: Use fetch user sync hook for render keys connected to a user (#84080) 2024-03-12 09:15:14 +01:00
session_test.go AuthToken: Remove client token rotation feature toggle (#82886) 2024-02-16 15:03:37 +01:00
session.go AuthToken: Remove client token rotation feature toggle (#82886) 2024-02-16 15:03:37 +01:00
utils.go AuthN: add flag for org roles sync (#63507) 2023-02-22 10:27:48 +01:00