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

feat: make the metadata of an endpoint be more flexible #126

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

lafirest
Copy link
Member

@lafirest lafirest commented Oct 8, 2024

Fixes EMQX-13225

In previous versions, the metadata was statically derived from the authorize method, but some endpoints (login, external callback of SSO) may not have an authorize method, or it may be an interactive endpoint whose metadata cannot be determined in one step.

Here, the metadata is moved from the function return to the process dictionary, so that the metadata in the endpoint can be updated.

@lafirest lafirest requested a review from a team October 8, 2024 07:11
@lafirest lafirest force-pushed the feat/flexible_meta branch from 93adcf4 to 0f2284d Compare October 8, 2024 13:06
@lafirest lafirest merged commit e3ff9aa into emqx:master Oct 9, 2024
1 check passed
@lafirest lafirest deleted the feat/flexible_meta branch October 9, 2024 01:46
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

Successfully merging this pull request may close these issues.

2 participants