0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

特定のユーザーだけOIDCに失敗してしまうのはなぜ?(答:言語設定)

Posted at

発生事象

  • 特定のユーザーだけOIDCでredirect_uriが一致してないエラーが出る
  • ドメインは一致しているし、特に変なクエリが追加されているわけでもなさそう
  • キャッシュクリアやシークレットモードを利用しても変化がない

原因

  • アプリ側で言語をパスで分けていた
  • ユーザーは想定した言語以外を利用していた
    -> 結果、redirect_uriに言語idが含まれており、それが一致しない原因だった

対応

  • redirect_uriの言語の箇所をワイルドカードにする

or

  • 特定の言語のredirect_uriを追加する

敗因

  • 正常に認証できるURIと失敗したURIを比較しなかった
    • すぐに見比べていれば気づいたはず…

対策

  • スクリーンショットだけで判断せず、利用者からHARなどを入手し、実際のリクエストと比較して検証する
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?