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?

Keycloak に Identity Provider / OIDC でログインすると Invalid username or password. になる問題

Posted at

issue

Keycloak に OIDC client として Identity Provider を追加してログインしようとしたところ、エラーが出ました。

Invalid username or password.

OIDCの認証は完了して、Keycloakのlocal userと何かをするところでこけてる感じです。
試しにuserを手動で作ってみてもエラーは変わらない。
userが持つ Identity provider links に手動でlinkを追加してあげると、ログインに成功します。
userとIdPをlinkすることができていないようです。

Solution

Admin console > Authentication > first broker login

ここにある Handle Existing AccountAlternative にしたら解決しました。

image.png

ログインしたユーザは local userとして作られ、IdP links もきちんと設定されていました。

すっきり!

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?