-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Revoking a token does not work #1183
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
Comments
Hi @lethunder . Does this token was accesible on time of the first request and client was authorized (I mean does the token was issued to a public client)? As we can see from the screenshot - requests are the same (path, params and so on). Also don't sure |
@nbulaj you are right does not have nothing to do with application_id. i just created token by signing then i tried to revoke it immediatly after signing |
Doesn't it the same as #1179 ? Also we have specs for Token revocation, don't sure how |
not disame. If i don't override token method i keep having 200 response eventhough the token is not updated. |
By RFC OAuth2 server must return 200 status in any case (token revoked or not revoked).
|
i'm on it. give me 15 minutes |
In the zip file you have a izzi.sql to create DB (postgresql) link to zip deleted SIGNIN => POST http://localhost:3000/oauth/token?password=lethunder1014&grant_type=password&phone=0033652861874 |
@lethunder I created db with It would be great if you could place a RSec sample, because it's hard to reproduce the bug when don't know the full flow.. |
sample project with sqlite db and existing user POST http://localhost:3000/oauth/token?password=user123&grant_type=password&phone=0033652861874 |
Fix #1183: Use params instead of request.POST
Hi @lethunder . I've checked the latest ZIP and seems like we really have a weird bug. I introduced a fix, so it would be great if you can check the |
hi @nbulaj it works fine :) |
Uh oh!
There was an error while loading. Please reload this page.
Expected behavior
on version 5.0.2 we should be able to revoke token without having application_id
Actual behavior
when i generate a token on public default scope without application and i try to revoke the token it does not work
The reason is this is the code. The private method token in charge of returning the token in params
request.POST['token']
returnsnil
everytime on my appi overrided it with
request.parameters['token']
to make it workIn the image without overriding it doen't work (in red)
in blue with override
System configuration
The text was updated successfully, but these errors were encountered: