草庐IT

mx-oauth-basic

全部标签

android - Android 中的两条腿 Oauth

为了连接到使用双向Oauth的Web服务,我需要使用哪些外部库(如果有)?此外,如果有人有任何关于如何进行身份验证的示例代码,我将不胜感激。我见过的所有示例(主要是Twitter)都使用带token的三足Oauth等。谢谢! 最佳答案 您可以使用此页面中的示例:https://dev.twitter.com/docs/auth/oauth/single-user-with-examples 关于android-Android中的两条腿Oauth,我们在StackOverflow上找到一个

带有 SMTP 传输连接的 Android Oauth 异常,Android 版本 2.3

当我在添加新的AUTHXOAUTH2命令后尝试运行我的android项目时出现以下错误。我正在使用带有操作系统版本2.3的android设备,但相同的代码在android4.0上运行良好publicSMTPTransportconnectToSmtp(Stringhost,intport,StringuserEmail,StringoauthToken,booleandebug)throwsException{Propertiesprops=newProperties();props.put("mail.smtp.starttls.enable","true");props.put("

android - 获取可与服务器共享的 OAuth2 授权码

我的Android应用程序需要向我的服务器发送授权代码,以便服务器可以使用它来获取用户GoogleDrive帐户的访问token。我一直在努力弄清楚如何获取授权码,我在GoogleAPI文档(UsingOAuth2.0forInstalledApplications)中找到了这个:Thissequencestartsbyredirectingabrowser(systembrowserorembeddedintheapplicationasawebview)toaGoogleURLwithasetofqueryparametersthatindicatethetypeofGoogleA

android - 升级 firebase 后的 OAuth2 问题

我有一个可用的android应用程序(也许说HAD更好)。该应用正在使用一些第三方库,包括:Googlemap、Firebase、firebaseui。将应用程序转换为使用新的firebase后,我偶然发现了两个主要问题:firebaseui登录屏幕已更改,现在看起来像这样(从登录对话框变成Activity):这当然与旧版本完全不同,并且由于某些奇怪的原因与调试构建变体不同。我无法使用google登录,logcat中显示以下错误:com.google.firebase.FirebaseException:Aninternalerrorhasoccured.[OAuth2clientid

android - 模拟器未运行 OpenGL 应用程序,消息为 "Unfortunately, OpenGL ES 2.0 Basic has stopped"

我通过thedevelopersite.得到了一个OpenGl的例子我的问题是它不运行该应用程序。这是我的日志:10-1714:43:12.574:E/Trace(684):erroropeningtracefile:Nosuchfileordirectory(2)10-1714:43:13.523:D/libEGL(684):EmulatorwithoutGPUsupportdetected.Fallbacktosoftwarerenderer.10-1714:43:13.523:D/libEGL(684):loaded/system/lib/egl/libGLES_android.

安卓 OAuth : Exception on retrieveAccessToken()

我正在为我的Android应用设置OAuth。为了测试它,我做了以下事情:将signpost-core-1.2.1.1.jar和signpost-commonshttp4-1.2.1.1.jar添加到我的项目中,添加了变量“CommonsHttpOAuthConsumerconsumer”和“CommonsHttpOAuthProviderprovider”,并在单击按钮时执行以下操作:consumer=newCommonsHttpOAuthConsumer("xxx","yyy");provider=newCommonsHttpOAuthProvider("https://api.t

android - 使用 Google Fit api 时 Google Oauth 2.0 RESULT_CANCELED

我正在尝试在我的Android应用程序中使用googlefitapi。我关注了this在我的jdk1.8bin文件夹中使用keytool.exe指导并创建SHA-1证书。我现在已经创建了Oauth客户端ID.在我的应用中,我在这里得到RESULT_CANCELED:@OverrideprotectedvoidonActivityResult(intrequestCode,intresultCode,Intentdata){super.onActivityResult(requestCode,resultCode,data);if(requestCode==REQUEST_OAUTH){

java - 为什么 gmail oauth 在我的 Android 应用程序中不起作用?

我正在开发一个应用程序,该应用程序执行oauth2身份验证,该身份验证曾经有效,但不幸的是不再有效。据我所知(但不是100%确定)代码没有任何变化,所以我不知道为什么它不再起作用。该应用程序创建一个webview并从我们的服务器加载一个url,该url将其重定向到google以在此url上进行身份验证(只是更改了客户端ID和我的域):https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=1234567890-XXXXXXX.apps.googleusercontent.com&redirect_ur

如果应用程序已获得授权,Android Chrome 自定义选项卡/Fitbit web API 将不会重定向。 (OAuth2.0)

我打算创建第三方fitbit应用程序来同步闹钟。但是,我在注册我的应用程序时遇到了一些困难,更明确地说,即使我的客户已经注册到该应用程序,也无法获取访问token。(考虑用户重新安装其应用程序的场景)。我正在使用Chrome自定义选项卡(因为WebView被FitBit禁止)来请求访问token:Stringurl="https://www.fitbit.com/oauth2/authorize?"+"response_type=token"+"&client_id=XXXXXX"+"&scope=activity"+"&redirect_uri=fitbittester://logi

npm install 提示Unable to authenticate, need: BASIC realm=“Sonatype Nexus Repository Manager“

场景:执行npminstall时提示UnabletoauthenticatePassword:Email:(thisISpublic)xx@qq.comLoggedinasuploaderonhttp://192.168.xx.xxx:8074/repository/npm-internal/.PSD:\GitworkspaceUi\gisquest-cloud-ui-workcenter>npminstallnpmERR!codeE401npmERR!Unabletoauthenticate,need:BASICrealm="SonatypeNexusRepositoryManager"np