Skip to content
A Dart http middleware for HTTP authentication (Basic/Digest)
Dart
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example First commit May 3, 2018
lib Removed useless new keywords Nov 21, 2019
test dartfmt Dec 19, 2018
.gitignore First commit May 3, 2018
CHANGELOG.md Bumped version to 0.2.7 Nov 21, 2019
LICENSE First commit May 3, 2018
README.md
analysis_options.yaml Removed obsolete analysis option Sep 11, 2018
pubspec.yaml

README.md

pub package

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/basic-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).

You can’t perform that action at this time.