我正在尝试获取 Google Marketplace 应用程序以获取运行 Provisioning API 的权限。在测试域上安装时,安装过程会跳过授予访问部分,并且似乎没有提供所需的权限。该文档似乎表明添加具有正确 url 的范围标记足以让新安装授予对该域的访问权限。该应用程序尚未列出。
这是应用程序清单:
<?xml version="1.0" encoding="UTF-8" ?>
<ApplicationManifest xmlns="http://schemas.google.com/ApplicationManifest/2009">
<Name>App</Name>
<Description>My Cool App</Description>
<Support>
<Link rel="support" href="http://www.example.com/support" />
</Support>
<Extension id="navLink" type="link">
<Name>App</Name>
<Url>http://www.example.com/</Url>
<Scope ref="userprovisioning" />
</Extension>
<!-- Declare our OpenID realm so our app is white listed -->
<Extension id="realm" type="openIdRealm">
<Url>http://www.example.com/</Url>
</Extension>
<Edition id="free">
<Name>Free edition</Name>
</Edition>
<Scope id="userprovisioning">
<Url>https://apps-apis.google.com/a/feeds/user/#readonly</Url>
<Reason>This application lets you see people in your domain.</Reason>
</Scope>
</ApplicationManifest>