cwrc / DEPRECATED-CWRC-Writer

The Canadian Writing Research Collaboratory (CWRC) is developing an in-browser text markup editor (CWRCWriter) for use by collaborative scholarly editing projects.
http://www.cwrc.ca/projects/infrastructure-projects/technical-projects/cwrc-writer/
GNU General Public License v2.0
24 stars 17 forks source link

CWRC Writer - Islandora authentification issue #242

Closed ilovan closed 7 years ago

ilovan commented 9 years ago

From @mpm1 's email:

"By the looks of this, I think this may caused by miscommunication of where the user provides their login credentials.

Using the function cD.initializeWithCookieData(null) assumes that some other service has authenticated the user and created the required cookies. This would be the case if the writer is embedded into islandora and can only use the write after they have logged in.

The function cD.initializeWithLogin(username, password) allows you to pass in the username and password. This would allow the system to initialize based on some sort of example user account or pass in information provided somewhere else on the page.

I recommended to Andrew to use the cD.initializeWithCookieData(null) function because at the time I assumed that the user would have already logged in through Islandora. I think in the case of the demo pages it may be best to create some sort of demo user and call the function cD.initializeWithLogin using that users login information or have some sort of login page."

This is a high priority bug to be fixed, if possible, before the Hamilton College demo on Friday.

ajmacdonald commented 9 years ago

Currently using the test user. See: https://github.com/cwrc/CWRC-Writer/commit/51b3ed86c04edb968ef3970df164404412ccf6e7

ilovan commented 9 years ago

Andrew, is this in the TEST version of the CWRC Writer? Can I try it out now?

On Tue, Oct 7, 2014 at 12:33 PM, Andrew notifications@github.com wrote:

Currently using the test user. See: 51b3ed8 https://github.com/cwrc/CWRC-Writer/commit/51b3ed86c04edb968ef3970df164404412ccf6e7

— Reply to this email directly or view it on GitHub https://github.com/cwrc/CWRC-Writer/issues/242#issuecomment-58235783.

ajmacdonald commented 9 years ago

Yes.

ilovan commented 9 years ago

Still not working; I created an organization entity and this is the ref URL I got: http://cwrc-dev-01.srv.ualberta.ca/islandora/object/undefined

image

When I went inside Islandora and checked the login report, I got the following error message: image

CWRC-WriterTestUser has the same privileges as mark_test and, when masquerading as CWRC-WriterTestUser I can modify the objects in the entity collections from the Islandora interface.

@mpm1, could you please assist @ajmacdonald with this issue if it is connected to the authentication changes we made recently? We are under a rather tight deadline for a demo this Friday.

SusanBrown commented 9 years ago

I gather that there's been no movement on this. I get an authorization error message when I try to create one. I'll just have to explain that it's broken.

SusanBrown commented 8 years ago

@ilovan is this fixed now?

jefferya commented 8 years ago

If the CWRC-Writer is opened from the same server hosting the CWRC entities and the user is actively logged into the CWRC repository in the same browser then yes.

If the aim is to allow the standalone version of CWRC-Writer (unassociated with CWRC-Repository, living on a different server but still able to create CWRC entities) then this would need a mechanism to enter user credentials like the NERVE tool.

On Sun, Jul 31, 2016 at 10:55 AM, SusanBrown notifications@github.com wrote:

@ilovan https://github.com/ilovan is this fixed now?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cwrc/CWRC-Writer/issues/242#issuecomment-236441421, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1sqZKqEsROuUTDVzkrmHiR840u16AQks5qbNOXgaJpZM4CrVMF .