mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
Add AAD token expiration handling for query runner (#17117)
* Add AAD token refresh for notebook * move token refresh to query management and remove previous refresh calls
This commit is contained in:
@@ -212,7 +212,9 @@ export class QueryManagementService implements IQueryManagementService {
|
||||
}
|
||||
let handler = this._requestHandlers.get(providerId);
|
||||
if (handler) {
|
||||
return action(handler);
|
||||
return this._connectionService.refreshAzureAccountTokenIfNecessary(uri).then(() => {
|
||||
return action(handler);
|
||||
});
|
||||
} else {
|
||||
return Promise.reject(new Error('No Handler Registered'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user