Questions tagged [xamarin.auth]

A cross-platform API for authenticating users and storing their accounts.

Xamarin.Auth is a cross-platform API for authenticating users and storing their accounts. It supports a few authentication options out of the box, OAuth2 in particular with an example given for Facebook. It is run from Github and can be cloned or forked from there.

https://github.com/xamarin/Xamarin.Auth

138 questions
0
votes
1 answer

facebook Xamarin.Auth Activity redirector

I try to add facebook auth in my Xamarin App (Google already done) On facebook i add https://www.facebook.com/connect/login_success.html as URI for redirection OAuth valid, all my auth parameter is on. On Xamarin : public static string…
0
votes
0 answers

Authenticating a Azure Mobile App Back End through Google Play

I have a mobile app that has an Azure back end. It works the way it is. My authentication code is as follows: client = new MobileServiceClient(Settings.ServiceURI); var user = await client.LoginAsync(this, …
Jim Wilcox
  • 1,480
  • 16
  • 33
0
votes
0 answers

Cross-client Google OAuth: Xamarin/Android to .NET web service

I have a similar question as found in this post, but for Xamarin. Cross-client Google OAuth: Get auth code on iOS and access token on server I'm using Xamarin.Auth to successfully get a token back from Google for the user of my app. I'd like to…
0
votes
0 answers

Xamarin Forms OAuth2 Error Target of Invoke is null

After solving this problem I ran into another. I changed the NuGet-package and implemented everything as described here. I also added the initialization code in the AppDelegate.cs. But if I push the button to login I get the following error message:…
0
votes
0 answers

Xamarin Forms with Xamarin Player OAuth2 NInterpretException

I'm currently on developing some little application for iOS and Android. Therefore I need an OAuth2 authentication. How I proceeded (from here) Create a new Xamarin.Forms project from the templates with the default Item and About page Add…
0
votes
1 answer

UWP development: what should I do after using xamarin.auth to call salesforce api

I am using the xamarin.auth to call salesforce api to finish my user authentication on my UWP app. I setup my SalesForceRedirectUri to myapp:/oauth2Callback, but after the authentication (when I used the correct user name and password), the app…
0
votes
1 answer

Xamarin.Auth's AccountStore.Save works in emulation, but not on a "real" device

I'm trying to use a Xamarin.AccountStore to retain a user's login credentials so that they don't have to type them out every time they use the app. Saving credentials looks something like this: Account account = new Account(...); AccountStore store…
0
votes
1 answer

Is this really the process for authenticating users with the Google platform using Xamarin?

I am following the tutorial located here: https://developer.xamarin.com/guides/xamarin-forms/cloud-services/authentication/oauth/ I got to the step titled: Presenting the Sign-In User Interface. It says that, "When the Login method is invoked, the…
0
votes
0 answers

How to use Xamarin.Auth in Xamarin.Forms (Shared Project for iOS and Android)?

I am trying to use Xamarin.Auth for a Facebook signin. It's all set up, but I am missing the last part. The Facebook signin is not my MainActivity, one has to click on a button in order to sign in. I don't know how to start the page for the signin.…
0
votes
0 answers

Simple way to store a session id with Xamarin.Auth

I would like to store my users' session ids using Xamarin.Auth to support cross-platform but can't find out how to write it or grab it when needed. I tried following this tutorial but i dont get where they get half the methods.
user9125842
0
votes
0 answers

Xamarin iOS Xamarin.Auth Keeps Account data even after uninstalling the Application

To save user auth credential i've used Xamarin.Auth Account store But it keeps the credentials data even after i uninstall application so the problem is when reinstall new version it would automatically gets logged-in. How can i clear auth…
Nikhil Dekhane
  • 101
  • 1
  • 10
0
votes
2 answers

How to switch logged user using Xamarin.auth

I am using Xamarin.Auth to keep the credentials saved and user logged in a Xamarin Forms application. Now, i need to implement a "Switch logged user" but i am not figuring out how to properly do it. Nothing about it at internet. So, if someone can…
MC Fer
  • 303
  • 1
  • 2
  • 15
0
votes
1 answer

Xamarin.Auth alternative for NetStandard1.4 Project?

I use NetStandard project instead of PCL class for my Xamarin.Forms 2.4 project. I was thinking using Xamarin.Auth to store token receive with MSAL and user info locally but the nuget is not compatible with NetStandard yet. Do we have some…
0
votes
0 answers

Authenticate to Azure App Service back end with Google token received from Xamarin.Auth in a Xamarin Forms App

I am trying to use Google Authentication in my Xamarin Forms app by using Xamarin.Auth to perform client-side authentication and then passing the received token to my Azure App Service custom website back-end that is configured to use Google…
0
votes
1 answer

SaveAccount not work in Xamarin.Auth

I use Xamarin.Auth to save account to make "Remember me" function in my Xamarin.Forms project. It works good for both Android and iOS in debug mode. But when I build it in release mode, it doesn't work for both platforms. I can't find what is the…
Passionate.C
  • 233
  • 3
  • 20