xamarin.auth

Xamarin MobileServiceClient RefreshUserAsync with Google 403

无人久伴 提交于 2019-12-23 05:03:18
问题 I am using Azure's MobileServiceClient sdk to authenticate with my server. With the upgrades to 4.x version I am also using Xamarin.Auth to authenticate users with Google and Facebook. When the response comes back from Google I am getting a refresh token. I then call the mobile service sdk like so: var accessToken = account.Properties["access_token"]; var idToken = account.Properties["id_token"]; var zumoPayload = new JObject(); zumoPayload["access_token"] = accessToken; zumoPayload["id_token

Azure AD token endpoint doesn't return an access_token (just an id_token and a refresh_token)

﹥>﹥吖頭↗ 提交于 2019-12-11 07:06:16
问题 I'm using Xamarin.Auth for authenticating users against Google and Azure AD in a Xamarin Forms based mobile app. While everything works as expected with Google, I'm unable to get an access_token with Azure AD: Authorize works as expected providing code and state Token returns an id_token and a refresh_token, but no access_token. I can replay this scenario in Postman, so this doesn't seem to be caused by Xamarin.Auth and is more likely to be blamed to my inability to properly interpret

Xamarin.Auth Google not auto close when done login

梦想与她 提交于 2019-12-10 21:25:58
问题 I follow guide enter link description here I have a issue when I done login my google account it show toast And browser not auto close to back my. Thanks! 回答1: In you CustomUrlSchemeInterceptorActivity page replace inside OnCreate. base.OnCreate(savedInstanceState); global::Android.Net.Uri uri_android = Intent.Data; Uri uri_netfx = new Uri(uri_android.ToString()); // load redirect_url Page AuthenticationState.Authenticator.OnPageLoading(uri_netfx); var intent = new Intent(this, typeof

Xamarin.Auth getting disallowed_useragent error [Xamarin.Forms]

人走茶凉 提交于 2019-12-10 15:47:43
问题 I was trying to implement login with Google and Facebook . I have successfully implemented Facebook login with Xamarin.Auth but in the Google Login I am getting error disallowed_useragent , I know Google has changed their policy and will not allow the login using WebView but is there any other way to implement Login with Google in Xamarin.Forms (Portable) ? Thank You. 回答1: It's a new Google restriction, they do not allow using their login interface in embedded webviews anymore. Therefore you

Xamarin.Auth with Google APIs: Renew credentials?

自古美人都是妖i 提交于 2019-12-07 13:51:20
问题 I'm trying to use Xamarin.Auth with the Xamarin Google-APIs to login to Google and access Drive. I've managed to get nearly everything working, but the authentication tokens seem to expire after about an hour. Everything works great for awhile, but after about an hour, when I attempt access, I get an Invalid Credentials [401] error and a leak: Google.Apis.Requests.RequestError Invalid Credentials [401] Errors [ Message[Invalid Credentials] Location[Authorization - header] Reason[authError]

Xamarin.Auth iOS9 Authentication SSL ERROR

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 04:56:15
问题 I've just updated XCode to the 7.0 (7A220) and this take my Simulators to iOS9. From that moment I cannot perform successfully any OAUTH call from the simulators.. I tried every model, from my App to the "sample Xamarin.Auth App". The answer is always the same: "Authentication Error An SSL error has occurred and a secure connection to the server cannot be made" The Code is the STANDARD one, I only changed my AppID. The same code is working on the Android version of the same App! var auth =

Xamarin.Auth iOS9 Authentication SSL ERROR

瘦欲@ 提交于 2019-12-05 11:10:01
I've just updated XCode to the 7.0 (7A220) and this take my Simulators to iOS9. From that moment I cannot perform successfully any OAUTH call from the simulators.. I tried every model, from my App to the "sample Xamarin.Auth App". The answer is always the same: "Authentication Error An SSL error has occurred and a secure connection to the server cannot be made" The Code is the STANDARD one, I only changed my AppID. The same code is working on the Android version of the same App! var auth = new OAuth2Authenticator ( clientId: "my app id", scope: "", authorizeUrl: new Uri ("https://m.facebook

Xamarin Auth Store Keychain not working after ios10 upgrade

霸气de小男生 提交于 2019-11-27 21:50:30
I'm using Xamarin.Auth ( https://components.xamarin.com/view/xamarin.auth/ ) to store my credentials, as I've always done. var accountStore = AccountStore.Create (); foreach (var account in accountStore.FindAccountsForService("myAppName")) accountStore.Delete (account, "myAppName"); AccountStore.Create().Save(acc, "myAppName"); After the upgrade to iOS 10 I get this error storing credentials: "Could not save account to KeyChain: -34018" at Xamarin.Auth.KeyChainAccountStore.Save (Xamarin.Auth.Account account,System.String serviceId) [0x000b2] in <402cf9b3716845b3bdddef581cb33a3e>:0 Latest

Xamarin Auth Store Keychain not working after ios10 upgrade

柔情痞子 提交于 2019-11-26 16:39:10
问题 I'm using Xamarin.Auth (https://components.xamarin.com/view/xamarin.auth/) to store my credentials, as I've always done. var accountStore = AccountStore.Create (); foreach (var account in accountStore.FindAccountsForService("myAppName")) accountStore.Delete (account, "myAppName"); AccountStore.Create().Save(acc, "myAppName"); After the upgrade to iOS 10 I get this error storing credentials: "Could not save account to KeyChain: -34018" at Xamarin.Auth.KeyChainAccountStore.Save (Xamarin.Auth