-
Notifications
You must be signed in to change notification settings - Fork 7
Implement logout functionality #7
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
This is a first pass at implementing a better Logout functionality on the server side.
Things to do in the next iteration (and things to discuss):
|
Ok, changed it so that if no PR is mostly ready for review, needs a few more tests though. |
it('should redirect to RP if logout uri provided', () => { | ||
let res = HttpMocks.createResponse() | ||
let req = HttpMocks.createRequest({ | ||
method: '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.
Tests need to be changed to POST
@dmitrizagidulin : Dmitri,please can you provide an ETA for when #7 will be completed and released? Of the original pull requests raised by OpenLink 2-3 months ago relating to logout issues, several have been closed with unmerged commits. In these cases, the Solid team has chosen to open new issues and/or pull requests incorporating your own solutions to the base issues. I gather #7 includes most or all of this work. We at OpenLink urgently need this PR closed so that we can sync our forks of the Solid repos and avoid the OpenLink forks diverging any further from the Solid masters. If you could see to this we'd be grateful. |
hi @cblakeley, |
Hi! We're having the meeting with @kidehen and we found that this PR should fix the logout problem without merging nodeSolidServer/solid-auth-client#46 (because that PR fixes the problem in the wrong place). The problem has been that we haven't felt quite up to the task of reviewing this, so we figured that OpenLink would be better qualified to review it. So, @cblakeley could you please test and review this PR and report back? Make sure that you do not have nodeSolidServer/solid-auth-client#46 running when you test this, since that would make it appear to log out, but it would be the wrong way. |
I see some conflicts here, but they seem to be mostly about the timeout. Should the timeout be in there, or not? |
7e9fa52
to
fda1dec
Compare
@kjetilk Thanks for the heads up. I've resolved the conflicts, should be fine now. (Part of the confusion about the timeouts has to do with -- so this PR moves all the individual timeouts into a single Mocha-wide timeout in |
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.
/logout works successfully using WebID-OIDC authentication protocol.
For instance, I can login and logout of https://kidehen3.solid.openlinksw.com:8444 using the following WebIDs :
Addresses issues: