logto icon indicating copy to clipboard operation
logto copied to clipboard

bug: Cant login after update

Open roshi112 opened this issue 1 month ago • 0 comments

Describe the bug

cd packages/core && NODE_ENV=production node . core info Core app is running at http://localhost:3001/ core info Core app is running at https://auth.domain.com/ admin info Admin app is running at http://localhost:3002/ admin info Admin app is running at https://authentication.domain.com/

UsjN0JIUZUfJzvCg <-- GET /api/.well-known/endpoints/default UsjN0JIUZUfJzvCg --> GET /api/.well-known/endpoints/default 304 6ms 7-83AhwdBxInfNgk <-- POST /oidc/token 7-83AhwdBxInfNgk --> POST /oidc/token 400 15ms 241b knNRMmkuCFEXsXsN <-- GET /console/callback?code=arss22Mj3xGRCQQm6mZLHyUsmedfDi9epqcgJhXmCzx&state=OWKdNdfNCAFkD3iD5RYIUX0Jc3z3MJGMSPbw7_K2f1lw2GSP_M0ZKyJudKocgZaOX64KT6I6Rx6zsVI2JKp4NQ&iss=https%3A%2F%2Fadmin.domain.com%2Foidc knNRMmkuCFEXsXsN --> GET /console/callback?code=arss22Mj3xGRCQQm6mZLHyUsmedfDi9epqcgJhXmCzx&state=OWKdNdfNCAFkD3iD5RYIUX0Jc3z3MJGMSPbw7_K2f1lw2GSP_M0ZKyJudKocgZaOX64KT6I6Rx6zsVI2JKp4NQ&iss=https%3A%2F%2Fadmin.domain.com%2Foidc 200 30ms 727b

oidc-provider WARNING: already parsed request body detected, having upstream middleware parser is not recommended, resolving to use req.body or request.body instead

in browser dev tools I see origin error, which came up after updating to latest version:

{ "code": "oidc.invalid_request", "message": "Request is invalid.", "error": "invalid_request", "error_description": "origin https://authentication.domain.com/, https://authentication.domain.com/ not allowed for client: admin-console" }

on web-ui I see: Oops! Something went wrong. LogtoRequestError: Request is invalid.

Expected behavior

should login without error.

How to reproduce?

try login via web ui and you cant login.

console log:

{ "code": "oidc.invalid_request", "message": "Request is invalid.", "error": "invalid_request", "error_description": "origin https://authentication.domain.com/, https://authentication.domain.com/ not allowed for client: admin-console" }

Environment

Self-hosted (Docker image)

Screenshots

No response

roshi112 avatar Dec 02 '25 13:12 roshi112