-
Notifications
You must be signed in to change notification settings - Fork 274
fix 404 not found page with PKCE flow by closing previous netty channel #4621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| return request.uri().trim('/').startsWith("oauth/callback") | ||
| } | ||
| // only handle the /oauth/callback endpoint | ||
| override fun isSupported(request: FullHttpRequest) = request.uri().trim('/').startsWith("oauth/callback") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably also want to restrict to HTTP GET
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha
| } | ||
| // if (!oauthService().hasPendingRequest()) { | ||
| // return false | ||
| // } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confirmed that tcp connection will indeed be closed if cancel button is clicked (Auth completableFuture will be closed)
Screen.Recording.2024-07-29.at.3.17.14.AM.mov
|
Cleaner solution in #4924 |
Screen.Recording.2024-07-26.at.6.49.46.PM.mov
Screen.Recording.2024-07-26.at.6.50.10.PM.mov
Screen.Recording.2024-07-26.at.6.50.40.PM.mov
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.