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

Not working with attribute routing #27

Open
64Soft opened this issue Aug 5, 2014 · 5 comments
Open

Not working with attribute routing #27

64Soft opened this issue Aug 5, 2014 · 5 comments

Comments

@64Soft
Copy link

64Soft commented Aug 5, 2014

Hey,

Started using HawkNet on a new project where I can't use HTTPS, and it does the trick. However, I would like to use the Web API 2 "Attribute routing" feature in my project, but unfortunately it seems that this style of routing doesn't support the custom message handlers that are needed to implement HawkNet (ie the the handler that returns the HawkCredential). Is there any other way ? Or should I just stick with the classic routing system ?

Thanks

@agilbert201
Copy link

I implemented an AuthorizationAttribute (vs custom message handler) and this works fine with attribute routing. This used to be in repo, got removed for some reason. Gist here https://gist.github.com/386beb86e2ca399e47f8.git but mileage will vary, and caveat emptor...

@pcibraro
Copy link
Owner

pcibraro commented Aug 5, 2014

Thanks Andrew. I removed that attribute a while back for an issue when I migrated to Web API 2.0. I will use your implementation to add it back in the repo.

@agilbert201
Copy link

Cool. Hopefully useful. This project has been most helpful!

Andrew Gilbert
[email protected]
(m) 802-535-1653
(h) 802-426-2108

On Aug 5, 2014, at 9:10 AM, Pablo Cibraro [email protected] wrote:

Thanks Andrew. I removed that attribute a while back for an issue when I migrated to Web API 2.0. I will use your implementation to add it back in the repo.


Reply to this email directly or view it on GitHub.

@64Soft
Copy link
Author

64Soft commented Aug 5, 2014

Many thanks guys

@david-hollifield
Copy link

@pcibraro Were you able to add this attribute back in? I'm not seeing it in the latest unless I'm missing something.

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

4 participants