Karl Persson
355f47628f
AuthN: Tune logs in client ( #65714 )
...
* AuthN: Remove log
* AuthN: Check for user not found error in hook
2023-03-31 16:43:24 +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
Karl Persson
d2b19c167b
AuthN: Change error returned when sign up is disabled for provider ( #65110 )
2023-03-21 15:36:53 +02:00
Misi
6543259a7d
Auth: Add SyncPermissions post auth hook ( #64205 )
...
* Add SyncPermissionsFromDB post auth hook
* Delete FromDB prefix
* Align tests
* Fixes
* Change SyncPermissionsHook prio
2023-03-08 13:35:54 +01:00
Karl Persson
4ede9fc7a4
AuthN: User sync info clean up ( #64217 )
...
* AuthN: handle case where auth_info exists but not the user
2023-03-06 14:17:48 +01:00
Karl Persson
e3cbc1f165
AuthN: Fix issue with duplicated auth connection ( #63836 )
...
AuthN: Fix issue with duplicated auth connection when user signed in
first time
2023-02-28 13:34:15 +01:00
Karl Persson
2a7fc3983b
AuthN: cleanup logs ( #63652 )
...
* AuthN: clean up logs
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2023-02-24 11:26:55 +01:00
Karl Persson
16b416b88b
AuthN: Extract enable disabled users logic to its own hook ( #63628 )
2023-02-23 13:06:06 +01:00
Karl Persson
ddaf145d71
AuthN: Fix user sync with multiple client ( #63615 )
...
* AuthN: Fix user sync to handle auth connections to multiple providers
2023-02-23 12:23:51 +01:00
Karl Persson
057d9c45fa
AuthN: Add in-memory cache for oauth token refresh hook ( #63569 )
...
* OAuthSyncHook: Add in-memory cache so we don't have to perform the check on every request
Co-authored-by: Jo <joao.guerreiro@grafana.com >
2023-02-23 09:36:21 +01:00
Karl Persson
207a55be66
AuthN: add flag for org roles sync ( #63507 )
...
* AuthN: Add flag to control org role syncs
* JWT: Only sync org roles if the skip flag for jwt is false
* LDAP: Only sync org role if skip flag for ldap is false
* OAuth: Skip org roles sync if no roles were provided by upstream service
* Grafana: Set SyncOrgRoles to true for authentication through proxy with grafana as backend
2023-02-22 10:27:48 +01:00
Karl Persson
5ca8ea40c1
AuthN: Cleanup authn package ( #63456 )
...
* AuthN: Update comments for ClientParams
* AuthN: Update flag name from SyncTeamMembers to SyncTeams
* UserSync: rename function and fix order of parameters so it is correct
* UserSync: Fix so we skip check if no authModule or authID is passed
* UserSync: move quota check to create user function
* UserSync: Move FetchSyncedUserHook to UserSync
* UserSync: Move last seen user hook to user sync service
* ApiKey: Implement last seen hook as a client hook instead
2023-02-21 11:21:34 +01:00
Karl Persson
180a587f70
AuthN: fetch final state of signed in user ( #62854 )
...
* AuthN: add a hook we can use to fetch final state of user
2023-02-03 14:14:38 +01: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
Jo
ecafb4dd15
Auth forwarding: Pass tokens without refresh ( #61634 )
...
* return only tokens from oauth
* feedback
2023-01-18 10:50:35 +00:00
Karl Persson
412d80b498
AuthN: Add post auth hook for oauth token refresh ( #61608 )
...
* AuthN: rename package to sync
* AuthN: rename sync files
* Ouath: Add mock for OauthTokenService
* AuthN: Implement access token refresh hook
* AuthN: remove feature check from hook
* AuthN: register post auth hook for oauth token refresh
2023-01-18 10:47:09 +01:00