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

Can I hide the Xamarin.Auth NavigationBar?

Is there any possibility to hide the Xamarin.Auth NavigationBar ? I've searched the Xamarin Forum and many others but no one seems to have ever done this... For authentication I am following the guide "Authenticating Users with Azure Mobile…
Felix D.
  • 4,811
  • 8
  • 38
  • 72
3
votes
1 answer

use xamarin.auth to get refresh token for google api

var auth = new OAuth2Authenticator(clientId: "my client id", scope: "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/calendar", authorizeUrl: new Uri("https://accounts.google.com/o/oauth2/auth"), …
Aaron
  • 203
  • 1
  • 4
  • 15
3
votes
3 answers

How to use Xamarin.Forms with Xamarin.Auth to store and retrieve Account object

In a Xamarin.Forms project and I'd like to use Xamarin.Auth just to store and retrieve Account object securely. Please note that I am not taking about integrating with Facebook, Google or any other service that serves end-to-end oAuth login…
Karthik Murugesan
  • 1,100
  • 3
  • 13
  • 25
3
votes
1 answer

Xamarin.Auth with Google APIs: Renew credentials?

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…
dan
  • 245
  • 4
  • 13
3
votes
1 answer

Xamarin.Auth: Account data not persisted when app is updated

I'm using Xamarin.Auth to authenticate with services like foursquare and so. I've gotten my authentication code working all good, the problem is that the account data is not persisted when I deploy a new version of my app - each time I deploy a test…
HuseyinUslu
  • 4,094
  • 5
  • 33
  • 50
2
votes
1 answer

Store secret key in Xamarin Forms

I try to understand how I can store secrets in a xamarin forms project. I have a web api core as a backend and a xamarin forms app as a frontend. I am trying to code facebook authentication with Xamarin.Auth and I need to pass secret key to my…
2
votes
0 answers

How to implement automatic login in Xamarin?

I am implementing an application in Xamarin with a login functionality. I am using Xamarin SecureStorage to store my username and password in Keychain. I am using Prism to segue between my pages. I have an AuthenticationService that handles all…
Mochi
  • 1,059
  • 11
  • 26
2
votes
1 answer

Xamarin.Auth - UWP - Redirection URL interecepted by Windows

I am using the package Xamarin.Auth to authenticate an user against an authentication service within my UWP App. The authenticator is instantiated like the following: this.Authenticator = new OAuth2Authenticator( CLIENT_ID, CLIENT_SECRET, …
Rafael
  • 88
  • 1
  • 8
2
votes
1 answer

Error: The name AuthenticationState does not exist in the current context

I am doing google signin for my project . I am getting this error: 'The name AuthenticationState does not exist in the current context' in the MainActivity.cs page .Please see the attached screenshot. will it be removed by adding some nuget…
2
votes
2 answers

Authentication Error e.Message = OAuth Error = Permissions+error

I'm using Xamarin.Auth version 1.5.0.3 in my xamarin.android and xamarin.ios (PCL) project for application authentication/login with facebook's OAuth API. The issue arises after I click on the "Not now" link (watch the screenshot below). I get the…
2
votes
0 answers

Using Xamarin.Auth with Keycloak

Does anyone have an example of how to configure Xamarin.Auth (using Forms) to authenticate against Keycloak using OpenID/OAuth2?
2
votes
2 answers

Xamarin.Auth Android project results in "Cannot find symbol" error for CustomTabs?

I am trying to implement the Xamarin.Auth library in a Xamarin.Forms project. After installing the library in my client project I received a System.NotImplementedException: System.NotImplementedException: Portable Bait And Switch is nuget…
William Smith
  • 1,949
  • 4
  • 25
  • 45
2
votes
2 answers

Navigating from Platform Specific (UWP) PageRenderer and back to PCL Page

I have a MainPage in PCL which then navigates to a Platform Specific Login Page on LoginButton Click Event The LoginPage is inherited from platform specific PageRenderer as it needs platform specific Authentication to Social Providers (Facebook,…
sidsud
  • 25
  • 9
2
votes
1 answer

Xamarin.Auth Facebook login doesn't work, vague error message

How to deal with so opaque facebook error? What are some steps to debug this? I'm trying to attach Facebook Oauth2 authorization to myapp using Xamarin.Auth, but I keep getting the following error: I added Android Platform in Facebook Dashboard,…
Bob
  • 5,809
  • 5
  • 36
  • 53
2
votes
0 answers

Xamarin.Auth fails to complete with Trakt

I'm building an app as Trakt client using Xamarin. To authenticate users, I use Xamarin.Auth because its cross-platform. However, after the authentication succeeds, it doesn't call Completed event handler. The event is only called once I click on…
Tùng Trịnh
  • 75
  • 1
  • 4
1
2
3
9 10