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
- Log to Dynatrace using Serilog and web.config .NET Framework API
- How to create a REST API with .NET Framework?
- ASP.NET Core Background task with service container
- App gateway closing connection after 100 requests
- Web API works with Windows authentication enabled when consumed via Swagger but throws an unauthorized issue when accessed through web app
- The 'GetUriByAction' method in the LinkGenerator class in Asp.Net Core is not defined in the Repository layer of the project
- Entity Tracking Conflict when Authenticating Users in ASP.NET Core API
- Class validation on response body in .NET WebApi
- My ASP.NET server does not work and I am wondering what's missing, when I open Swagger, I get error 500
- How to split Serilog log file into multiple files?
- Response payload is not odata payload
- How can I upload picture
- Web Forms aspx - PostAsync Web API
- do you know any free reporting services like devexpress or boldreports?
- WebAPI don't deserialize JSON but same payload works in Swagger
Related Questions in XAMARIN
- C# Visual Studio Android App Showing a wrong not working Keypad on Entry text
- Playing local recorded video
- What changed from xcode 13.2.1 to 14.2 that would affect an app's entitlements?
- After adding the packages of "Xamarin.Firebase.Messaging", getting error related to JAVA0000 "Compilation failed"
- C# Xamarin Android | Change Contentview from class
- Why does my LINQ query in Xamarin.Forms show less than expected content?
- My .net MAUI app works in debug mode, but "dotnet publish" doesn't work
- Xamarain support for IOS 17.4.1
- Grid Items keep stacking instead of creating a new row
- .NET MAUI TapGesture Command not working in CollectionView
- Xamarin android emulate usb PC Keyboard
- Java.Lang.IllegalStateException: 'Unable to parse composition' using Lottie in splashscreen xamarin forms (android)
- add Items (FILES) from Directory to Spinner List
- AVPlayerViewController's caption options do not update in .Net 8 tvOS app
- Printing PDF generate with Itext7 on a thermal printer Model:P80D
Related Questions in BEARER-TOKEN
- 401: Unauthorized Error Using AJAX Call - Bearer Token
- open ai key integration as a bearer token
- FastAPI receives Basic Auth headers instead of Bearer
- I am implementing the authentication system on the front-end and login and logout work well, but I can't verify the token (AxiosError)
- Laravel Implement Api-key and Bearer token
- How to setup authentication in React
- Power BI :: Get data through a REST API call with Bearer token
- Missing 'alg' in jwtSecurityToken header
- my jwt token does not expire after 60 seconds
- I cannot authenticate user with the jwt token in my django project
- Error getting Microsoft Entra Id (AAD) Token using ADF - 404 : NotFound
- Using a token instead of a cookie in an ASP.net web app that uses Entra ID authentication
- not invoke String.substring(int)
- LocalProtocolError, the error specifically mentions an "Illegal header value" related to the Bearer token
- How to authorize Azure AD access_token generated with client secret in a .net API?
Related Questions in XAMARIN.AUTH
- Android App doesn't get back after logging
- Xamarin.Auth and Google Drive API: OAuth2Authenticator not IsAuthenticated
- FirebasePushNotificationManager.Initialize stopped working after adding the package Xamarin.Auth
- Xamarin Android with fitbit api- Add Authorization to header
- How to integrate Facebook Login in Xamarin forms without Logging out
- xamarin.auth stuck on success when isUsingNativeUI true
- Login with Xamarin.Auth in IOS Project is not working
- Can Xamarin.Auth Support Authorization Code Flow With Server-Side Access Token Retrieval, and if Not, Why Not / What Can?
- Clearing Saved Password from Chrome after Authenticating from External Browser with Xamarin.Auth
- xamarin.auth with google UriFormatException
- Where do I register redirect URLs on Google Developer's Console?
- Xamarin.Auth Fail on UWP
- How to get accesstoken from Xamarin Auth - Google
- Xamarin Auth Change Password
- TwitterA API Login Page not showing using Rg.Plugins PopupPage
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 # Hahtags
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.