I'm making calls to a Web API using a xamarin mobile app and I was wondering when receiving my authorization bearer token could I not simply store it in the xamarin.auth account store along with the user's credentials? I figured this would be a better place than say a global variable in the app. Looking for feedback and any better options. Thanks!
Xamarin.Auth and web api tokens
618 Views Asked by Stunshaw At
2
There are 2 best solutions below
Related Questions in ASP.NET-WEB-API
- Implement Onfailure in webApi controller
- WebApi: Reading errors
- Why web API return 404 when deploy to IIS
- One Web API calls the other Web APIs
- colon(:) in url causes error in asp.net
- Make a per-web-application object available to Web API and SignalR controllers
- Using Azure MobileServices library with my own LAN WebApi
- redirect to actionResult method from an api
- How to catch postpack result to Web Api
- Exposing webapi to third party
- .net Web Api 2 Owin authentication token expires suddenly and often on IIS 8.5
- Can you use the same token in ADFS for 2 different relying parties?
- Does 'api/SomeEntity/ForOtherEntity/{otherEntityId}' break REST?
- Generic webAPI method based on parameter types of arrays
- Where can I find user identity when using webapi with Windows Authentication on IIS8
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 BEARER-TOKEN
- Bearer token in MVC controller to access Web API
- Retrieve information from Bearer Token
- Use two way to create bearer token for users in web api 2 with owin context
- How to get errors from Passport strategy to create json response?
- How to send bearer token through header of axios call in react redux
- Bearer error = Invalid_token 401 Unauthorized
- Web Api Token Expiration Error
- Is sending JWT in a query string via email secure?
- Can I pass a bearer token to an Angular JS app in the response headers?
- Postman PUT with Bearer Token doesn't work
- Retrieving Azure AD Group information with JWT
- Determine if bearer token has expired or is just authorized
- .net web api Bearer token exipres within a few minutes
- OpenId Connect, best approach to getting a bearer token client side to call WebApi after MVC signin?
- 401 with a valid bear token, what could go wrong?
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?
In my opinion there is nothing wrong with using the account store for storing an access token (using the account properties dictionary). I did it myself on one app where I didn't have any other data to persist, so didn't have a custom data access layer.