hedgedoc / cli

A tiny CLI for HedgeDoc
GNU Affero General Public License v3.0
153 stars 37 forks source link

Cookie doesn't authenticate with Oauth2 #51

Open FunDeckHermit opened 2 years ago

FunDeckHermit commented 2 years ago

Hi, I'm struggling with authentication. I'm using a self-hosted OIDC/OAuth2 provider called Authentik to login into HedgeDoc. This works great with just the press of a button.

What I've done/tried:

  1. Extract the cookie, isolated connect.sid line
  2. Changed docs.domain.com to http://127.0.0.1:3000 in the key.conf
  3. All defaults apply to me, so no setting of env settings.

image

leandroembu commented 1 year ago

Same here. I'm using Nextcloud's OAuth2.

I didn't understand what to do with the key.conf file. I've tried both with and without connect.sid prefix: connect.sid:<long-string-here> and <long-string-here>, but I got the same response:

Error: Need to authenticate.