tree: d9c505bc9f360b0f39fd367b5c8b0b0a963124bb [path history] [tgz]
  1. test/
  2. OWNERS
  3. README.md
  4. sms_browsertest.cc
  5. sms_fetcher_impl.cc
  6. sms_fetcher_impl.h
  7. sms_fetcher_impl_unittest.cc
  8. sms_metrics.cc
  9. sms_metrics.h
  10. sms_parser.cc
  11. sms_parser.h
  12. sms_parser_unittest.cc
  13. sms_provider.cc
  14. sms_provider.h
  15. sms_provider_gms_user_consent.cc
  16. sms_provider_gms_user_consent.h
  17. sms_provider_gms_user_consent_unittest.cc
  18. sms_provider_gms_verification.cc
  19. sms_provider_gms_verification.h
  20. sms_provider_gms_verification_unittest.cc
  21. sms_queue.cc
  22. sms_queue.h
  23. user_consent_handler.cc
  24. user_consent_handler.h
  25. user_consent_handler_unittest.cc
  26. webotp_service.cc
  27. webotp_service.h
  28. webotp_service_unittest.cc
content/browser/sms/README.md

Web OTP API

Android has automatic and one-tap SMS verification. We would like to cover the gap on web platform and implement the WebOTP Service API for web developers.

Web-exposed Interfaces

Web OTP API

This is implemented in third_party/blink/renderer/modules/credentialmanager and exposes the following function:

navigator.credentials.get({otp: {transport: ["sms"]}})

Testing

For how to run these tests, refer to Chromium documentation Running tests locally, Android Test Instructions

For testing this API locally, refer to How to use the Web OTP API

Platform Support

Android

The Android implementation (this does not include Android WebView) is located in chrome/browser/ui/android/sms/, content/public/android/java/src/org/chromium/content/browser/sms/, and chrome/android/java/src/org/chromium/chrome/browser/sms/.

For architectural diagrams, refer to design doc.

Desktop

We plan to implement it in the near future.

Related Documentation

Design Doc

Web OTP API explainer

How to use the Web OTP API

Launch Bug