grafana/pkg/services/ssosettings
colin-stuart 062e772bb2
Auth: Implement the SSO Settings GET endpoint (#79144)
* Return data in camelCase from the OAuth fb strategy

* changes

* wip

* Add defaults for oauth fb strategy

* revert other changes

* basic includeDefaults query param implementation

* basic secret removal and etag implementation

* correct imports

* rebase

* move default settings filter to models

* only replace ClientSecret value if set

* first GetForProvider test & use FNV for ETag to avoid Blocklisted import error

* add tests

* add annotation for the openapi spec & generate spec

* remove TODO

* use IsSecret, improve tests, remove DefaultOAuthSettings

* add comment explaining generateFNVETag

* add error handling for generateFNVETag

* run go generate

* Update pkg/services/ssosettings/api/api.go

Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com>

* move isSecret to service, create GetForProviderWithRedactedSecrets func

* add unit test for GetForProviderWithRedactedSecrets & remove duplicated code

* regen openapi/swagger

* revert dependency bumps

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com>
2024-01-08 09:35:14 -05:00
..
api Auth: Implement the SSO Settings GET endpoint (#79144) 2024-01-08 09:35:14 -05:00
database Auth: Fix flaky tests that are mocking time.Now() from SSO Settings (#79581) 2023-12-18 11:10:46 +02:00
models Auth: Implement the SSO Settings GET endpoint (#79144) 2024-01-08 09:35:14 -05:00
ssosettingsimpl Auth: Implement the SSO Settings GET endpoint (#79144) 2024-01-08 09:35:14 -05:00
ssosettingstests Auth: Implement the SSO Settings GET endpoint (#79144) 2024-01-08 09:35:14 -05:00
strategies Auth: Use cfg.Raw in OAuthStrategy for loading settings (#80136) 2024-01-08 15:36:15 +02:00
errors.go Auth: Implement the SSO Settings update endpoint (#79676) 2024-01-03 13:04:35 +02:00
ssosettings.go Auth: Implement the SSO Settings GET endpoint (#79144) 2024-01-08 09:35:14 -05:00