I'm trying to set up an app which uses Google Smartlock feature to fetch credentials stored in Google's password manager and automatically log in. For this, I have set up a test website, where an user can login (while browsing in Google Chrome), and if she chooses to save the password for the site, it'll be saved in Google's password manager. The sample app that I have should be able to automatically fetch the stored credentials and use them to log in to the app content page.
I have followed the documentation thoroughly. Here's the Digital Assets file hosted at the website root :
[{
"relation": ["delegate_permission/common.get_login_creds"],
"target": {
"namespace": "web",
"site": "https://officeloginsso.azurewebsites.net"
}
},
{
"relation": ["delegate_permission/common.get_login_creds"],
"target": {
"namespace": "android_app",
"package_name": "com.mslogin.t_sopal.msloginsso",
"sha256_cert_fingerprints": [
"XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX"
]
}
},{
"relation": ["delegate_permission/common.get_login_creds"],
"target": {
"namespace": "android_app",
"package_name": "com.login.codelab.sopalsmartlock",
"sha256_cert_fingerprints": [
"XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX"
]
}
}]
The Manifest file snippet that includes the link to the json file :
<application>
<meta-data android:name="asset_statements" android:resource="@string/asset_statements" />
</application>
Strings.xml :
<string name="asset_statements" translatable="false">
[{
\"include\": \"https://officeloginsso.azurewebsites.net/.well-known/assetlinks.json\"
}]
</string>
The app has been published (with regional restriction) and the json file has been hosted, which returns response :
HTTP/1.1 200 OK
Content-Type: application/json
Despite having done these, the app still can't pick up the username/password stored through the website. Is there something I am missing here?