peppermint icon indicating copy to clipboard operation
peppermint copied to clipboard

missing the OIDC button at logon

Open MVadala-BW opened this issue 1 year ago • 10 comments

Hi,

I'm setting up the OIDC auth following the documentation, but after i set the correct issuer ( the well known link) and the client ID, I don't see any change in the logon page. I also put the redirect URI on the authentik provider. I don't see nothing on the container log also. What am I missing?

Thanks

MVadala-BW avatar Nov 28 '24 10:11 MVadala-BW

will check this one out for you 👍 the button should pop up once config is set

potts99 avatar Nov 28 '24 23:11 potts99

Getting the same issue @MVadala-BW. Not sure what's causing it.

UndyingSoul avatar Dec 09 '24 01:12 UndyingSoul

Same issue for me

Xerovoxx98 avatar Dec 18 '24 01:12 Xerovoxx98

Same for me

TomTheLEGEND23 avatar Dec 29 '24 19:12 TomTheLEGEND23

Setting up two brand new containers, and both have the same thing, only change was changing the admin user details then did the oidc set up

eligibbs avatar Jan 10 '25 21:01 eligibbs

I'm having the same issue. I'm trying to use Authentik as my OIDC provider. How can I help troubleshoot and fix this?

neohatchgrant avatar Feb 07 '25 21:02 neohatchgrant

I'm also experiencing this. It's really weird, I don't see anything in logs. I have Peppermint behind Nginx. I'm using latest Docker image docker.io/pepperlabs/peppermint

davispuh avatar Feb 08 '25 21:02 davispuh

I have the same issue, the endpoint /api/v1/auth/check is always replying {"message":"Unauthorized","success":false} even if you don't configure the OIDC feature. That's why the button doesn't show up. I'm checking why this endpoint is not working as expected but I didn't find the reason yet.

anhackin avatar Mar 19 '25 11:03 anhackin

Maybe it's because of this piece of code in the main.ts file?

// JWT authentication hook
server.addHook("preHandler", async function (request: any, reply: any) {
  try {
    if (request.url === "/api/v1/auth/login" && request.method === "POST") {
      return true;
    }
    if (
      request.url === "/api/v1/ticket/public/create" &&
      request.method === "POST"
    ) {
      return true;
    }
    const bearer = request.headers.authorization!.split(" ")[1];
    checkToken(bearer);
  } catch (err) {
    reply.status(401).send({
      message: "Unauthorized",
      success: false,
    });
  }
});

Maybe the /api/v1/auth/check needs to be added as an exception url as the other ones?

pausegarra avatar Apr 20 '25 16:04 pausegarra

Same goes for me. OIDC did work in version 0.5.4.2 but not in the latest version 0.5.5. The button itself is gone.

Thobov avatar Jun 01 '25 13:06 Thobov