device_oauth2_token_service.mojom 666 B

1234567891011121314151617
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. module crosapi.mojom;
  5. import "chromeos/crosapi/mojom/account_manager.mojom";
  6. // This API allows lacros-chrome to access the device oauth2 token service that
  7. // lives in ash, in particular to fetch access tokens for the device (robot)
  8. // account.
  9. [Stable, Uuid="8a5c7a88-ac87-4625-a314-19fa56f01678"]
  10. interface DeviceOAuth2TokenService {
  11. // Returns an access token for the ChromeOS device account.
  12. FetchAccessTokenForDeviceAccount@0(array<string> scopes) =>
  13. (AccessTokenResult result);
  14. };