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

Plugin route prefix cause mismatch with default internal auth endpoint #66

Closed
kpdecker opened this issue Oct 29, 2015 · 2 comments · Fixed by #67
Assignees
Labels
bug
Milestone

Comments

@kpdecker
Copy link
Contributor

@kpdecker kpdecker commented Oct 29, 2015

No description provided.

@hueniverse hueniverse added the bug label Oct 29, 2015
@hueniverse hueniverse self-assigned this Oct 29, 2015
@kpdecker

This comment has been minimized.

Copy link
Contributor Author

@kpdecker kpdecker commented Oct 29, 2015

        var route = this._listener._connection.lookup(config.id);
        this._listener._connection.inject({ url: route.path, method: 'auth', headers: request.auth.headers, allowInternals: true }, function (res) {

Seems to work for me when hacking locally. Glad to PR.

@hueniverse

This comment has been minimized.

Copy link
Member

@hueniverse hueniverse commented Oct 29, 2015

Go ahead.

@hueniverse hueniverse assigned kpdecker and unassigned hueniverse Oct 29, 2015
kpdecker added a commit that referenced this issue Oct 29, 2015
This avoids issues when using route prefixes when registering the plugin.

Fixes #66
@hueniverse hueniverse added this to the 1.1.2 milestone Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.