cyberboy666/peertube-plugin-auth-discourse

Is this plugin finished? Can't seem to configure it correctly.

Closed this issue · 5 comments

Struggling to find any documentation or community experience on what I find to be a potentially very helpful plug-in.

Maybe I'm configuring the endpoints wrong or the empty warning dialogues on the peertube login page are placeholders?

Thanks for any input.

hi @jordanurbs - it is working. thanks for the reminder, i need to document this plugin. (note that the version 0.0.8 from npm is not pushed to this github repo yet - here the latest is 0.0.7 which is not the current state)

to see it in action you can browse to https://videos.scanlines.xyz

in the peertube admin panel it looks like this:

image

in the discourse admin settings it looks like this:

image

maybe there is something else im forgetting right now. please let me know how you get on - i will update the readme with this/the info soon :)

@langolierz thank you! This is just what I needed. I had the SSO Url and SSO secret fields filled out as as well as the SSO provider secrets and I think that was the issue.

All up and running now :)

I seem to be experiencing this error when making a new user. When Discourse redirects to PeerTube, it gives this blank error dialogue. The new user has been activated in Discourse, but still does not exist within PeerTube.

This screenshot is after new user follows email confirmation link and clicks the 'click here to activate your email' button.

Screen Shot 2020-12-03 at 12 59 41 PM

In the PeerTube logs, this is the error:


warn[12/3/2020, 1:54:44 PM] Login error.

{
  "err": {
    "statusCode": 400,
    "status": 400,
    "code": 400,
    "message": "Cannot create such user: an actor with that name already exists.",
    "name": "access_denied",
    "stack": "access_denied: Cannot create such user: an actor with that name already exists.\n    at new AccessDeniedError (/app/code/server/node_modules/oauth2-server/lib/errors/access-denied-error.js:25:14)\n    at Object.<anonymous> (/app/code/server/dist/server/lib/oauth-model.js:97:23)\n    at Generator.next (<anonymous>)\n    at fulfilled (/app/code/server/node_modules/tslib/tslib.js:111:62)"
  }
}

Update, I think I found the problem... apparently when you delete a user in Discourse, it doesn't delete the 'actor' in PeerTube. I am not sure if that refers to email, name, or username exactly. But I tried a new user with a new email domain, name, etc, and it worked fine.