-
Notifications
You must be signed in to change notification settings - Fork 24
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
Check user status #209
Check user status #209
Conversation
Codecov Report
@@ Coverage Diff @@
## master #209 +/- ##
============================================
+ Coverage 65.7% 66.04% +0.34%
- Complexity 224 228 +4
============================================
Files 34 34
Lines 898 907 +9
============================================
+ Hits 590 599 +9
Misses 308 308
Continue to review full report at Codecov.
|
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.
Looks reasonable! 👍
I'll need confirmation that the problem (#209 (comment)) is caused by core and not by the oAuth2 app. I suspect a middleware trying to login with a token / cookie or similar and core is rejecting the request because the user is disabled. The request doesn't seem to reach the PageController of the oAuth2 app, or at least I don't see how that code could fail like that there. |
If you want to logout the user you have to call \OC::$server->getUserSession()->logout() |
The 'User disabled' page still reloads with Steps to recreate:
It will eventually stop reloading and login page will be shown but till then the page reloads over and over again |
@HanaGemela Thank you for testing. This is a little bit ugly behaviour ;-) |
Getting 400 error instead of 200 now. So the original bug has been resolved. But the reloading page still needs fixing |
Please open a new issue instead of commenting on a closed PR. This helps to track this better. THX |
Handle the case where the user associated to the token is disabled. Both the authorization_code and refresh_token will fail with a 400 status and a "unauthorized_client" error instead of returning a valid access token
Related to owncloud/client#7212 and https://github.com/owncloud/enterprise/issues/2509