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
1
vote
4 answers

How to use Xamarin.Auth for UWP Login renderer

Xamarin.Auth 1.3.2 version was support UWP app. I have created and implemented app in Android and IOS like below PresentViewController (auth.GetUI (), true, null); and for Android: StartActivity (auth.GetUI (this)); I want to get know how…
1
vote
1 answer

login expiration/idle timeout for mobile apps

I am new to Xamarin and getting started on building an app. I am using XAMARIN.Auth to store the user name and the Token after login. The Auth token on the server has expiration. When the user resumes the app from the background, what is the best…
katie77
  • 1,797
  • 4
  • 25
  • 43
1
vote
1 answer

Servicestack LinkedIn Oauth2 with Webauthenticator Not Returning to App

Hi Am having trouble with Servicestack authentication with Xamarin.auth component. when try authenticate with ServiceStack with WebAuthencator , am getting authenticated but am not able to return to app as in case of Xamarin.Auth…
Tech Cruize
  • 107
  • 1
  • 2
  • 16
1
vote
0 answers

Facebook OAuth login for mobile app with python-social-auth

I'm currently writing a mobile application in Xamarin and Django with Python Social Auth, my application requires personalisation so I decided to use Facebook authentication instead of allowing users to store a username/password combination due to…
Paradoxis
  • 4,471
  • 7
  • 32
  • 66
1
vote
2 answers

Doesn't Xamarin.Auth 1.3 work securely with Facebook OAuth?

Facebook documentation states that the App Secret or an App Access token should never be included in any code that could be accessed by anyone other than a developer of the app. This applies to all methods of code that are not secured like …
Bob
  • 5,809
  • 5
  • 36
  • 53
1
vote
0 answers

How to show custom ui in xamarin.auth FormAuthenticator?

I have a xamarin.android project and using xamarin.auth custom FormAuthenticator. I want to show my custom login view instead of default login view (auth.GetUI(this)) but all of the tutorials and code samples are about using oauth (facebook, google,…
Mohammad Zare
  • 1,489
  • 7
  • 25
  • 45
1
vote
1 answer

WindowManagerBadTokenException error on dismiss login modal on Xamarin

I am working with Xamarin, I am trying to login using Xamarin.Auth, that works correct, but when my log is successfully and I have to close the modal I am getting this error: Unhandled Exception: Android.Views.WindowManagerBadTokenException:…
1
vote
2 answers

Xamarin.Auth: Using Facebook oauth, how to redirect to my app?

I've just started using Xamarin.Auth and I want to enable Facebook login via oauth. Here is my config: public static string ClientId = "client id"; public static string ClientSecret = "client secret"; public static string Scope = "email"; public…
saschor
  • 319
  • 4
  • 12
1
vote
2 answers

Google OAuth 2 - How to get refresh token using Xamarin.Auth?

I'm using Xamarin.Auth to authenticate the user and have access to the Google Calendar API. I'm able to get an access token and do whatever I need. The problem is the access_token I receive expires after one hour. I looked for examples and…
Daniel Kern
  • 41
  • 1
  • 4
1
vote
0 answers

Redirect URL for OAuth2 with Google Drive, in Xamarin Android

I want to access to google drive from my Xamarin-android app. I have created in google developer console my app as "other type" and used the following code to access google drive: this.auth = new…
1
vote
1 answer

Xamarin.Auth - Facebook OAuth not showing mobile friendly views

I'm currently implementing OAuth authentication with Xamarin.Auth in one of our applications. We're implementing Facebook and Google sign in. For some reason the desktop Facebook login screen is shown instead of the responsive mobile view. I'm using…
1
vote
0 answers

Xamarin Android - Javascript not loading in WebView when using Xamarin.Auth

I am having a really strange issue with a single user when using Xamarin.Auth for authentication. This user has a Samsung Galaxy S3. When they try to sign in to their account using Xamarin.Auth, the WebView which Xamarin.Auth uses to display the…
1
vote
0 answers

Xamarin Forms - attempt to dismiss modal view controller whose view does not currently appear

I am using Xamarin.Auth using Xamarin Forms. On IOS, When Auth Completion event fired and I got access tocken , I need to Pop the current Page and need to push another await navigation.PopModalAsync(); …
Divesh Pal
  • 439
  • 1
  • 5
  • 16
1
vote
0 answers

How to use Xamarin.Auth with Monogame?

I use monogame for developing crossplatform game. For android I have one Activity: [Activity (Label = "GameName", MainLauncher = true, Icon = "@drawable/icon", Theme = "@style/Theme.Splash", AlwaysRetainTaskState = true, …
Unknown User
  • 78
  • 1
  • 7
1
vote
1 answer

Invalid OAuth signature on vimeo with Xamarin.Auth

I'm trying to call the vimeo REST API from within a Xamarin.iOS application, but I keep getting a 401: The oauth_signature passed was not valid. Here's the code: public async Task GetAll (string userId) { var request = OAuth1.CreateRequest ( …
Stephane Delcroix
  • 16,134
  • 5
  • 57
  • 85