OAuth: Fix for wrong user token updated on OAuth refresh in DS proxy (#17541)

(cherry picked from commit 151fe240fc)
This commit is contained in:
Maxim Ivanov
2019-06-12 12:47:38 +01:00
committed by gotjosh
parent 22a991ff66
commit c533ec7dea
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -354,7 +354,7 @@ func addOAuthPassThruAuth(c *m.ReqContext, req *http.Request) {
// If the tokens are not the same, update the entry in the DB
if token.AccessToken != authInfoQuery.Result.OAuthAccessToken {
updateAuthCommand := &m.UpdateAuthInfoCommand{
UserId: authInfoQuery.Result.Id,
UserId: authInfoQuery.Result.UserId,
AuthModule: authInfoQuery.Result.AuthModule,
AuthId: authInfoQuery.Result.AuthId,
OAuthToken: token,