Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPEN_ID Login impossible #634

Open
maxulm opened this issue Nov 10, 2024 · 9 comments
Open

OPEN_ID Login impossible #634

maxulm opened this issue Nov 10, 2024 · 9 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@maxulm
Copy link

maxulm commented Nov 10, 2024

Hi,
open-id login is impossible. The application doesn't work as soon as i enter the oidc environment variables.
The following error occurs:
Field required [type=missing, input_value={'papermerge__auth__oidc_...eth.name/oidc/callback'}, input_type=dict]
2024-11-10T08:17:43.121684274Z For further information visit https://errors.pydantic.dev/2.7/v/missing

Info:

  • Papermerge Version 3.2 and 3.3
@maxulm maxulm added the bug Something isn't working label Nov 10, 2024
@ciur ciur added the help wanted Extra attention is needed label Nov 10, 2024
@ciur
Copy link
Owner

ciur commented Nov 10, 2024

What OpenID provider do you use ?
What's your setup ?

@maxulm
Copy link
Author

maxulm commented Nov 10, 2024

I've tried it with azure ad and afterwards with keycloak.
Both didn't work :/
This is my configuration:
msedge_2024-11-10_11-43-37

@ciur
Copy link
Owner

ciur commented Nov 11, 2024

Is there an error on auth server side (keycloak) ?
Could you pls paste here (last, which maybe contain error, warning, or some evidence that it is being accessed by client) logs from keycloak ?
What is the configuration of the client on keycloak side ?
What are the errors on Papermerge side ?

@maxulm
Copy link
Author

maxulm commented Nov 11, 2024

No, there are no errors on keycloak.
This is the docker output:

2.168.178.229 - - [11/Nov/2024:06:43:09 +0000] "GET /favicon.ico HTTP/1.1" 500 579 "http://192.168.178.50/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0"
2024/11/11 06:43:09 [error] 58#58: *12 no live upstreams while connecting to upstream, client: 192.168.178.229, server: _, request: "GET /favicon.ico HTTP/1.1", subrequest: "/verify", upstream: "http://localhost/verify", host: "192.168.178.50", referrer: "http://192.168.178.50/"
2024/11/11 06:43:09 [error] 58#58: *12 auth request unexpected status: 502 while sending to client, client: 192.168.178.229, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.178.50", referrer: "http://192.168.178.50/"

192.168.178.50 is the papermerge host
192.1678.178.229 is the client

@ciur
Copy link
Owner

ciur commented Nov 11, 2024

In first message you pasted following error:

Field required [type=missing, input_value={'papermerge__auth__oidc_...eth.name/oidc/callback'}, input_type=dict]

It means you are missing "papermerge__auth__oidc_..." variable. This translates to missing PAPERMERGE__AUTH__OIDC_... environment variable.

Can you figure out from logs complete variable name and provide it here?
Could you please paste here full trace of

Field required [type=missing, input_value={'papermerge__auth__oidc_...eth.name/oidc/callback'}, input_type=dict]
2024-11-10T08:17:43.121684274Z For further information visit https://errors.pydantic.dev/2.7/v/missing

of above error ?

@maxulm
Copy link
Author

maxulm commented Nov 11, 2024

@ciur those are the variables:
msedge_muI8mgzdfP

@ciur
Copy link
Owner

ciur commented Nov 11, 2024

Still, my question was about the missing information: "...":

Field required [type=missing, input_value={'papermerge__auth__oidc_...eth.name/oidc/callback'}, input_type=dict]
2024-11-10T08:17:43.121684274Z For further information visit https://errors.pydantic.dev/2.7/v/missing

Could you provide full error (without "...")?

@maxulm
Copy link
Author

maxulm commented Nov 11, 2024

I‘d like to but the Logs are shortened by default :/

@maxulm
Copy link
Author

maxulm commented Nov 26, 2024

@ciur could the problem be caused by the https?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants