最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Is it expected that Google produces the same resource ID from Watch API when using Domain Wide Delegation - Stack Overflow

programmeradmin1浏览0评论

Using a service account, I'm impersonating users (non-service accounts) in my domain, and subscribing to the Watch API of their primary calendar.

Google is returning the same resource ID for each user's calendar, as well as the same sync token. Is this expected?

This is how I get the credentials of the DWD'd user:

    private GoogleCredentials getDelegatedCredentials(List<String> scopes, User impersonatedUser) throws IOException {
        GoogleCredentials credentials = GoogleCredentials.getApplicationDefault()
                .createDelegated(impersonatedUser.email())
                .createScoped(scopes);

        credentials.refresh();

        return credentials;
    }

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论