blob: a77509a9e4512eb0d11b279bbe14758b88bbe7f2 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Simplified implementation of the <code>chrome.identity</code> for app_shell.
namespace identity {
dictionary GetAuthTokenDetails {
// Ignored parameter. Exists only for compatibility.
boolean? interactive;
};
// Called with the OAuth2 access token on success or undefined on error.
callback GetAuthTokenCallback = void (optional DOMString token);
interface Functions {
// Returns an OAuth2 access token for the current app_shell user for scopes
// from the manifest. Does not prompt the user.
static void getAuthToken(GetAuthTokenDetails options,
GetAuthTokenCallback callback);
};
};