jjzjj

GoogleAuthException

全部标签

android - GoogleAuthException 未知来源

我正在使用GoogleUtilAuth.getToken()生成token。我还生成了两个客户端ID,一个用于网页,一个用于Android应用程序,两者都在同一个项目中。点击此链接verificationfrombackendserver这是我的代码:packagecom.example.tokengenerate;importjava.io.IOException;importcom.google.android.gms.auth.GoogleAuthException;importcom.google.android.gms.auth.GoogleAuthUtil;importco

java - 尝试获取授权 token 时出现未知的 GoogleAuthException

我试图在Android上使用他们的sdk从Google+获取授权token,但它总是引发“GoogleAuthExceptionUnknown”这是我使用的代码:privatestaticfinalStringLOGIN_SCOPES="https://www.googleapis.com/auth/plus.login"+"https://www.googleapis.com/auth/userinfo.email";protectedstaticfinalStringSCOPES="oauth2:server:client_id:"+BuildConfig.GOOGLE_SERVE

android - 检索到访问 token :null. com.google.android.gms.auth.GoogleAuthException:未知

我的应用程序允许用户使用GooglePlus登录,并获取他们的姓名和电子邮件地址。我试图访问token。访问token的代码:Toast.makeText(this,"Userisconnected!",Toast.LENGTH_LONG).show();GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());AccountManageram=AccountManager.get(this);finalAccount[]accounts=am.getAccountsByType(Goog

Android Google+ 无法获取授权码

我正在尝试根据这篇文章获取Google+授权码:Server-sideaccessforyourapp.但是,每当我运行我的应用程序并尝试获取代码时,我都会在LogCat中得到以下内容:07-2323:42:31.760:E/getAccessToken()(11114):[ERROR]GoogleAuthException:com.google.android.gms.auth.GoogleAuthException:Unknown我浏览了很多东西,据我所知,我已经在下面的代码中正确设置了所有内容。为什么它没有获得授权token有什么想法吗?仅供引用,我在API控制台中设置了一个项目

android - 使用 ClientID 获取访问 token 时出现 GoogleAuthException

有关更多上下文,这篇文章遵循thisone.为了解决我之前的问题,我尝试按照TimBray在此处提供的解决方案:VerifyingBack-EndCallsfromAndroidApps我在GoogleAPI控制台中声明了两个项目以获取两个客户端ID第一个是“Web应用程序”,以“localhost”作为主机名(这重要吗?)客户端ID:XXXXXXXXXX.apps.googleusercontent.com第二个是Android应用程序,在AndroidManifest.xml中指定了包名称和SHA1指纹(尝试使用debug.keystore和[my].keystore)客户端ID:

android - com.google.android.gms.auth.GoogleAuthException : getToken(Unknown Source) exception

在我的Android应用程序中,我正在尝试获取googletoken以在我的google应用引擎后端服务器上进行验证。但我总是得到这个异常(exception):com.google.android.gms.auth.GoogleAuthException:getToken(UnknownSource)exception我的代码:privateAccountmAccount=AccountManager.get(this).getAccountsByType(GoogleAuthUtil.GOOGLE_ACCOUNT_TYPE)[0];privatestaticfinalStringS

android - com.google.android.gms.auth.GoogleAuthException : getToken(Unknown Source) exception

在我的Android应用程序中,我正在尝试获取googletoken以在我的google应用引擎后端服务器上进行验证。但我总是得到这个异常(exception):com.google.android.gms.auth.GoogleAuthException:getToken(UnknownSource)exception我的代码:privateAccountmAccount=AccountManager.get(this).getAccountsByType(GoogleAuthUtil.GOOGLE_ACCOUNT_TYPE)[0];privatestaticfinalStringS

android - GoogleAuthException : Unknown (android)

我有android、google授权问题(类似于.GoogleAuthException:UnknownwhiledoingGoogleSSO.-没有答案):09-2900:04:38.328:W/System.err(15623):com.google.android.gms.auth.GoogleAuthException:Unknown09-2900:04:38.328:W/System.err(15623):atcom.google.android.gms.auth.GoogleAuthUtil.getToken(UnknownSource)当我执行以下代码时,它是可重现的:S

android - GoogleAuthException : Unknown (android)

我有android、google授权问题(类似于.GoogleAuthException:UnknownwhiledoingGoogleSSO.-没有答案):09-2900:04:38.328:W/System.err(15623):com.google.android.gms.auth.GoogleAuthException:Unknown09-2900:04:38.328:W/System.err(15623):atcom.google.android.gms.auth.GoogleAuthUtil.getToken(UnknownSource)当我执行以下代码时,它是可重现的:S

android - com.google.android.gms.auth.GoogleAuthException : Unknown

我正在尝试使用Oauth2对登录到我的设备的google用户进行身份验证。我已经创建了客户端ID,但无法获得预期的结果。代码是:StringmScope="oauth2:server:client_id:NNNNNNNNNNN.apps.googleusercontent.com:api_scope:https://www.googleapis.com/auth/plus.login";protectedVoiddoInBackground(String...accountName){Log.i("InsideonAsynTask:","Iamhere");StringaccName=
12