MaikuB / MaikuB/flutter_appauth
endSession / logout redirect not working
- Dominant language
- Objective-C
- Stars
- 308
- Forks
- 301
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 5
Description
Hey, i am using flutter_app_auth for my flutter app and i have problems with the redirect on logout, sometimes it works, most of the time it does not work, the browser just stays open. I checked your example app and found that your IdentityServer does show a "You are now logged out" Page, I do not have such a Page.
I use Keycloak and when i use the appAuth.endSession method with the correct logout endpoint i only get a white page in the browser, if i hit the logout endpoint in the normal mobile browser (when logged in) i see the default Keycloak Logout button.
If i got this correctly the Logout button should not be shown when appAuth.endSession opens the logout url, but is it correct that the page is completely blank?
After multiple tries the redirect after hitting the (completely blank) logout page per appAuth.endSession did work 2 times.
I can see that you have a manual redirect button in the "You are now logged out" Page, is this the only way to solve this issue?
I know this is this chrome redirect without user input bullshit that creates this problem in the first place, but why does it work sometimes?
Contributor guide
Research direction
The issue names no source file or test. Start by reproducing appAuth.endSession with Keycloak and its logout endpoint, then compare the behavior with the example app's IdentityServer flow. Done means the browser closes or redirects reliably after logout without requiring a manual button.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- authentication, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100