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 packages? i have added only xamarin.auth package. How to solve this error?
Error: The name AuthenticationState does not exist in the current context
832 Views Asked by Vipin Krishna At
1
There are 1 best solutions below
Related Questions in XAMARIN
- Xamarin Table View Crash
- How to read a characteristic (e.g. in WICED Smart example "speed_test")
- Using Azure MobileServices library with my own LAN WebApi
- Bundle Multiple Xamarin apps in one pkg installer
- Xamarin Google Cloud Messaging GcmClient.CheckDevice(this) causes runtime error
- UIAlertView popup won't let me swipe up Control Center
- How do I Insert a Previously Created SQLite Database into a Xamarin.Android App?
- Can custom text be added to a listview cell?
- How to run a ASP.net project to Xamarin Studio
- How can i do a fill animation in Xamarin.Forms
- How to change Display Alert default focus on a button?
- Mixing a CocosSharp game with UIViewControllers
- Building C# code in VSCode on Mac
- How to use research Kit framework in Xamarin
- Why is my app requesting permissions I didn't ask for?
Related Questions in XAMARIN.FORMS
- I need a event for the slider it should fire only if user ends touching the control
- Xamarin Forms - Show Cancel button in toolbar items instead of Back (iOS)
- How can i do a fill animation in Xamarin.Forms
- Visual Studio 2013 crashes when writing opening angle bracket
- How to change Display Alert default focus on a button?
- How to use research Kit framework in Xamarin
- xamarin.forms.labs ImageButton issue
- Can I generate an appx with a windows phone project?
- How Can I Change Height in ViewCell
- Xamarin Android Crash on Start "Got a SIGSEGV"
- When does Xamarin Forms trigger binding?
- Xamarin.forms : How to show the downstate of button which is having background image
- Xamarin.Forms Maps crashing app
- How to hide out a layout in Xamarin.forms C#?
- ListView Header and Footer not appearing
Related Questions in GOOGLE-AUTHENTICATION
- Authenticating in a Google sheets application
- Need help resolving redirect_uri_mismatch error
- How to log out a google account from an Android app
- Same Google Cloud Storage upload script works from one PC, but not the other, Why?
- Error installing packages using composer?
- Memory leak with nodejs
- Bluemix authentication ios8 with google and facebook
- How to set hosted domain in MVC GoogleOAuth2 Authentication Options
- How to use google drive API without web browser
- com.google.firebase.FirebaseException: An internal error has occurred. [ CONFIGURATION_NOT_FOUND ]
- Not getting user information with Google Plus sign-in api + Node.js
- google oAuth redirect_uri in angularjs
- Google Auth not returning a consistent ID with IdentityServer4
- How to redirect to Google Auth in PhoneGap Cordova?
- How do I retrieve the first and last name of a google account that i'm logged in, in Android?
Related Questions in XAMARIN.AUTH
- what values i can pass to scope apart from empty string ("") to OAuth2Authenticator constructor in Xamarin.Auth?
- Is FBSDKLoginManager or FBSDKLoginButton compatible with Xamarin Forms?
- Xamarin Auth - Facebook & GooglePlus
- Can't make Xamarin.Auth redirect back to device
- Xamarin MobileServiceClient RefreshUserAsync with Google 403
- Xamarin.Auth Facebook gives NullReferenceException 2
- Severely confused on how to properly use IdentityServer on my App
- Android App doesn't get back after logging
- How to add Xamarin.Auth for Windows Phone
- How to using Xamarin Auth to authencate facebook user?
- How to add Xamarin.Auth to a new (created with VS 2017.5.2) Xamarin app using .NetStandard for the common project
- Xamarin.Auth and web api tokens
- Xamarin.Auth 1.5.0: Google Drive: Cannot Name or Update Uploaded File?
- recent media instagram GET request returns status 200 but empty data
- Authentication with Facebook by using Xamarin.Auth
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

I got the same error while following the steps at Authenticating Users with an Identity Provider. That page doesn't make it clear at all what you're supposed to do here.
The
AuthenticationStateclass is a class in the sample project that has a reference to the authenticator. The authenticator is an instance ofOAuth2Authenticatorthat you might have created as a local variable in the method where you are starting the login flow. Since that same authenticator is needed when your app is re-launched after the login flow has finished, it's better to add it as a static property to another class that can be used by both the login flow and when your app is re-launched.For example, the
AuthenticationStateclass could look something like this:Replace the parameters to the
OAuth2Authenticatorconstructor based on the remote service you're connecting to.