Karl Persson
0fa983ad8e
AuthN: Use typed namespace id inside authn package ( #86048 )
...
* authn: Use typed namespace id inside package
2024-04-24 09:57:34 +02:00
Gabriel MABILLE
596e828150
Fix: Refresh token when id_token is expired ( #79569 )
...
* Fix: Refresh token when id_token is expired
* add id_token comparison
* Fix wire
* Use userID as cache key
* Apply suggestions from code review
---------
Co-authored-by: linoman <2051016+linoman@users.noreply.github.com>
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
2024-02-05 16:44:25 +01:00
Jo
9f5a8bf926
AuthInfo: Revert #81013 . Fix cache invalidation ( #81050 )
...
* Revert "Auth: Revert "Auth: Cache Auth Info" (#81013 )"
This reverts commit ce84f7c540
.
* fix cache invalidation during user takeover
* fix incomplete test
2024-01-23 15:26:38 +01:00
Misi
ce84f7c540
Auth: Revert "Auth: Cache Auth Info" ( #81013 )
...
Revert "Auth: Cache Auth Info"
2024-01-22 21:25:24 +02:00
Jo
c767481dee
Auth: Cache Auth Info ( #80620 )
...
* leverage cache for auth info
* fix tests and integration
* fix panic
* fix panic
2024-01-18 15:22:19 +01:00
Misi
50f4e78a39
Auth: Use SSO settings service to load social connectors + refactor ( #79005 )
...
* Refactor to prevent cyclic dependencies
* Move list authorization to the API layer
* Init connectors using the SSO settings service in case the ssoSettingsApi feature toggle is enabled
* wip, need to handle the cyclic dep
* Remove cyclic dependency
* Align tests + refactor
* Move back OAuthInfo to social
* Delete pkg/login/social/constants
* Move reloadable registration to the social providers
* Rename connectors.Error to connectors.SocialError
2023-12-08 11:20:42 +01:00
Karl Persson
1eb19befaa
Login: refactor auth info package ( #78459 )
...
* Remove unused stats and metrics
* No longer collect metrics
* Remove unused dependency
* Move database from sub package
2023-11-21 14:47:23 +01:00
Karl Persson
d42201dbf4
Login: remove unused function ( #78442 )
...
* Move test to the db so we test the queries and not just testing the mock
* Remove unused function and dependencies
* Remove unused functions from the database
* Add some integration tests
2023-11-21 11:44:13 +01:00
Karl Persson
a929e3f2cf
Auth: Remove unused function ( #78332 )
...
Remove unused function
2023-11-17 17:07:39 +01:00
Misi
bd2191c158
Auth: OAuth token sync improvements ( #75943 )
...
* Add metric, improve token refresh
* changes
* handle ctx cancelled
* Fix import order
2023-10-05 11:19:43 +02:00
Jo
fe1563882a
Chore: Port oauth token service to identity requester ( #73988 )
...
* port oauth token service to identity requester
* fix broken test
* no need to check for render
2023-08-29 11:55:58 +02:00
Misi
dcf26564db
OAuth: Introduce user_refresh_token setting and make it default for the selected providers ( #71533 )
...
* First changes
* WIP docs
* Align current tests
* Add test for UseRefreshToken
* Update docs
* Fix
* Remove unnecessary AuthCodeURL from generic_oauth
* Change GitHub to disable use_refresh_token by default
2023-07-14 14:03:01 +02:00
Jo
914daef0fd
Auth: Add request context to UserInfo calls ( #70007 )
...
* use context for UserInfo requests
* set timeouts for oauth http client
* Update pkg/login/social/common.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-06-14 14:30:40 +02:00
Serge Zaitsev
a38f230d37
Chore: Remove result fields from login ( #65136 )
...
* remove result fields from login
* fix tests
* fix tests
* another shadowing
2023-03-28 20:32:21 +02:00
Jo
ccbf200c4a
SupportBundles: Add OAuth bundle collectors ( #64810 )
...
* wip
* add oauth support bundles
* add specific configs for generic oauth and azureAD
* add doc entry
* optimize struct packing
* Update pkg/login/social/azuread_oauth.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
* nit update
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-03-16 09:46:25 +02:00
Kristin Laemmert
9256a520a4
chore: move user_auth models to (mostly) login service ( #62269 )
...
* chore: move user_auth models to (mostly) login service
2023-01-27 13:36:54 -05:00
linoman
6cc56311d9
Auth: Display id Provider label in orgs/users view ( #58033 )
...
* Add frontend test
* Add frontend label component
* Adjust backend tests
* Retrieve auth IDP labels for users at org/users.
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
Co-authored-by: Kalle <kalleep@users.noreply.github.com>
Co-authored-by: Jo <Jguer@users.noreply.github.com>
2022-11-29 15:20:28 +01:00
Misi
9c954d06ab
Auth: Refresh OAuth access_token automatically using the refresh_token ( #56076 )
...
* Verify OAuth token expiration for oauth users in the ctx handler middleware
* Use refresh token to get a new access token
* Refactor oauth_token.go
* Add tests for the middleware changes
* Align other tests
* Add tests, wip
* Add more tests
* Add InvalidateOAuthTokens method
* Fix ExpiryDate update to default
* Invalidate OAuth tokens during logout
* Improve logout
* Add more comments
* Cleanup
* Fix import order
* Add error to HasOAuthEntry return values
* add dev debug logs
* Fix tests
Co-authored-by: jguer <joao.guerreiro@grafana.com>
2022-10-18 18:17:28 +02:00