AppAuth-Android icon indicating copy to clipboard operation
AppAuth-Android copied to clipboard

Redirect after logout with Keycloak

Open 0verEngineer opened this issue 1 year ago • 2 comments

Checklist:

  • [x] I am using the latest release
  • [x] I searched for existing GitHub issues
  • [x] I read the documentation
  • [x] I verified the client configuration matches the information in the identity provider (or I am using dynamic client registration)
  • [x] I am either using a custom URI scheme or https with App Links for client redirect.
  • [ ] I can reproduce the issue in the demo app (optional) -> not tried

Configuration

  • Version: 0.X.Y
  • Integration: (flutter_appauth)
  • Identity provider: (KeyCloack)

Issue Description

  • After using the logout endpoint through appAuth Keycloak does not show/provide any user interaction, it just logs out and then the redirect will not work because chrome will not accept it.
  • My problem is i have read in multiple issues that appAuth logout is tested and works with Keycloak so either i am doing something wrong or Keycloak can be configured to require a user interaction on logout.
    • If i hit the logout endpoint from a logged in session without any query parameters i get a logout button, but this cannot be achieved with flutter_appauth because it requires both idTokenHint and postLogoutRedirectUrl to be passed, i cannot pass postLogoutRedirectUrl alone.

Additional details:

  • login is working fine, but only if i use promptValues: ['login'],
  • i use the same custom URI scheme for logout and login

0verEngineer avatar Nov 15 '23 18:11 0verEngineer

https://github.com/openid/AppAuth-Android/issues/50 Here the last comment says it works with Keycloak

0verEngineer avatar Nov 15 '23 18:11 0verEngineer

@agologan Hey, sorry for disturbing you, but can you take a look at this issue as you commented in https://github.com/openid/AppAuth-Android/issues/50 that it works with keycloak.

0verEngineer avatar May 04 '24 22:05 0verEngineer