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

A pure Dart implementation of RFC 9449 (DPoP). Supports automatic proof generation, signing, and nonce retries for HTTP requests.

example/example.dart

import 'package:dpop/dpop.dart';

void main() async {
  // By default, this generates a fresh key pair for the session.
  final client = DPopHttpClient(
    // Optional: Provide a callback if you need to attach an Access Token
    // getAccessToken: () async => 'your-access-token',
  );

  try {
    // The client automatically adds the 'DPoP' header to this request.
    final response = await client.get(
      Uri.parse('https://pub.dev/'),
    );
    print('Status: ${response.statusCode}');
    print('Body: ${response.body}');
  } finally {
    // Close the client when done to release resources.
    client.close();
  }
}
0
likes
50
points
57
downloads

Publisher

unverified uploader

Weekly Downloads

A pure Dart implementation of RFC 9449 (DPoP). Supports automatic proof generation, signing, and nonce retries for HTTP requests.

Repository (GitHub)
View/report issues

Topics

#security #oauth #http #dpop

License

Apache-2.0 (license)

Dependencies

http, uuid, webcrypto

More

Packages that depend on dpop