简体   繁体   English

适用于Google日历的Android中的OAuth 2.0令牌类型别名

[英]OAuth 2.0 Token type alias in Android for Google Calendar

I'm developing an Android application which uses the AccountManager to get access to the User's Google Calendar. 我正在开发一个Android应用程序,该应用程序使用AccountManager来访问用户的Google日历。 I'm using the Java Calendar API version 3. I have a working sample however the Authorization token type I use to obtain permission from the user is not human readable, currently I use: 我正在使用Java Calendar API版本3。我有一个工作示例,但是我用来从用户那里获得许可的Authorization令牌类型不是人类可读的,当前我使用:

    private static final String AUTH_TOKEN_TYPE = "oauth2:https://www.googleapis.com/auth/calendar";    

So I'm trying to find a human readable token type as this doesn't give the user a good indication of what permission they are giving to the application. 因此,我试图找到一种人类可读的令牌类型,因为这不能给用户一个很好的指示,即他们向应用程序授予了什么权限。 There is an alias for Google Tasks as detailed in this blog post - 'Manage your tasks' is used. 本博客文章中详细介绍了Google任务的别名-使用“管理您的任务”。 Is there a similar alias for Google Calendar on Android? Android上的Google日历是否有类似的别名?

Try "Manage your calendars" if you want to view and manage the user's calendar. 如果要查看和管理用户的日历,请尝试“管理日历”。 Otherwise use the less powerful "View your calendars" which gives you read-only access. 否则,使用功能较弱的“查看您的日历”,它使您具有只读访问权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM