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

TLS_FLAVOR=notls not working / Redirect to provider's login page broken / ... #48

Open
jetcar opened this issue Jan 19, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jetcar
Copy link

jetcar commented Jan 19, 2025

Version

2024.06

Operating System

Linux

Docker Compose Version

v2.12.2

Description

My configuration https://passi.cloud/identity/.well-known/openid-configuration which should be 100% correct, works fine with pgadmin openID, but with Mailu i get json parsing error error

Replication Steps

  1. setup OIDC_PROVIDER_INFO_URL=https://passi.cloud/identity/.well-known/openid-configuration

Observed Behaviour

admin doesn't start, gives json parsing exception

Expected Behaviour

should parse config without errors

Relevant log output

`Traceback (most recent call last):
  File "/app/venv/lib/python3.12/site-packages/oic/oauth2/__init__.py", line 1153, in provider_config
    pcr = response_cls().from_json(r.text)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/venv/lib/python3.12/site-packages/oic/oauth2/message.py", line 469, in from_json
    raise DecodeError("Cannot unpack, not a valid JSON.")
oic.oauth2.message.DecodeError: Cannot unpack, not a valid JSON.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/venv/bin/gunicorn", line 8, in <module>
    sys.exit(run())
             ^^^^^
  File "/app/venv/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 67, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]", prog=prog).run()
  File "/app/venv/lib/python3.12/site-packages/gunicorn/app/base.py", line 236, in run
    super().run()
  File "/app/venv/lib/python3.12/site-packages/gunicorn/app/base.py", line 72, in run
    Arbiter(self).run()
    ^^^^^^^^^^^^^
  File "/app/venv/lib/python3.12/site-packages/gunicorn/arbiter.py", line 58, in __init__
    self.setup(app)
  File "/app/venv/lib/python3.12/site-packages/gunicorn/arbiter.py", line 118, in setup
    self.app.wsgi()
  File "/app/venv/lib/python3.12/site-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
                    ^^^^^^^^^^^
  File "/app/venv/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
    return self.load_wsgiapp()
           ^^^^^^^^^^^^^^^^^^^
  File "/app/venv/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
    return util.import_app(self.app_uri)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/venv/lib/python3.12/site-packages/gunicorn/util.py", line 424, in import_app
    app = app(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^
  File "/app/mailu/__init__.py", line 123, in create_app
    return create_app_from_config(config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/mailu/__init__.py", line 58, in create_app_from_config
    utils.oic_client.init_app(app)
  File "/app/mailu/utils.py", line 162, in init_app
    self.client.provider_config(app.config['OIDC_PROVIDER_INFO_URL'])
  File "/app/venv/lib/python3.12/site-packages/oic/oauth2/__init__.py", line 1158, in provider_config
    raise ParseError(_err_txt)
oic.oauth2.exception.ParseError: Faulty provider config response: Cannot unpack, not a valid JSON.
`
@jetcar jetcar added the bug Something isn't working label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants