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
2
votes
1 answer

How to facebook login and get user's profile info in xamarin forms using xamarin.auth

I have developed one cross platform app using Xamarin forms. I am stuck on one facebook problem. So my question is how to get facebook user's profile info. I am just able to get "Id" and "Name" of user. However to get full details of user (i.e.…
Parth Savadiya
  • 1,203
  • 3
  • 18
  • 40
2
votes
1 answer

Why is Xamarin.Auth throwing authentication error with OAuth1Authenticator and Twitter

I am currently using Xamarin.Auth on a iOS project to handle some user authentication via Facebook and Twitter in my application. The Facebook authentication using OAuth2Authenticator works great and my implementation was based mainly off the docs…
1
vote
1 answer

Android App doesn't get back after logging

I'm trying to implement OAuth through google in my xamarin app. My code looks like : var auth = new OAuth2Authenticator ( clientId: clientId, scope: scope, authorizeUrl: new Uri(oauthUrl), redirectUrl: new Uri(redirectUrl), …
Сергей
  • 780
  • 4
  • 13
  • 31
1
vote
0 answers

Xamarin.Auth and Google Drive API: OAuth2Authenticator not IsAuthenticated

So this is how I launch my login page: this.OnGoogleDrive = new Command(() => { var presenter = new OAuthLoginPresenter(); presenter.Login(auth); }); And this is how I define my…
1
vote
1 answer

How to integrate Facebook Login in Xamarin forms without Logging out

I am planning to use Facebook for user authentication in Xamarin forms. I read that Facebook doesn't allow refresh tokens, so how to keep the session alive unless the user explicitly signs out.
Sunny
  • 4,765
  • 5
  • 37
  • 72
1
vote
0 answers

Clearing Saved Password from Chrome after Authenticating from External Browser with Xamarin.Auth

We are facing the problem that once we make a successful OAuth2 Authentication using Google Chrome, the web browser saves the details and so the next time we try to authenticate, Chrome skips over to the "Accept/Cancel" privileges. This is a…
1
vote
2 answers

Xamarin.Auth Fail on UWP

I made a test with Xamarin.Auth on uwp, I got error System.NullReferenceException: 'Object reference not set to an instance of an object.' with code below: var authenticator = new OAuth2Authenticator( …
Edward
  • 28,296
  • 11
  • 76
  • 121
1
vote
0 answers

Why is my Google OAuth2 Sign in working, disregarding of my apps signing keystore

In our app we are using the Google Drive REST API. To authenticate, we're using Xamarin.Auth with the following configuration var authenticator = new OAuth2Authenticator(, null, …
Paul Kertscher
  • 9,416
  • 5
  • 32
  • 57
1
vote
0 answers

Xamarin OAuth2Authenticator Microsoft Account returns malformed JWT token for Azure App Service

I am building a Xamarin.Forms app to learn the framework and working on the authentication services while using an Azure App Service for an API (also new to me). And trying to authenticate against a Microsoft account (Outlook.com). I am using the…
1
vote
2 answers

Xamarin Auth account store

I'm trying to implement Xamairn Auth with my app. I've installed the nuget package from https://www.nuget.org/packages/Xamarin.Auth. Following their example I have the following code in the shared project. public void SaveCredentials (string…
ClueSelecter
  • 151
  • 1
  • 11
1
vote
1 answer

Xamarin.Auth - Google authentication won't open in browser

I'm trying to do authentication on my Android application using Xamarin.Auth. Some time ago, Google made the policy that you cannot do this in an embedded web view (for totally valid reasons). I'm trying to open the account authentication page in a…
1
vote
1 answer

Xamarin.Auth AccountStore - KeyStore was not initialized

I've had this Xamarin.Auth AccountStore working in my app for a while, but then decided to do some updates to some Nuget Packages and Target Android versions >_< I now have no idea what went wrong and how to get it working again, here is the…
Matt F
  • 204
  • 1
  • 11
1
vote
0 answers

Xamarin.Auth: Limit login session to application

I am currently working with Xamarin.Auth on Xamarin.Forms (Android/iOS). I am implementing a "Login with Google+" feature, and it works, but not quite as I expect. Every time a user logs in, the log in session also happens on the Native browser. Is…
Bab
  • 433
  • 5
  • 12
1
vote
1 answer

Is it safe to use the Android Application Context for the various methods in Xamain.Auth

Xamrin.Auth (https://github.com/xamarin/Xamarin.Auth), when used on Android, requires any method that accesses the account store to pass a Context to the call. I am wondering if it's ok you always use the Application Context via …
AJ Venturella
  • 4,742
  • 4
  • 33
  • 62
1
vote
0 answers

How to add Xamarin.Auth to a new (created with VS 2017.5.2) Xamarin app using .NetStandard for the common project

After many false starts, I added the Microsoft.NETCore.Portable.Compatibility NuGet package to the common project and was then able to add the Xamarin.Auth package and compile the common project. I then added the Xamarin.Auth package to my Android…
1 2
3
9 10