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

MDQ always uses sha1 entityId encoding, but some MDQ server only handle percent-encoding #460

Open
prigaux opened this issue Apr 7, 2024 · 4 comments

Comments

@prigaux
Copy link

prigaux commented Apr 7, 2024

Code Version

8.4.0 (via docker)

Expected Behavior

With

  sp_config:
    metadata:
      mdq:
         - url: https://mdq.federation.renater.fr/test

I expected requests /test/entities/https%3A%2F%2Fidp-test.univ-paris1.fr

Current Behavior

It did /test/entities/%7Bsha1%7Dd75d16c821f38b1bf6e33dc3d4d44e542a9f6786 which is not handled by mdq.federation.renater.fr (I will contact them to add sha1 support)

Possible Solution

Suggested tested solution:

  sp_config:
    metadata:
      mdq:
         - url: https://mdq.federation.renater.fr/test
           entity_transform: percent_encoded

with new feature from prigaux/pysaml2@562dd2d

Steps to Reproduce

This is currently failing : https://filex-ng-test.univ-paris1.fr/Shibboleth.sso/Login?entityID=https://satosa.univ-paris1.fr/filex_ng_test/idp.xml

  1. choose "Utiliser mon compte Paris 1"
  2. you get an error
@guillomovitch
Copy link

Renater MDQ server should accept this kind of identifier monday, thanks to our own satosa testing :)

@c00kiemon5ter
Copy link
Member

@prigaux would you want to make a PR with this change?

I think it would be fine to have that option available.

@prigaux
Copy link
Author

prigaux commented Apr 23, 2024

My only issue with my patch is the mix of types for param entity_transform: it currently expects a function or None. I added the possibility to handle string "percent_encoded". If it's ok for you, i can PR right away!

@c00kiemon5ter
Copy link
Member

I think this is OK. If you create the PR we can discuss more on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants