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

Better compatibility with Python implementation of upstream OAuth 2.0 mapping templates #3433

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

sandhose
Copy link
Member

@sandhose sandhose commented Oct 28, 2024

This enabled the Python compatibility layer from minijinja-contrib, which means that patterns like {{ user.email.split('@')[0] }} will work in upstream OAuth 2.0 mapping templates.
This should bring it close enough to what Synapse does for attribute mapping.

I also removed our own implementation of | split and is startingwith, as they are now in the builtins by default.

Copy link

cloudflare-workers-and-pages bot commented Oct 28, 2024

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 205dbdd
Status: ✅  Deploy successful!
Preview URL: https://94d62bb9.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-minijinja-contrib.matrix-authentication-service-docs.pages.dev

View logs

@sandhose sandhose enabled auto-merge (rebase) October 28, 2024 13:57
@sandhose sandhose merged commit 4b7aff6 into main Oct 28, 2024
17 checks passed
@sandhose sandhose deleted the quenting/minijinja-contrib branch October 28, 2024 13:59
@sandhose sandhose changed the title Enable better minijinja compatibility with the Python implementation Better compatibility with Python implementation of upstream OAuth 2.0 mapping templates Dec 16, 2024
@sandhose sandhose added A-Upstream-OAuth Related to login via upstream OAuth 2.0 providers T-Enhancement New feature of request labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Upstream-OAuth Related to login via upstream OAuth 2.0 providers T-Enhancement New feature of request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant