草庐IT

Authentication

全部标签

ios google登录,如何获取用户图片网址?

我正在处理iOS/Swift谷歌登录。我在github做了个demo。我的演示项目:https://github.com/tanggod/GoogleSignIn.git根据google(https://developers.google.com/identity/sign-in/ios/api/interface_g_i_d_profile_data#a8e229bffe211894473058c4ba247553c),用户图片url可以这样获取:(NSURL*)imageURLWithDimension:(NSUInteger)维度获取正方形每一侧给定尺寸(以像素为单位)的用户个人

swift - 使用 Firebase 登录时为 "An error occurred while accessing the keychain"

背景:我正在使用Firebase登录我的应用程序。我正在使用通过电子邮件地址登录的功能。开始使用新的xCodebeta并将代码更新为Swift3后出现错误您可以在这里看到问题的原型(prototype):https://bitbucket.org/gilosborne/firebasetest错误:当我尝试登录时出现错误,“访问钥匙串(keychain)时发生错误”。我没有以任何方式使用Apple钥匙串(keychain),我相信它指的是这里提到的钥匙串(keychain):https://firebase.google.com/docs/auth/ios/errors当我输入错误的电

swift - 使用 Firebase 登录时为 "An error occurred while accessing the keychain"

背景:我正在使用Firebase登录我的应用程序。我正在使用通过电子邮件地址登录的功能。开始使用新的xCodebeta并将代码更新为Swift3后出现错误您可以在这里看到问题的原型(prototype):https://bitbucket.org/gilosborne/firebasetest错误:当我尝试登录时出现错误,“访问钥匙串(keychain)时发生错误”。我没有以任何方式使用Apple钥匙串(keychain),我相信它指的是这里提到的钥匙串(keychain):https://firebase.google.com/docs/auth/ios/errors当我输入错误的电

ios - Facebook SDK 使用 Swift 3 iOS 10 登录

我通过Cocoapods安装了Facebook的SwiftSDK:pod'FacebookCore',:git=>"https://github.com/facebook/facebook-sdk-swift"pod'FacebookLogin',:git=>"https://github.com/facebook/facebook-sdk-swift"我已按照Facebook的SwiftSDK(https://developers.facebook.com/docs/swift/login)中的登录说明进行操作,但无法正常工作。在我的ViewController中,我有以下内容:@o

ios - Facebook SDK 使用 Swift 3 iOS 10 登录

我通过Cocoapods安装了Facebook的SwiftSDK:pod'FacebookCore',:git=>"https://github.com/facebook/facebook-sdk-swift"pod'FacebookLogin',:git=>"https://github.com/facebook/facebook-sdk-swift"我已按照Facebook的SwiftSDK(https://developers.facebook.com/docs/swift/login)中的登录说明进行操作,但无法正常工作。在我的ViewController中,我有以下内容:@o

ios - Swift iOS 客户端证书认证

我要使用的Web服务需要客户端证书。如何将我的证书发送给它?为了进一步说明,我不明白如何创建SecIdentityRef。在我的NSURLConnectiondidReceiveAuthenticationChallenge中,我在ServerTrust之后得到了这个条件:elseifchallenge?.protectionSpace.authenticationMethod==NSURLAuthenticationMethodClientCertificate{varsecIdent:SecIdentityRef=?????????varcertCred=NSURLCredenti

ios - Swift iOS 客户端证书认证

我要使用的Web服务需要客户端证书。如何将我的证书发送给它?为了进一步说明,我不明白如何创建SecIdentityRef。在我的NSURLConnectiondidReceiveAuthenticationChallenge中,我在ServerTrust之后得到了这个条件:elseifchallenge?.protectionSpace.authenticationMethod==NSURLAuthenticationMethodClientCertificate{varsecIdent:SecIdentityRef=?????????varcertCred=NSURLCredenti

Linux系统切换root出现su: authentication failure解决办法

一、问题说明在Linux系统中,使用命令su切换root用户,正确输入密码后仍报错su:Authenticationfailure二、解决办法使用命令sudopasswdroot修改root账户密码,输入该命令后回车,先输入当前root密码,然后键入新密码并确认(可以和之前相同)。提示密码更新成功,此时再su,输入新密码,成功切换到root。

ios - 使用 Alamofire 进行基本身份验证

使用基本身份验证进行身份验证时遇到问题。我正在使用符合URLRequestConvertible协议(protocol)的标准枚举来构造我的请求。问题是当我像这样在枚举中手动设置授权header时:letuser=***letpassword=***letcredentialData="\(user):\(password)".dataUsingEncoding(NSUTF8StringEncoding)!letbase64Credentials=credentialData.base64EncodedStringWithOptions([])mutableURLRequest.set

ios - 使用 Alamofire 进行基本身份验证

使用基本身份验证进行身份验证时遇到问题。我正在使用符合URLRequestConvertible协议(protocol)的标准枚举来构造我的请求。问题是当我像这样在枚举中手动设置授权header时:letuser=***letpassword=***letcredentialData="\(user):\(password)".dataUsingEncoding(NSUTF8StringEncoding)!letbase64Credentials=credentialData.base64EncodedStringWithOptions([])mutableURLRequest.set