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
- Host: GitHub
- URL: https://github.com/brodriro/httpmutualauthentication
- Owner: brodriro
- License: bsd-3-clause
- Created: 2019-05-23T20:45:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-28T04:24:44.000Z (about 2 years ago)
- Last Synced: 2025-11-27T17:11:33.279Z (8 months ago)
- Topics: android, flutter, mutual-authentication
- Language: Dart
- Size: 14.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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");
});
});
```