http_auth 0.1.0 copy "http_auth: ^0.1.0" to clipboard
http_auth: ^0.1.0 copied to clipboard

outdatedDart 1 only

Dart http middleware for HTTP Basic and Digest authentication

http_auth #

An http middleware for HTTP authentication (Basic/Digest).

Usage #

HTTP Basic authentication:

    import 'package:http_auth/http_auth.dart';

    main() async {
      var client = http_auth.BasicAuthClient('user', 'passwd');
      var response = client.get('http://httpbin.org/digest-auth/auth/user/passwd');
    }

HTTP Digest authentication:

    import 'package:http_auth/http_auth.dart';

    main() async {
      var client = http_auth.DigestAuthClient('user', 'passwd');
      var response = client.get('http://httpbin.org/digest-auth/auth/user/passwd');
    }

Synchronous usage is also possible (see the example).

37
likes
0
pub points
98%
popularity

Publisher

unverified uploader

Dart http middleware for HTTP Basic and Digest authentication

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypto, cryptoutils, http

More

Packages that depend on http_auth