italia / Satosa-Saml2Spid

SATOSA SAML-to-SAML proxy with Spid compliances
Apache License 2.0
42 stars 25 forks source link

OIDC rp client error #64

Closed MdreW closed 1 year ago

MdreW commented 1 year ago

with instruction present in jwtconnect_python_oidcrp directory, return this error:

python3 -m flask_rp.wsgi ../../sso_isprambiente_it.json 
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/ranaldi/tmp/satosa_tmp/jwt/JWTConnect-Python-OidcRP/example/flask_rp/wsgi.py", line 30, in <module>
    context = create_context(dir_path, _web_conf)
  File "/home/ranaldi/tmp/satosa_tmp/jwt/env/lib/python3.10/site-packages/oidcrp/util.py", line 467, in create_context
    _fname = lower_or_upper(config, "server_cert")
  File "/home/ranaldi/tmp/satosa_tmp/jwt/env/lib/python3.10/site-packages/oidcrp/util.py", line 410, in lower_or_upper
    res = config.get(param.lower(), default)
AttributeError: 'NoneType' object has no attribute 'get'
peppelinux commented 1 year ago

I've updated the docs here https://github.com/italia/Satosa-Saml2Spid/blob/master/example_sp/jwtconnect_python_oidcrp/README.md

and tested it. Let me know if it works also for you and if we can then close this issue thank you Andrea!

MdreW commented 1 year ago

Now it works :+1: I created a pull request with some instructions to configure the RP ( #65 ) , I assigned the request to you, what do you think?

peppelinux commented 1 year ago

Great, thank you Andrea!