grafana/pkg/util
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
..
cmd Packaging: Added deprecation warnings when running grafana-cli or grafana-server; the grafana command should be used instead. (#66976) 2023-04-20 19:51:50 +02:00
cmputil Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
errutil QueryService: Return application/json and better errors (#84234) 2024-03-19 15:52:15 +02:00
osutil Settings: Fix data race when dynamically overriding settings with environment variables (#81667) 2024-02-05 12:25:54 -03:00
proxyutil Auth: Extended JWT client for OBO and Service Authentication (#83814) 2024-04-02 17:45:15 +02:00
retryer Database: Don't sleep 10ms before every request (#64832) 2023-03-27 11:17:05 +02:00
ticker Alerting: Extract ticker into shared package (#55703) 2022-09-26 12:35:33 -05:00
xorm Chore: Sync go workspace (#84932) 2024-03-21 18:34:40 +02:00
contextutil_test.go Chore: Add context util that allow to provide cause of cancellation (#53918) 2022-08-24 10:24:41 -04:00
contextutil.go Chore: Replace go-multierror with errors package (#66432) 2023-06-19 12:29:45 +03:00
encoding_test.go Utils: Reimplement util.GetRandomString to avoid modulo bias (#64481) 2023-04-20 10:24:02 -04:00
encoding.go Utils: Reimplement util.GetRandomString to avoid modulo bias (#64481) 2023-04-20 10:24:02 -04:00
encryption_test.go Fix decrypting secrets in alerting migration (#41061) 2021-10-29 14:20:07 +03:00
encryption.go Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
filepath_test.go Plugins: Make file system path handling in tests OS agnostic (#79651) 2023-12-19 11:01:48 +01:00
filepath.go Plugins: Always load decoupled frontend assets from builds (#81873) 2024-03-13 12:40:09 +01:00
ip_address_test.go Backend: fix IPv6 address parsing erroneous (#28585) 2020-11-25 07:55:22 +01:00
ip_address.go Chore: Remove Wrapf (#50128) 2022-06-06 22:30:31 +02:00
json_test.go JWT Authentication: Add support for specifying groups in auth.jwt for teamsync (#82175) 2024-02-09 16:35:58 +01:00
json.go JWT Authentication: Add support for specifying groups in auth.jwt for teamsync (#82175) 2024-02-09 16:35:58 +01:00
md5_test.go Fix changed want md5 hash 2018-09-21 13:41:03 +02:00
md5.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00
pointer.go Chore: Remove xorcare/pointer dependency (#63900) 2023-03-06 05:23:15 -05:00
reverse_test.go Nested Folders: Add tests for store methods (#57662) 2022-11-03 14:21:41 +01:00
reverse.go Nested Folders: Add tests for store methods (#57662) 2022-11-03 14:21:41 +01:00
shortid_generator_test.go Chore: Generate shorter UIDs (#79843) 2024-01-24 11:27:46 -08:00
shortid_generator.go Chore: Generate shorter UIDs (#79843) 2024-01-24 11:27:46 -08:00
split_email_test.go Test: Create unit test to SplitEmails (#27985) 2020-10-02 08:42:10 +02:00
split_email.go Emails: resurrect template notification (#18686) 2019-08-26 17:19:03 +02:00
strings_test.go Config: Support JSON list syntax (#61288) 2023-01-16 16:03:20 +03:00
strings.go Config: Support JSON list syntax (#61288) 2023-01-16 16:03:20 +03:00
svg.go Chore: remove the entity kind registry (#79178) 2023-12-06 14:00:53 -08:00
tls_test.go HTTP: Add TLS version configurability for Grafana server (#67482) 2023-05-08 17:11:36 +02:00
tls.go HTTP: Add TLS version configurability for Grafana server (#67482) 2023-05-08 17:11:36 +02:00
url_test.go Tests: Change util GoConvey tests to use testify (#26724) 2020-08-13 11:10:48 +02:00
url.go AzureMonitor: Alerting for Azure Application Insights (#19381) 2019-10-07 14:18:14 +02:00
validation_test.go Tests: Change util GoConvey tests to use testify (#26724) 2020-08-13 11:10:48 +02:00
validation.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00