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

How to write a plugin to filter a resolution? #122

Closed
mhelvens opened this issue Oct 27, 2017 · 1 comment
Closed

How to write a plugin to filter a resolution? #122

mhelvens opened this issue Oct 27, 2017 · 1 comment

Comments

@mhelvens
Copy link

I need to write a resolver plugin that runs at the last moment (after a reference was resolved to an existing file). Based on some condition (to do with the relative positions of request.path and request.context.issuer), should then either error out or let that resolution pass through normally.

But I can't figure out where to hook into the pipeline. From what I can tell, if I do resolver.plugin('existing-file'), the plugin never runs, even though the callback stack tells me it did go through that phase. After reading through the code, I found out I could prepend after- to any phase, but after-existing-file never runs either. Some help would be appreciated.

@alexander-akait
Copy link
Member

Sorry for delay, close in favor #119 (comment)

@bugknightyyp bugknightyyp mentioned this issue Jul 26, 2020
3 tasks
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

2 participants