-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgetwellknown.fish
18 lines (15 loc) · 935 Bytes
/
getwellknown.fish
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function getwellknown -d "Retrieve .well-known (and similar) URLs, output to stdout"
# https://developers.google.com/identity/smartlock-passwords/android/associate-apps-and-sites
echo "# $argv/.well-known/assetlinks.json"
curl -sSi "{$argv}/.well-known/assetlinks.json" | head -1
# https://developer.apple.com/reference/security/1654440-shared_web_credentials
# https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html
# https://branch.io/resources/aasa-validator/
# https://search.developer.apple.com/appsearch-validation-tool
echo "# $argv/apple-app-site-association"
curl -sSi "{$argv}/apple-app-site-association" | head -1
echo "# $argv/.well-known/apple-app-site-association"
curl -sSi "{$argv}/.well-known/apple-app-site-association" | head -1
echo "# $argv/.well-known/change-password"
curl -sSi "{$argv}/.well-known/change-password" | head 1
end