LoginSignup
1
2

More than 3 years have passed since last update.

iOS 14からアプリにも出る様になった弱いパスワードの警告に対応する

Last updated at Posted at 2020-12-09

iOS 14から、Keychainに保存されたパスワードが弱い場合などに警告が出る様になりました(参考: https://applech2.com/archives/ios-14-keychain-new-password-security-recommendations.html )。

アプリでAssociated DomainsのWeb CredentialsでKeychainのパスワードを使える様にしている場合(参考: https://qiita.com/akatsuki174/items/c103e026bbdd444b68bf )も同様にアプリ上にアラートが出る様になっていました。

IMG_0450.jpg

↑の Webサイトのパスワードを変更 をタップすると、↓設定アプリのパスワードからWebサイトのパスワードを変更を促されます。
(スクショ撮ると勝手にパスワードは非表示になるの気が利いていますね)

IMG_0448.jpg

Webサイト側で特に何も対応していないと、関連づけられたドメインのトップページが表示されてしまいます...

IMG_0447.jpg

パスワード変更ページへ直で飛べる様にする

/.well-known/change-password にアクセスが来るので、ここに来たらパスワード変更ページへリダイレクトしてあげるとどこから変更すればいいのか迷わなくて便利ですね :ok_woman:

参考: https://applech2.com/archives/20181114-well-known-url-for-changing-passwords.html

補足情報

  • ローカル環境で動作確認しようとしたけど https じゃないと /.well-known/change-password は見てくれないっぽくアクセスが来ませんでした
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2