http_auth
1.0.5, released 4 months ago by an unverified publisher
Dart http middleware for HTTP Basic and Digest authentication
WASM-readyUnverified publisher
What it does
Provides an http middleware wrapper that adds HTTP Basic and Digest authentication support to standard requests. It includes clients for BasicAuth, DigestAuth, and NegotiateAuth for automatic method detection.
AI-written summary of version 1.0.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to authenticate http requests using HTTP Basic authentication.
- You need to authenticate http requests using HTTP Digest authentication.
- You want automatic detection between Basic and Digest authentication protocols.
Skip it when
- You are using OAuth2 or token-based authentication services instead of standard HTTP Basic/Digest.
- You are using an alternative networking package that already manages authentication natively like dio.
Strengths
- Supports both HTTP Basic and Digest authentication out of the box.
- Offers automatic protocol detection via NegotiateAuthClient.
- Integrates directly with the standard http package.
Weaknesses
- Limited to HTTP Basic and Digest authentication methods.
- Not documented for complex custom auth flows outside of Basic and Digest.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
import 'package:http_auth/http_auth.dart';
main() async {
var client = http_auth.BasicAuthClient('user', 'passwd');
var response = client.get('http://httpbin.org/basic-auth/user/passwd');
}Alternatives
Packages that do the same job and could replace http_auth.
Works with
Packages commonly used together with http_auth: ones it builds on, ones built on it, and its own family.