An open API service indexing awesome lists of open source software.

https://github.com/brodriro/httpmutualauthentication

Dart HTTP Mutual Authentication
https://github.com/brodriro/httpmutualauthentication

android flutter mutual-authentication

Last synced: 5 months ago
JSON representation

Dart HTTP Mutual Authentication

Awesome Lists containing this project

README

          

# Http Mutual Authentication

## Using
Optional params: `password` and `pathCertificate`

```dart
/// Init HttpAuth with HttpAuthBuilder
/// sets [authPass] and [pathCertificate] for request
HttpAuth httpAuth = new HttpAuthBuilder(
authPass: "password", pathCertificate: "assets/certificate.p12")
.build;

/// Replace your url
httpAuth.getRequest("http://www.google.com").then((result){
/// Parse response with HttpAuth.parseBody -> String
HttpAuth.parseBody(result).then((resultString){
print("Results: $resultString");
});
});
```