As per my experience, there is no need of token or basic auth while doing login. And login is post method not get.
Turns out the documentation i read was outdated/incorrect. The api uses "Digest authentication" which i looked up and was able to implement. This is the code if anyone is interested:
import 'package:http/http.dart'; import 'package:http_auth/http_auth.dart'; ... Response res = await DigestAuthClient("USERNAME", "PASSWORD") .get(Uri.parse("API_URL")).timeout(const Duration(seconds: 20));
- Flutter REST api call with Basic auth returns 401, despite correct credentials
- How to pass basic auth credentials in API call for a Flutter mobile application?
- if i make an API call it returns me with HTML code in flutter
- Flutter call api rest with a long body
- Flutter generic REST API call function
- Using http package with Flutter Web App to post to Cloud Firestore and its REST API
- Flutter - Rest API Auth expiry
- Best practice for a flutter app with authentication and some fetch from a REST API
- How to populate data from Django REST API endpoint with flutter Dropdown widget
- Error listing information with rest API with Flutter
- Accessing REST API in Flutter with HTTP package
- How to do an API call with Future and Uri.Https constructor in Flutter
- What is the best Approach to Call Rest Api Recursively For Kiosk App in Flutter Dart?
- Get user data with Rest API in Flutter
- Flutter Firebase Auth returns null, then returns the correct value
- Facing some issues in Flutter REST API using with JWT token
- how to use the ant media server with flutter using the Rest API
- Flutter WIth Django Rest Api to fetch data
- Flutter API calls with Future Builder returns error when future method called inside initState()
- Flutter use network images protected with Basic Auth
- Flutter onTap with REST call ends in infinity loop
- How to use Google API auth with flutter for obtaining Client-side Web Application credentials?
- add new user to wordpress with REST API in flutter
- how to call api while refreshing the screen with bloc in flutter
- How to separate multiple text values with comma flutter using rest api
- How to get duration of Youtube video through video id with API call in flutter applicaiton?
- How to make API call in flutter with header key?
- Flutter Dropdown with API call
- I am trying to make a call to an API with https.MultipartRequest in Flutter
- I create flutter with api call but the data not showing at fresh install
More Query from same tag
- How to detect change in the URL - Dart/Flutter
- How to parse json dynamic array name
- apply didChangeAppLifecycleState to the whole app
- How to rebuild only a spesific item in the Listview?
- How do I listen admob interstitial impressions?
- Can't sign in using google in Flutter
- Streambuilder - error after flutter migration - snapshot syntax
- flutter: toggle camera in not working
- Unhandled Exception: NoSuchMethodError: The getter 'length' was called on null
- flutter could not find image file in pubspec.yaml
- Unable to use path_provider in Flutter?
- Audio player decides to give up [Flutter] [Audio Cache]
- No Directionality widget found. RichText widgets require a Directionality widget ancestor
- The method '>=' was called on null. Receiver: null Tried calling: >=(0.0), until I remove and replace
- How to join a List of string with a custom widget
- How to Center GridView Component
- Flutter - Display grid of buttons more dynamically
- Flutter requires Android SDK 29 and the Android BuildTools 28.0.3 while having both
- Flutter TextInputFormatter not allowing RegEx
- how do i get back my missing styles.xml file in flutter
- Error 'The argument type 'bool Function(EmployeeDetails)' can't be assigned to the parameter type 'bool Function(SalesDetails)?' in flutter
- Could not find a generator for route "home-page" in the _MaterialAppState
- Read user's emails Flutter / Spring Boot
- Flutter local_auth unable to use default system dialog for fingerprint
- Flutter Widget Key Checking for Evaluation
- ListView of horizontal scroll button issue
- Increase Container size
- how to add space between the label text and hint text here in code
- Switch botttom navigation items by current url on webview_flutter
- Flutter show/hide options bar over pdf viewer